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 @@ Note that during the process of provisioning a single-node cluster, `username` a
== 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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
curl -X POST -H "Content-Type: application/json" http://10.144.220.101:8091/node/controller/setupServices
curl -X POST -H "Content-Type: application/json" http://10.144.220.101:8091/node/controller/setupServices \

-d '{"services":"kv,n1ql,index,eventing"}'
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
-d '{"services":"kv,n1ql,index,eventing"}'
-d '{"services":"kv,n1ql,index,eventing"}' \

-u Administrator:password
---

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