Skip to content

Instantly share code, notes, and snippets.

@ruichuang
Created November 17, 2016 14:25
Show Gist options
  • Save ruichuang/0a9d26ddf5b570ec98cf45f22f2e2264 to your computer and use it in GitHub Desktop.
Save ruichuang/0a9d26ddf5b570ec98cf45f22f2e2264 to your computer and use it in GitHub Desktop.
notes for RESTful api
REST = REpresentational State Transfer
HTTP
----Request----------
1. Verb (get-ready only/post/delete-idempotent/put-idempotent)
2. URI <protocol>://<service-name>/<ResourceType>/<ResourceID>
3. Http version
4. Request Header: key<->value
5. Request Body
-------response----------
1. res code: 404, 200
2. http version
3. res. header: key<->value
4. res. body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment