Recall & Review
beginner
What is an example request in API testing?
An example request is a sample HTTP request sent to an API endpoint to test if it behaves as expected. It includes method, URL, headers, and body if needed.
Click to reveal answer
beginner
What does an example response show in API testing?
An example response shows the data and status code returned by the API after a request. It helps verify if the API returns correct and expected results.
Click to reveal answer
beginner
Why use example requests and responses in Postman?
They help testers understand how the API works, create automated tests, and document the API for others to use easily.
Click to reveal answer
beginner
What is a common HTTP method used in example requests?
GET is a common HTTP method used to request data from an API without changing anything on the server.
Click to reveal answer
intermediate
How can you validate an example response in Postman?
You can write tests in Postman using JavaScript to check if the response status code and body data match expected values.
Click to reveal answer
What does an example request in Postman typically include?
✗ Incorrect
An example request includes the HTTP method (like GET or POST), the URL, headers, and optionally a body.
Which HTTP method is used to retrieve data without changing the server state?
✗ Incorrect
GET requests data from the server without modifying it.
What is the purpose of example responses in API testing?
✗ Incorrect
Example responses demonstrate the expected output from the API after a request.
How can you check if an API response is correct in Postman?
✗ Incorrect
Postman allows writing tests to verify response status and content.
Why is documenting example requests and responses useful?
✗ Incorrect
Documentation with examples makes APIs easier to learn and use.
Explain what an example request and response are in API testing and why they are important.
Think about how you check if an API works correctly.
You got /3 concepts.
Describe how you would validate an example response in Postman.
Consider writing simple JavaScript assertions.
You got /3 concepts.