What is REST actually?
REST is about creating representation(like JSON or XML or any other format.) of object's current state(like data in database) and transferring that representation over network. Rest is the set of constraint/convention. Resources are decoupled from their representation so that their content can be accessed in a variety of formats, such as HTML, XML, plain text, PDF, JPEG, JSON, and others. Metadata about the resource is available and used, for example, to control caching, detect transmission errors, negotiate the appropriate representation format, and perform authentication or access control At ground level , Rest is nothing more but a collection of principles Communication should be stateless : Server should not store any state . If required it should be part of message State should be representational : Internally resource at server can be in one form but it should be able to change it representation. An object referenced by one URI can have different formats availab