Versions Compared

Key

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

...

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

Request URLs

...

Publish (activate) the page /travel/hello.

Code Block
languagejs
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"
}'

...