Versions Compared

Key

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

...

Excerpt

REST endpoints enable other software to get real, raw content directly from Magnolia. This is how mobile apps, front-end JavaScript apps, or systems, like e-commerce or banking systems, can connect with Magnolia. With our out-of the-box delivery endpoint, this is easy and fast to set up, more powerful and more performant than ever.

...

Anchor
setup
setup
Setting up Magnolia for REST

In this section you use Magnolia CLICLI2 to install and start a preconfigured Magnolia 5.6.0 bundle with the required modules for Magnolia REST features.

...

If you do not have Magnolia CLI, install it as described here.

Then install Magnolia as follows:

  1. Change to the directory to where you want to install the Magnolia bundle. In our example, we use the directory ~/dev/mgnl-rest-test-base:

    Code Block
    cd ~/dev/mgnl-rest-test-base
  2. Execute the Magnolia CLI  jumpstart  command to get Magnolia 5.6.0:

    Code Block
    mgnl jumpstart -m 5.6

    Jumpstart downloads and extracts the magnolia-community-demo-bundle 5.6.0 that comes with Tomcat server. 

    The following files and folders are created:

    Code Block
    languagetext
    mgnl-rest-test-base/
    ├── apache-tomcat
    ├── light-modules
    └── magnolia.zip
  3. Go to the ~dev/mgnl-rest-test-base directory and execute the Magnolia CLI  start  command:

    Code Block
    mgnl start

    When starting for the first time, Magnolia runs a web update and automatically installs all its modules.

  4. In your preferred browser, open the URL http://localhost:8080/magnoliaAuthor/ and log in as user superuser with the password superuser.

  5. Have a look around Magnolia. Access the public instance with the URL http://localhost:8080/magnoliaPublic/.

...