Re: [Dev] Create a gadget via REST datasource

2016-09-12 Thread Amalka Subasinghe
I cloud generate a gadget using following message formats via rest datasource option in DAS *response of data retrieve url:* { "message" :[ {"is_peak":true,"state":"Florida","metro_area":"Miami","device_id":4,"power_reading":484.4254,"house_id":19}, {"is_peak":false,"state":"Arizona","metro_a

Re: [Dev] Create a gadget via REST datasource

2016-09-07 Thread Geesara Prathap
Hi Amalka, If you are to use rest data provider, you need to implement a web application which exposes those two APIs. This sample implementation[1-2] will help you to understand how these two APIs are implemented. Responses of those two APIs should be in the JOSN format as well as response messa

Re: [Dev] Create a gadget via REST datasource

2016-09-07 Thread Dunith Dhanushka
+Geesara On Wed, Sep 7, 2016 at 1:24 PM, Amalka Subasinghe wrote: > > Hi, > > I want to create a gadget in DAS via rest datasource > What are the urls I need to provide for Data Retrieve URL * and Schema > Retrieve URL * ? > > I want execute following kind of queries > curl -GET 'http://wso2.inf

[Dev] Create a gadget via REST datasource

2016-09-07 Thread Amalka Subasinghe
Hi, I want to create a gadget in DAS via rest datasource What are the urls I need to provide for Data Retrieve URL * and Schema Retrieve URL * ? I want execute following kind of queries curl -GET 'http://wso2.influxdb.com:32086/query?pretty=true' --data-urlencode "db=k8s" --data-urlencode "q=SHOW