diff --git a/modules/rest-api/pages/rest-set-up-services.adoc b/modules/rest-api/pages/rest-set-up-services.adoc index be4e9dd260..6a63bfd895 100644 --- a/modules/rest-api/pages/rest-set-up-services.adoc +++ b/modules/rest-api/pages/rest-set-up-services.adoc @@ -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 +--- + +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 \