REST

REST expands to Representational State Transfer. In a RESTful web service, a request made to a resource URI will elicit a response that is in some format, for example, JSON, XML, HTML, or it may provide a hypertext link to another resource or a set of resources. Using HTTP, as is most common, the kind of operations available include those predefined by the HTTP verbs GET, POST, PUT, DELETE, and so on.

To briefly explain REST, it can be thought of as a simple mechanism to get, create, or update the state on the server as follows:

  1. The client could make an HTTP GET call, and /users, and the server would return the list of all the users.
  2. The client could then send an HTTP POST call, /user:username, and it would create a new user with a ...

Get Scala Microservices now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.