Magnolia 5.6 reached end of life on June 25, 2020. This branch is no longer supported, see End-of-life policy.
...
The REST resource must be called with HTTP
Mgnl post |
---|
You can only call commands via REST which are whitelisted at /modules/rest-services/rest-endpoints/commands/enabledCommands
. (For further details see REST module configuring the commands endpoint and REST security.)
Table of Contents |
---|
...
Advanced Tables - Table Plus | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||
|
Publish (activate) the page /travel/hello
.
Code Block | ||
---|---|---|
| ||
curl http://localhost:8080/magnoliaAuthor/.rest/commands/v2/website/activate \
-H "Content-Type: application/json" \
-X POST --user superuser:superuser \
--data \
'{
"repository": "website",
"path": "/travel/hello",
"recursive": "false"
}' |
You cannot send the request as XML, you only can receive the response in XML with the Accept
header.