REST services


REST stand for REpresentational State Transfer.  It is an architectural style for developing web services. It is primarily used to build web services that are lightweight, maintainable , and scalable. REST is not depend on any protocol , but almost every RESTful service uses HTTP as its underlying protocol. Service architects and developers want this service to be easy to implement, maintainable, extensible, and scalable. 

What are the features of RESTful services??

  • Representations
  • Messages
  • URIs
  • Uniform interface
  • Stateless
  • Links between resources
  • Caching

What is representation??

 Representation describe how resources get manipulated. Once we have identified our resources, the next thing we need is to find a way to represent these resources in our system. We can use any format for representing the resources, REST does not put a restriction on the format of a representation.

     Eg: AJAX calls or JSON can be used to represent more complex resources.
           XML can be used to represent more complex resources.

What is messages??

Message is a service that client and server talk to other. Clients send a request to the server, and the server replies with a response. 

What is uniform interface??

It defines the interface between client and server. It simplifies and decouples the architecture.
It is the fundamental to RESTful design.

What is stateless??

Server contains no client state. Each request contains enough context to process the message. Any session state is held on the client.

What are the advantages of RESTful services??

  • Fast.
  • Language and platform independent.
  • Can use SOAP.
  • Permits different data format.


Comments

Popular posts from this blog

Using OAuth 2.0 Authorization framework