REST stands for REpresentational State Transfer.REST
is an architectural style that doesn’t follow any strict standard but follows six constraints defined by Roy Fielding in 2000. Those constraints are – Uniform Interface, Client-Server, Stateless, Cacheable, Layered System, Code on Demand.REST is not restricted to XML and it’s the choice of implementer which Media-Type to use like XML, JSON, Plain-text. Moreover, REST can use SOAP protocol but SOAP cannot use REST.REST
is easy to implement and requires less bandwidth such as smartphones.
Architectural Constraints of RESTful API : There are six architectural constraints that make any web service are listed below:
* Uniform Interface
* Stateless
* Cacheable
* Client-Server
* Layered System
* Code on Demand