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

Non-working example of API use

    XMLWordPrintable

Details

    • DOC-2020-S11-Jun14
    • 1

    Description

      The example

      $ curl -u Administrator:password -d 'SELECT "Hello, beer!" AS greeting' http://localhost:8095/analytics/service
      


      on
      https://docs.couchbase.com/server/6.0/analytics/run-query.html
      and
      https://docs.couchbase.com/server/6.5/analytics/run-query.html
      is not supported by the Analytics REST API as the statement parameter is not provided.

      It needs to be replaced with

      $ curl -u Administrator:password -d 'statement=SELECT "Hello, beer!" AS greeting' http://localhost:8095/analytics/service
      

      .

      Attachments

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

        Activity

          People

            simon.dew Simon Dew
            till Till Westmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty