block by joyrexus 40d5ac6017be2c71e1ba

REST basics

Basics of RESTful API design

Example

Suppose the base URI of our API is http://acme.org/api.

/users

We’ll represent the set of all Acme users with a user collection resource (/users) and handle any incoming http requests to http://acme.org/api/users on the basis of the request method:

/users/{id}

We’ll represent an Acme user (e.g., “Bob”) with a user instance resource (/users/bob) and handle any incoming http requests to http://acme.org/api/users/bob on the basis of the request method:

tutorials.md