I have Marklogic installed locally.
Want to set up a Rest Api Instance, so am following instructions at https://developer.marklogic.com/learn/rest/setup#create-a-rest-api-instance
I copy and paist the curl instruction, minus the backslash line continuations
curl -v -X POST --anyauth -u admin:admin --header "Content-Type:application/json" -d '{"rest-api": { "name": "TutorialServer", "port": "8011", "database": "TutorialDB", "modules-database": "Tutorial-Modules" } }' http://localhost:8002/v1/rest-apis
It runs, but the responce I get is "Your bootstrap payload caused the server to throw an error. Underlying error message: XDMP-JSONDOC: xdmp:get-request-body() -- Document is not JSON".
I cant see a json error, although no expert. Running on Windows 8.1. Am copying the text into Word doc then into dos prompt.