apache-superset/superset-roadmap

[global] Create API abstraction layer in frontend

Closed this issue · 0 comments

Motivation / Problem to Solve

Currently we have a lot of calls to apis in react view components, and are storing and duplicating route strings, methods, etc. We would like to be able to consolidate this logic into a separate api middleware layer

Proposed Functionality

Somewhat TBD, but overall we should be able to pass a model name with a method type, and the abstraction would contain information about the URL and method, and then place the data into a singular data store, whether that is redux or hooks/context.