Skip to content

Commit a329556

Browse files
committed
DOC-12197 URI encoding advice for 7.6
1 parent 81203dc commit a329556

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 @@ An incorrectly expressed service-name returns `400 Bad Request`, and an error me
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)