Skip to content

Commit 71e33bb

Browse files
DOC-12197 Added non-encoded example (#3974)
* DOC-12197 Added non-encoded example * Apply suggestions from code review Co-authored-by: rao-shwe <shwetha.rao@couchbase.com> --------- Co-authored-by: rao-shwe <shwetha.rao@couchbase.com>
1 parent 9efa013 commit 71e33bb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

modules/rest-api/pages/rest-set-up-services.adoc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,15 @@ Note that during the process of provisioning a single-node cluster, `username` a
5050
== Examples
5151

5252
The following example establishes data paths for the Data, Index, and Eventing Services.
53-
Commas in the list of service-names have been encoded.
53+
54+
---
55+
curl -X POST -H "Content-Type: application/json" http://10.144.220.101:8091/node/controller/setupServices \
56+
-d '{"services":"kv,n1ql,index,eventing"}' \
57+
-u Administrator:password
58+
---
59+
60+
Or you may choose to URI encode the parameters to ensure the string is not malformed by transport layers.
61+
The below example applies URI encoding to the commas.
5462

5563
----
5664
curl -X POST http://10.144.220.101:8091/node/controller/setupServices \

0 commit comments

Comments
 (0)