-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Data APIs #28
Comments
@rossjones know you are interested here :-) |
Namespacing by organization seems to be the sensible approach. Would be useful to allow each endpoint to have the sql view you mentioned, with parameter replacement (taking extra care that params are properly escaped). Want end-users to be able to query the datastore without knowing any SQL and/or structure of the tables. Also...
Think it would make sense for this to be in the datastore extension rather than separate, although it does potentially mean waiting for whenever 2.3 is scheduled. |
We're seeing some demand for this. But in the user interface, for non-programmers. And being able to plot combined datasets onto one graph (for example). (I imagine being able to create a combined dataset as a resource would be pretty essential) |
@rossjones all suggestions look good and made changes to table design. do you think using sql views is the way to go? Also could you explain a bit more what you mean by parameter replacement (agree people should not know any sql ...) |
A naive example of parameter replacement, I mean something like.
mapping to
gives
I think this was probably implicit in your origin post. |
Ability for users to create custom data APIs to complement the standard data API response.
Motivating Examples
Concatenating tables
Suppose I'm storing crime data in multiple resources / datastore tables but I want to be able to query across them. I want to join those tables to have a single crime table.
/custom-api/crime?month=...
Joining tables
I want to have query a table created by joining multiple tables
Implementation
Custom API object
URL
Question: should we have org name in custom url name so we get some kind of namespacing?
The text was updated successfully, but these errors were encountered: