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
Design URLs for the write API #1868
Comments
The problem with the above design is that I want to support a bunch of different actions that can be taken against a table:
I could have ALL of those be a
This is already slightly confusing in that So I'm ready to consider other design options. Initial thoughts on possible designs (for the single row insert case, but could be expanded to cover other verbs):
I quite like that third one: it feels consistent with the existing There's one slight confusion here in that it overlaps with the URL for a row with a primary key of Especially if I say that child pages of rows must theselves use the
So a row with primary key |
The other option here would be to lean into custom HTTP verbs like |
So given this scheme, the URL design would look like this:
And for rows (
|
I'm going to stick with one |
I'm happy with this |
My original design for this issue:
Was
POST /db/table
with JSON of{"insert": {...}}
.The text was updated successfully, but these errors were encountered: