Incubator-superset: [Question] Is there a REST API to pull Dashboard and Slice Views

Created on 7 Aug 2018  路  7Comments  路  Source: apache/incubator-superset

We are looking for ways to integrate superset into our web application . IFrame is not an option for us (for reasons like security and user experience friction with re-authenticating inside iframe etc. ) and i read from other threads that JS API is still on roadmap but no definitive timelines.

After some analysis , figured out that SuperSet is based on Flask App Builder , and FAB has a REST API to pull the views .

So can anyone help us by answering whether it is trivial to use those API's and pull the Dashboard and Slice Views from Apache Superset ?

Most helpful comment

Copying from @mistercrunch's answer on #4708 for anyone stumbled upon this thread. Answer is his:

Flask App Builder (FAB) offers a CRUD REST API out of the box for all models.
Check out:

/slicemodelview/api
/slicemodelview/api/read
/dashboardmodelview/api
/dashboardmodelview/api/read

http://flask-appbuilder.readthedocs.io/en/latest/quickhowto.html#rest-api

All 7 comments

We figured out it s trivial to pull dashboards via REST API

@sashank can you please help me telling your findings why you concluded it to be trivial to pull the dashboards via REST API. Thanks

@bipinsoniguavus , each dashboard and slice is accessible via unique URL , check the link embedded in above answer , you need to flex a bit for authentication layer though

HI , any documentation is there how to do .
i am new to python

Same here, to enable automatic builds that preconfigure some dashboards, it would be great to have an example about how to to so.

Copying from @mistercrunch's answer on #4708 for anyone stumbled upon this thread. Answer is his:

Flask App Builder (FAB) offers a CRUD REST API out of the box for all models.
Check out:

/slicemodelview/api
/slicemodelview/api/read
/dashboardmodelview/api
/dashboardmodelview/api/read

http://flask-appbuilder.readthedocs.io/en/latest/quickhowto.html#rest-api

@onlyphantom Actually my requirement is pass the query through an api for fetching the data is there any api available in superset

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dinhhuydh picture dinhhuydh  路  3Comments

josephtyler picture josephtyler  路  3Comments

john-bodley picture john-bodley  路  3Comments

sashank picture sashank  路  3Comments

ylkjick532428 picture ylkjick532428  路  3Comments