Skip to content

Instantly share code, notes, and snippets.

@mamund
Last active July 23, 2018 03:33
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 mamund/b8e6a84885686930548b198b094e3dc3 to your computer and use it in GitHub Desktop.
Save mamund/b8e6a84885686930548b198b094e3dc3 to your computer and use it in GitHub Desktop.
sample "bulk update" over http
**** REQUEST ****
GET /bulk-users?list=1,2,3 HTTP/1.1
HOST: example.org
**** RESPONSE ****
HTTP/1.1 200 OK
Location: http://bulk-users?list?1,2,3
ETag: "1q2w3e4r5t"
Content-Type: application/ps.bulk+json
{"users" : {...}}
(modify the representation as needed)
**** REQUEST ****
PUT /bulk-users?list=1,2,3 HTTP/1.1
HOST: example.org
Content-Length: xxx
ETag: "1q2w3e4r5t"
Content-Type: application/prs.bulk+json
{"users" : {...}}
**** RESPONSE ****
HTTP/1.1 200 OK
ETag: "1q2w3e4r5tAAAA"
Content-Type: application/ps.bulk+json
{"users" : {...}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment