← API Testing with Postman learning pathAPI Testing with Postman · Module 1 of 10
API testing basics
Test the backend directly through its API.
📖 Key ideas
- APIs let apps exchange data, usually JSON over HTTP.
- API tests check status codes, response bodies, headers and speed.
- API tests are faster and more stable than UI tests.
- Common methods: GET, POST, PUT, PATCH, DELETE.
- Status codes: 200 OK, 201 Created, 400 Bad Request, 401, 403, 404, 500.
💡 Real-life example: API testing is checking the kitchen directly instead of judging only from the dining room.
APIInterface for programs to communicate
EndpointURL + method of an API
Status codeNumber showing request result
JSONCommon response data format