Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion modules/rest-api/pages/rest-set-up-services.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ An incorrectly expressed service-name returns `400 Bad Request`, and an error me
== Examples

The following example establishes data paths for the Data, Index, and Eventing Services.
Commas in the list of service-names have been encoded.

---
curl -X POST -H "Content-Type: application/json" http://10.144.220.101:8091/node/controller/setupServices
-d '{"services":"kv,n1ql,index,eventing"}'
-u Administrator:password
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same suggestion as 8.0.
Use line breaks (backslash character) in the REST API examples.

---

Or you may choose to URI encode the parameters to ensure the string is not malformed by transport layers.
The below example applies URI encoding to the commas.

----
curl -X POST http://10.144.220.101:8091/node/controller/setupServices \
Expand Down
Loading