Mindmap
What is REST?
Inhalt der Mindmap
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
Bilder und Dateien der Mindmap
Informationen
- Beschreibung
- Mindmap am What is REST?, erstellt von JAIME JAVIER GIL PIRELA am 22/05/2022.
- Erstellt von
- JAIME JAVIER GIL PIRELA
- Aufrufe
- 1
- Bewertung