Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To enable swagger you must add magnolia-rest-tools to your webapp(s). 

With Maven

add the folowwing snippet to the pom file of your webapp:

Artifact maven dependencies snippet
groupIdinfo.magnolia.rest
artifactIdmagnolia-rest-tools

With a downloaded bundle

If you are running a preconfigured Magnolia Tomcat bundle:

  • Stop the Tomcat server (if it was alrewady started).
  • Download the Rest tools bundle 
    Artifact resource link
    groupIdinfo.magnolia.rest
    artifactIdmagnolia-rest-tools
    label$artifactId.zip
    renderTypedownload_link
    versionSNAPSHOT
    resourceTypeZIP

If you have a custom webapp habdling your dependency management with Maven, add the folowwing snippet to the pom file of your webapp:

...

  • .
  • Unzip the download and copy all the files to 
    • $tomcat/webapps/magnoliaAuthor/WEB-INF/libs
    • $tomcat/webapps/magnoliaPublic/WEB-INF/libs (if the direcory already exists).

Set the Swagger API base path

...