REST API Fundamentals Flashcards
6 cards from real API practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 6 REST API Fundamentals flashcards as text
Which HTTP method is idempotent and used to fully replace a resource?
Answer: PUT
PUT is idempotent and replaces the entire resource at the specified URI.
What HTTP status code indicates a resource was successfully created?
Answer: 201 Created
201 Created is the standard response when a POST request successfully creates a new resource.
Which HTTP status code means the client is not authorized and must authenticate?
Answer: 401
401 Unauthorized indicates that authentication is required and has failed or not been provided.
What does a 404 HTTP status code indicate?
Answer: Resource not found
404 Not Found means the server cannot locate the requested resource at the given URI.
Which HTTP method should be used for partial updates to a resource?
Answer: PATCH
PATCH is designed for partial modifications to an existing resource.
What does REST stand for?
Answer: Representational State Transfer
REST stands for Representational State Transfer, an architectural style for distributed hypermedia systems.