RestAPI Architecture
RestAPI Architecture
It is stateless -> Client data is not stored on the server, session data is also stored
on the client
Endpoints contain:
1. URIs -> This is the essentially the endpoint (Address of the resource where to
contact) Unique Resource Identifier
2. Resources -> Which specific thing we want - navigate to a page and then
show
3. Parameters - Used to filter the resources. When we want to get specific data
from the resource
1. There are 4 important HTTP Keywords (GET, PUT, POST, DELETE)
2. These keywords are knows are types of request
3. Response -> HTTP (Status, body, Headers)
4. Payload -> Data that we send to Rest with the request
Sometimes you may have to authenticate to the website and show that you are
authorized to access the resource
Some resources on the application may be secured and may not be accessible
directly
That information is contained in headers