Here are a few slides that show how to use the REST API:
http://www.slideshare.net/dremio/drill-rest-api

Note:

   - The method should be: POST
   - Add an HTTP header: "Content-Type: application/json"
   - Format the payload in JSON




On Tue, Oct 13, 2015 at 9:16 PM, Amandeep Singh <[email protected]>
wrote:

> Right now I am just trying to hit the url, its not working.
> Also through mozilla rest client its not working.
>
> On Tue, Oct 13, 2015 at 3:26 PM, Amandeep Singh <[email protected]>
> wrote:
>
> > Hi,
> >
> > I am using apache drill and I am unable to hit the url :
> > http://localhost:8047/query.json
> > (as drill is installed on my localhost).
> > I want to use the REST service for method query.json to get response in
> > json form for my sql query.
> > Please suggest.
> >
> > Regards,
> > Amandeep Singh
> >
>

Reply via email to