Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-10513

Mobile documentation page for 3.x contains some mistakes

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Major
    • None
    • Mobile 3.0
    • Mobile
    • None
    • 1

    Description

      Mobile documentation page contains some mistakes:

      I.e.

      https://docs.couchbase.com/sync-gateway/current/configuration-schema-database.html

      1. 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:

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hakim.cassimally Hakim Cassimally
            fabrice.leray Fabrice Leray
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty