Details
-
Task
-
Resolution: Unresolved
-
Major
-
None
-
Mobile 3.0
-
None
-
1
Description
Mobile documentation page contains some mistakes:
I.e.
https://docs.couchbase.com/sync-gateway/current/configuration-schema-database.html
- For all curl commands on the page, curl with --data-raw does not exist. Only --data is possible:
curl: option --data-raw: is unknown
|
SOLUTION: change --data-raw by --data in the provided sample.
2. For the "Example 2. Configure database"
curl --location --request PUT 'http://127.0.0.1:4985/traveldb/_config/' \ |
--header 'Authorization: Basic c3luY19nYXRld2F5OnBhc3N3b3Jk' \ |
--header 'Content-Type: application/json' \ |
--data-raw '{
|
"enable_shared_bucket_access": true, |
"import_docs": true |
}'
|
The additional trailing "/" in "/traveldb/_config/" makes the curl command generate an error:
{"error":"Bad Request","reason":"Bad JSON: EOF"} |
SOLUTION : remove the trailing "/" in the provided sample.
Note : the REST admin API page is OK : https://docs.couchbase.com/sync-gateway/current/rest_api_admin_static.html#_database_configuration_resource : no "/" after _config: