Skip to content
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

always return content when creating except for large content #33

Open
Inkimar opened this issue May 15, 2017 · 0 comments
Open

always return content when creating except for large content #33

Inkimar opened this issue May 15, 2017 · 0 comments
Assignees

Comments

@Inkimar
Copy link
Contributor

Inkimar commented May 15, 2017

" In the section http://jsonapi.org/format/#crud-creating the datandard indicates: "The response MUST also include a document that contains the primary resource created.". For large media objects, moving extremely large data from the server back to the client after submission would be prohibitive from the bandwidth perspective " - from https://github.com/gnewton/test/blob/master/req2.md

proposed solution:
for large content , part of this submission is sha1, this sha1 is then compared to the sha1 that the server creates from the received content. If they match then only the sha1 is returned (and not the large content) .
If they don't match we will return a HTTP status code 400.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants