Recall & Review
beginner
What does REST stand for in REST API?
REST stands for Representational State Transfer. It is a style of web architecture that uses standard HTTP methods to interact with resources.
Click to reveal answer
beginner
Name the four main HTTP methods commonly used in REST APIs.
The four main HTTP methods are GET (retrieve data), POST (create data), PUT (update data), and DELETE (remove data).
Click to reveal answer
beginner
What is the purpose of the status code 404 in REST API responses?
Status code 404 means 'Not Found'. It indicates that the requested resource does not exist on the server.
Click to reveal answer
intermediate
Explain the difference between PUT and PATCH methods.
PUT replaces the entire resource with the new data, while PATCH updates only specific fields of the resource.
Click to reveal answer
intermediate
Why is statelessness important in REST APIs?
Statelessness means each request from client to server must contain all information needed to understand and process the request. It improves scalability and reliability.
Click to reveal answer
Which HTTP method is used to retrieve data from a REST API?
✗ Incorrect
GET is used to request data from a server without modifying it.
What does a 201 HTTP status code indicate?
✗ Incorrect
201 means the request was successful and a new resource was created.
In REST, what is a resource?
✗ Incorrect
A resource is any data or object that the API exposes for interaction.
Which HTTP method should be used to update only part of a resource?
✗ Incorrect
PATCH updates specific fields without replacing the entire resource.
Why should REST APIs be stateless?
✗ Incorrect
Statelessness means each request contains all needed info, making the system scalable and reliable.
Describe the key principles of REST architecture and why they matter.
Think about how REST makes web services simple and scalable.
You got /5 concepts.
Explain how HTTP status codes help in testing REST APIs.
Status codes are like traffic signals for API responses.
You got /4 concepts.