| title | REST (Representational State Transfer) | |
|---|---|---|
| date | 2020-10-28 | |
| part-of-speech | noun | |
| synonyms |
|
|
| abbreviation | REST |
REST (Representational state transfer) is architectural style used for creating distributed hypermedia systems (Web services). It defines following constraints which must be satisfied if an interface needs to be referred as RESTful.
- Client–server
- Stateless
- Cacheable
- Uniform interface
- Layered system
- Code on demand (optional)
RESTful Web services allow the requesting systems to access and manipulate textual representations of Web resources by using a uniform and predefined set of stateless operations, in the form of an HTTP method, or verb (GET, POST, PUT, DELETE etc.). By using a stateless protocol and standard operations, RESTful systems aim for fast performance, reliability, and the ability to grow by reusing components.
Note - REST is an architectural style. There is no "official" standard for RESTful web APIs, REST is not a standard in itself, but RESTful implementations make use of standards, such as HTTP, URI, JSON, and XML.
REST is a way to access resources which lie in a particular environment. For example, you could have a server that could be hosting important documents or pictures or videos.
Following are some example of resources access through REST style -
http://server host:port/TutorialService.svc/Tutorial/Tut102
http://Service hosted server URL/employee/101