Hi Jose,
Yes, you should be able to use Postman to query through the REST apis.
In your Postman:
1. set the type to “POST” and enter the request URL as “http://<your drillbit
ip>:8047/query.json”
2. In the Header tab, add an entry for “Content-Type” as key and
“application/json” as value
3. In the Body tab, select “raw” and a new dropdown list should appear next to
“binary" and on the dropdown select “JSON (application/JSON)”
4. And in the Body box, enter your request body in JSON format
{
“queryType”: “SQL”,
“query”: “select * from `dfs.root`.`test.csv`”
}
5. Press send!
Best regards,
Rob
On May 19, 2018, at 11:16 AM, jose luis
<[email protected]<mailto:[email protected]>> wrote:
Hello Drill, I'm new to using drill but I want to learn everything, my specific
question is:
I want to make a query from postman
(https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop?hl=en)
using the get method to consult a csv and to return an answer? but so far I
see in the documentation of drill only information on web console or through
curl ?, but I would like to cosume an api, thank you very much.
jose luis