REST API Testing 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 Testing flashcards as text
Which HTTP method is used to make a partial update to an existing resource?
Answer: PATCH
PATCH sends only the fields that need to be changed, unlike PUT which replaces the entire resource.
What is a REST API endpoint?
Answer: A specific URL path that maps to a resource or action
An endpoint is a specific URI that the API exposes, representing a resource or operation the client can interact with.
What does HATEOAS stand for in REST API design?
Answer: Hypermedia As The Engine Of Application State
HATEOAS is a REST constraint where responses include links to related actions, enabling clients to navigate the API dynamically.
Which tool can be used to run REST API tests from the command line using a collection file?
Answer: Newman
Newman is Postman's CLI runner that executes Postman collection files from the command line or CI pipelines.
What HTTP status code is returned when a DELETE request successfully removes a resource and there is no content to return?
Answer: 204 No Content
204 No Content indicates the request succeeded but the response body is intentionally empty, common after successful DELETE operations.
What is the purpose of the Accept header in a REST API request?
Answer: Specify the format the client expects in the response
The Accept header tells the server which media type(s) the client can handle in the response, such as application/json.