Projects / PRJ-02
API testing
Restful Booker API testing
Postman checks on a public booking API: auth tokens, full CRUD (POST, GET, PUT, PATCH, DELETE), update without a token, search, and 404s for deleted or missing bookings.
12/12 pass
12API test cases executed
12passed
0failed
5HTTP methods covered
100%pass rate
- Executed
- 29 Sep 2026
- Tool
- Postman
- Base URL
- restful-booker.herokuapp.com
- Covers
- Auth, CRUD, 403, 404
- Artifacts
- Cases, evidence, collection
All 12 test cases
| ID | Title | Request | Expected | Status |
|---|---|---|---|---|
| TC-API-01 | Create token, valid credentials | POST /auth | 200 with a token | PASS |
| TC-API-02 | Create token, wrong password | POST /auth | Error, no token | PASS |
| TC-API-03 | Create booking | POST /booking | 200 with bookingid | PASS |
| TC-API-04 | Get booking | GET /booking/:id | 200 with created fields | PASS |
| TC-API-05 | Full update with token | PUT /booking/:id | 200 with updated fields | PASS |
| TC-API-06 | Update without token | PUT /booking/:id | 403 Forbidden | PASS |
| TC-API-07 | Partial update with token | PATCH /booking/:id | Only totalprice changed | PASS |
| TC-API-08 | Search by name | GET /booking?firstname=… | List containing the booking | PASS |
| TC-API-09 | Delete booking with token | DELETE /booking/:id | 201 Created | PASS |
| TC-API-10 | Get deleted booking | GET /booking/:id | 404 Not Found | PASS |
| TC-API-11 | Get non-existent booking | GET /booking/999999999 | 404 Not Found | PASS |
| TC-API-12 | Health check | GET /ping | 201 Created | PASS |