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

Batch create #12

Open
caalle opened this issue Jun 14, 2016 · 3 comments
Open

Batch create #12

caalle opened this issue Jun 14, 2016 · 3 comments

Comments

@caalle
Copy link

caalle commented Jun 14, 2016

Suggestion to modify the POST request to accept an array of objects instead of a single object.

@gnewton
Copy link
Contributor

gnewton commented Jun 15, 2016

POST changed to: "Create one or more new images." to support batch upload.

@gnewton gnewton closed this as completed Jun 15, 2016
@gnewton gnewton reopened this Jun 15, 2016
@gnewton
Copy link
Contributor

gnewton commented Jun 15, 2016

Batch updates: jsoanapi only allows creation of single object in POST: http://jsonapi.org/format/#crud-creating so what we thought was a solution is not available.

Two possible solutions:

  • ignore their suggestion and go with a 'data[]' (this would break our adherence to the standard);
  • use 'multipart/mixed' like https://cloud.google.com/storage/docs/json_api/v1/how-tos/batch#details I think this latter might be the way to go, if Google tech people think it is they way to go. In our case, each "part" would be a POST containing a single item to be created, using jsonapi.

@caalle
Copy link
Author

caalle commented Jun 15, 2016

It looks like they are having a quite extensive discussion about this here: json-api/json-api#795

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