Skip to content

Instantly share code, notes, and snippets.

@jabrena
Last active January 23, 2019 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jabrena/dced44d44a7d91407d8321d63fc22905 to your computer and use it in GitHub Desktop.
Save jabrena/dced44d44a7d91407d8321d63fc22905 to your computer and use it in GitHub Desktop.
API Multiple items affected in a resource

API General design:

POST /api/companies/items GET /api/companies/items GET /api/companies/items/{id} DELETE /api/companies/items/{id} PUT /api/companies/items/{id}

PATCH /api/companies/items/

Request:

[ { id: 1, name: 'foo' }, { id: 2, name: 'bar' } ]

Response:

[ 200, 403 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment