Execute a saved SQL query by query name

get

/PASService/rest/services/v1/queries/{queryname}

Executes a specific query and returns the response

Request

Path Parameters
Query Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

successful operation
Back to Top

Examples

This example describes how to execute a specific query and returns the response.

Example cURL Command

Use the following cURL command to submit a request on the REST resource:

curl \ 
    -X GET \
    -H "Content-Type: application/json" \   
    -u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
    -L "http://server:port/PASService/rest/services/v1/queries/systemDate?applicationName=OIPA&versionNumber=1&companyGuid=7204C2FE-13B1-4A48-8CDA-DE8386C60EF9"

Example Response Body

The following shows an example of the response body in JSON format:

{
  "count": 1,
  "offset": 1,
  "limit": 100,
  "results": [
    {
      "1": 1
    }
  ]
}
Back to Top