Think you might be in the wrong place? Go home!
REST stands for Representational State Transfer.
stateless client-server architecture.
An identifier of a resource is typically a URI (Uniform Resource Identifier). Example: https://api.example.com/users/123
URIs (Uniform Resource Identifiers) should be based on the resources they identify.
Example of a good URI: https://api.example.com/products/42
Having a ‘chatty’ web API means that it requires a high number of requests to perform a single operation. This is generally considered a bad thing because it can result in increased network latency and reduced performance.
A successful GET request returns a status code of 200 OK.
An unsuccessful GET request can return various status codes, but a common one is 404 Not Found if the requested resource is not available.
A successful POST request returns a status code of 201 Created if a new resource is successfully created.
A successful DELETE request returns a status code of 204 No Content to indicate that the resource has been successfully deleted. Information gathered using ChatGPT