Magnolia 5.6 reached end of life on June 25, 2020. This branch is no longer supported, see End-of-life policy.
...
On this section we propose som tools to test the REST API with some little tools - without the need to develop a REST consuming client application upfront.
Positive | For instance Firefox displays JSON and XML in a very well readable format. | |
Negative | A browser provides only limited control to tailor a request without further add-ons. Requests are sent as
| |
Tips |
|
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.
Download | https://curl.haxx.se/download.html |
Positive | Very flexible to tailor the request (method, request headers, etc.). Response can be further processed. |
Negative | Not everybody likes command line tools. The response is not reasy to read without further tooling. No out of the box automatic URL encoding. |
Tips | On the first atempt of a request use the If the response body is fine and delivers JSON, pretty print and colorize the response body with tools such as jq. |
Swagger UI tools
.