Created
November 17, 2016 14:25
-
-
Save ruichuang/0a9d26ddf5b570ec98cf45f22f2e2264 to your computer and use it in GitHub Desktop.
notes for RESTful api
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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