Hi Masood, The error you're seeing has nothing to do with your request. Are you sure you have a chart with id 1 and that it loads/renders correctly in the browser? The error you're seeing is because the chart does not have sufficient fields filled in to produce a query. The most up to date api docs that correspond to your version of superset can be found by navigating to /swagger/v1 in your browser.
The format field can be json|csv and type can be columns|full|query|results|samples|timegrains|post_processed The default for these fields are json and full which is likely what you want in most cases. As a reminder, superset is an open source community project. If you find certain areas are lacking, you are always welcome to contribute and improve said areas -- the community would appreciate it. Best, On Sun, Oct 31, 2021 at 3:29 PM masood jouybar <[email protected]> wrote: > Hello superset development team. > I am one of the thousands of people who use your product.I encountered > problems during development , so I had to go step by step with your > documents.but unfortunately your docs weren't complete , I am confused and > I need your help . > > For example I want to get chart details for implementations to common > javascripts frameworks . but in your rest-api documents page i did not > find a good and appropriate guide. > please pay attention to below example : in this url > <https://superset.apache.org/docs/rest-api> and in charts apis section i > want to send request to below endpoint : > /chart/{pk}/data/ > your docs saying me i have to send this request like this : > > http://localhost:8080/api/v1/chart/1/data > and this response is : > { > "message": "Error: Empty query?" > } > > but in your documents format and type is not required and you don't have > any sample for format and type fields . > [image: Screenshot from 2021-10-31 12-23-07.png] > What is type ? What is format ? How should I know ? > Your document is not useful and it can not help developers much.Do you > have any newer documents ? if yes , please send me that . If not, I select > another visualization tool for my products. > Thank you for answering me . > best regard > > > > > -- -Tai Dupree
