Successful Request
Request
curl -v http://localhost:8093/query/service \
-d 'statement=SELECT name FROM `travel-sample`.inventory.hotel LIMIT 1' \
-u Administrator:password
Response
{
"requestID": "615e0b26-dd61-4a1a-bda9-22333193b982",
"signature": {
"name": "json"
},
"results": [
{
"name": "Medway Youth Hostel"
}
],
"status": "success",
"metrics": {
"elapsedTime": "5.232754ms",
"executionTime": "5.160022ms",
"resultCount": 1,
"resultSize": 30,
"serviceLoad": 12
}
}
The same request can be run as a GET request:
Request
curl -v http://localhost:8093/query/service?statement=SELECT%20name%20FROM%20%60travel-sample%60.inventory.hotel%20LIMIT%201%3B \
-u Administrator:password