我在本地安裝了Marklogic。Marklogic Rest Api實例安裝 - 指令如何失敗?
想建立一個REST API實例,因此在https://developer.marklogic.com/learn/rest/setup#create-a-rest-api-instance
我複製我下面的說明,並派斯特捲曲指令,減去反斜線線延長部
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
它運行,但性反應的我get是「您的引導程序有效負載導致服務器發生錯誤。底層錯誤消息:XDMP-JSONDOC:xdmp:get-request-body() - 文檔不是JSON」。
我不能看到一個JSON錯誤,雖然沒有專家。在Windows 8.1上運行。將文本複製到Word文檔然後進入DOS提示符。
也爲我工作了! –