Versions Compared

Key

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

...

Getting familiar with tools

Simple browser

A simple webbrowser may already be sufficient. (plus) Firefox displays JSON and XML in a very well readable format.If the  

(minus)  A browser doesn't provide a lot of control to tailor a request without further add-ons. Requests are sent as 

Mgnl get
 and you cannot add more request headers out of the box user, which sends the REST request, has not appropriate permissions for the requested resource, it gets redirected to login page - which is not always what you want. While developing REST features, you rather want to see the HTTP response codes (for instance 200 for OK, and many diferent numbers >=400 if a problem has occured) instead to get redirected to the login page.

If you want to test on REST resources which via 

Mgnl get
, which requires authetication (to get assigned roles not provided to anonymous user - login at Magnolia first, open a new tab on the same window (using the same session) and then requesting the REST resource.There also exist browser add-ons which allow more c

cURL

cURL is a command line tool. It can be used on most of the well known operating systems. In this tutorial we will often test REST request via cURL.

...