REST API flash cards: Apprentice level

22 REST API terms at the Apprentice level, as flash cards.

Updated

Terms in this deck

200 OK
The request worked and the body holds the result.
201 Created
A new resource was created.
204 No Content
It worked and there is no body to return.
400 Bad Request
The request is invalid, such as a missing or wrong field.
401 Unauthorized
No valid credentials were sent: sign in first.
403 Forbidden
Signed in, but not allowed to do this.
404 Not Found
Nothing exists at that URL.
500 Internal Server Error
Something broke on the server.
Content-Type
The header that says what format a body is in.
curl for APIs
A command-line tool for sending HTTP requests.
DELETE (HTTP)
The method that removes a resource.
GET
The method that reads data without changing anything.
Header
A name-value line of extra information on a request or response.
HTTP Method
The verb that says what a request wants to do.
PATCH
The method that updates only some fields of a resource.
Path Parameter
A variable part of the URL path, like an ID.
POST
The method that creates a new resource.
Postman and Insomnia
Desktop apps for building and sending API requests by hand.
PUT
The method that replaces a whole resource.
Query String
The ?key=value part of a URL, used for filters and paging.
Request Body
The data sent with a request, usually JSON.
Status Code
The three-digit result number: 2xx success, 4xx client error, 5xx server error.

Read them in the glossary