The term REST was introduced in the form of a thesis written by Roy Fielding in 2000.
The four properties as per RESTFul Web Services of REST are:
- Addressability- It lets the application to expose infinite number of URI’s for every piece of information it might conceive.
- Statelessness- It means that every HTTP request happens in complete isolation which means that the client needs to include all the necessary information for the server to fulfill the request. Statelessness is what makes the application scalable, as it can be easily distributed across load-balanced servers, and also easily cacheable.
Related to this, there is an important distinction between application state (lives on the client) and resource state (lives on the server). - Connectedness-It means that the resources links to each other, document contains links to other resources.
- A uniform interface-It means that there are four basic methods for doing four most common operations:
HTTP GET to retrieve the representation of a resource.
HTTP POST to create a new resource.
HTTP PUT to modify an existing resource.
HTTP DELETE to delete an existing resource.