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

Backport N1QL REST API examples

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • None
    • Cheshire-Cat, 6.x Doc Updates
    • None

    Description

      Backport N1QL REST API example updates from 7.1 to previous supported versions.


      curl -v http://localhost:8093/query/service \
           -d 'statement=SELECT t.text FROM tweets t
           JOIN users u KEY t.uid LIMIT 1
           &creds=[{"user": "local:tweets", "pass": "pAss1"}", {"user": "local:users", "pass": "pAss2"}]'
      

      Has syntax error

      • forget to add \
      • extra " after pAss1
      • & come to error "error":"rest_auth: cbauth.AuthWebCreds, err: no web credentials found in request"

      Reporter: kiltum
      E-mail: kiltum@kiltum.tech

      Attachments

        Issue Links

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

          Activity

            People

              simon.dew Simon Dew
              docsite-collector Docs Site Collector
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty