Recall & Review
beginner
What is an API request?
An API request is a message sent from a client to a server asking for some data or action. It usually includes a URL, method (like GET or POST), and sometimes data.
Click to reveal answer
beginner
What does an API response contain?
An API response is the message the server sends back after receiving a request. It usually contains a status code (like 200 for success) and the data requested or a message.
Click to reveal answer
beginner
What HTTP method is commonly used to get data from an API?
The GET method is used to ask the server to send data without changing anything on the server.
Click to reveal answer
beginner
What does a 404 status code mean in an API response?
A 404 status code means the server could not find the requested resource or URL.
Click to reveal answer
beginner
Why is JSON commonly used in API responses?
JSON is easy to read and write for both humans and computers. It is a simple text format that works well to send data between client and server.
Click to reveal answer
Which HTTP method is used to retrieve data from an API?
✗ Incorrect
GET is the method used to request data without changing anything on the server.
What does a 200 status code in an API response mean?
✗ Incorrect
200 means the request was successful and the server sent back the data.
What format is commonly used to send data in API responses?
✗ Incorrect
JSON is the most common format because it is easy to read and write.
If you get a 404 status code, what does it mean?
✗ Incorrect
404 means the server could not find the requested resource.
What part of an API request tells the server what action to perform?
✗ Incorrect
The HTTP method (like GET or POST) tells the server what action to take.
Explain what happens when you make your first API request.
Think about the conversation between your app and the server.
You got /5 concepts.
Describe the role of status codes in API responses.
Status codes are like traffic lights for your request.
You got /3 concepts.