-
Notifications
You must be signed in to change notification settings - Fork 8
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
Consider return value when doing GET on non-existent table #165
Comments
The API currently functions:
leoncd@leondutoit ~ % ls lol
ls: lol: No such file or directory
leoncd@leondutoit ~ % mkdir lol && touch lol/cat
leoncd@leondutoit ~ % ls lol
cat
leoncd@leondutoit ~ % rm lol/cat
leoncd@leondutoit ~ % ls lol
leoncd@leondutoit ~ %
The main difference is that Returning to the discussion, I think the current behaviour is fine, since it matches what you typically experience with other data storage interfaces. If we're going to change the behaviour of doing a |
With 404, the body is fine as it is. No need to change. |
Exactly. I guess the creation of the "container" works transparently under the hood to make it easier for clients to put stuff into it. It would be consistent to have the same transparency when listing the content of the container. Currently, every single implementation of a client has to handle the case "nothing there yet". Anyway if 200 + |
When a client does a
GET
on an endpoint which does not yet exist, but theoretically could, the API returns a 404, currently with a JSON message in the HTTP body. There has been a request to return[]
instead.A bit unclear what it should be, given that it is a 404, options:
[]
null
The text was updated successfully, but these errors were encountered: