Middle
How did you use Postman?
sobes.tech AI
Answer from AI
I used Postman to test APIs at various stages of development:
- Sent requests (GET, POST, PUT, DELETE) to the server to verify the correctness of endpoint operations.
- Created request collections for convenient repeated testing and demonstration of API functionality to the team.
- Used environment variables to switch between test and production servers.
- Wrote tests in JavaScript within Postman for automatic response verification (e.g., status code, JSON structure).
Example of a test in Postman:
pm.test("Status 200", function () {
pm.response.to.have.status(200);
});