Magnolia 5.6 reached end of life on June 25, 2020. This branch is no longer supported, see End-of-life policy.
...
Anchor | ||||
---|---|---|---|---|
|
In this This section follows provides a step by step series of instructions to setup a Magnolia bundle which contains all REST modules inclusing magnolia-rest-tools
to use the swagger UI tools. The procedure is usng using the Magnolia CLI. If you are an experienced Magnolia user, you can skipt this and setup Magnolia by your prefered style.
Expand | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||
#1 Get the shell and choose a directory to work withOpen a shell and change to directory of your choice. In our example, we use the directory
#2 Downloading a bundle with CLI jumpstart
Jumpstart downloads and extracts the latest version of Jumpstart also sets the property When the execution of jumpstart is done, your directory looks like this:
We will need the #3 Adding the magnolia-rest tools to the bundleDownload the Rest tools bundle
~/dev/mgnl-rest-test-base/apache-tomcat/webapps/magnoliaAuthor/WEB-INF/lib . Some of the files may already be there, that's fine.#4 Start MagnoliaYou are ready to start Magnolia - actually the Tomcat server - for the first time. Go to our "root" directory ans start with the CLI command
Give Magnolia some time. On the first start up Magnolia installs some configurations for a bunch of modules, etc. pp. #5 Login on the author contextOpen your favorite browser, open the URL http://localhost:8080/magnoliaAuthor/ and login as user #6 Set the swagger base api pathIn order to properly use the swagger UI tools - which are used for development only - we must adapt one property in the configuration. On the UAdmin - open the Configuration app and open the node Open the folder This property is one of the rare one which requires a server restart to make the change effective. #7 Restart MagnoliaGo to the shell where you have started Magnolia. To stop the server - press Now start it again:
|
...