Mapa mental
What is REST?
Conteúdo do mapa
What is REST?
REST
- is an architectural style
- REST-compliant systems
- the concerns of client and server
Separation of Client and Server
- the implementation of the client
- without affecting the operation of the server
- the implementation of the server
- without affecting the operation of the client
- Separating the user interface concerns from the data storage concerns
- the flexibility of the interface across platforms
- the same actions amd the same responses
- the implementation of the client
Statelessness
- the REST paradigm are stateless
- This constraint of statelessness is enforced through the use of resource
- any object
- document
- thing that you may need to store or send to other services
- they do not rely on the implementation of interfaces
- help RESTful applications?
- quick performance
- achieve reliability
- scalability
Communication between Client and Server
- Making Requests?
- an HTTP verb
- a header
- path
- optional message body
- HTTP Verbs?
- GET
- POST
- PUT
- DELETE
- Making Requests?
Headers and Accept parameters
- Accept?
- the client sends the type of content that it is able to receive from the server
- MIME Types
- Type and subtype
- They are separated by a slash (/)
- Examples: Other types
- imagen: image/png ; audio: audio/wav ; application: application/json
- Type and subtype
- Accept?
Paths
- Requests must contain a path to a resource
- This keeps nested paths simple to read and easy to understand
Sending Responses
- Content Types
- alerts the client to the type of data it is sending in the response body.
- Apply MIME type
- Response Codes
- 200 (OK)
- 201 (CREATED)
- 204 (NO CONTENT)
- 400 (BAD REQUEST)
- 403 (FORBIDDEN)
- 404 (NOT FOUND)
- 500 (INTERNAL SERVER ERROR)
- Content Types
Imagens e arquivos do mapa
Informações
- Descrição
- Mapa Mental sobre What is REST?, criado por JAIME JAVIER GIL PIRELA em 22-05-2022.
- Criado por
- JAIME JAVIER GIL PIRELA
- Visualizações
- 1
- Avaliação