Roy Fielding proposed Representational State Transfer,and it’s an architectural approach to designing web services,which considered a style for building distributed systems based on hypermedia.Resources, which are any kind of object, data, or service that can be accessed by the client.Resource has an identifier.Example:
GET, POST, PUT, PATCH, and DELETE.URIs should be based on nouns the resource and not verbs the operations on the resource.Example:
- https://adventure-works.com/orders
APIs that expose a large number of small resources.And it’s a bad thing we should try to avoid chatty web APIs.GET request return?HTTP status code 200 (OK).GET request return?404 (Not Found).POST request return?HTTP status code 200.DELETE request return?HTTP status code 204.References:
@By Microsoft /RESTful web API design