This repository contains a Postman collection designed for comprehensive testing of the Simple Books API. The project includes a series of requests to validate the API's functionality, covering common CRUD (Create, Read, Update, Delete) operations and other key endpoints. This project demonstrates API testing principles and best practices using the Postman platform.
- Postman: A free application for API development and testing. You can download it from https://www.postman.com/.
- Clone the repository: Clone this repository to your local machine.
git clone [your-repository-url]
- Import the collection: Open Postman, click the "Import" button, and select the
.jsonfile from the cloned repository.
The Postman collection includes tests for the following API endpoints, ensuring correct status codes and response data:
GET /status: Checks the API's operational status.GET /books: Retrieves a list of all available books.GET /books?type=fiction: Filters the list to show only fiction books.GET /books?type=non-fiction: Filters the list to show only non-fiction books.GET /books/:bookId: Retrieves a single book by its ID.POST /orders: Creates a new order for a book.GET /orders: Retrieves a list of all orders.GET /orders/:orderId: Retrieves a single order by its ID.PATCH /orders/:orderId: Updates an existing order.DELETE /orders/:orderId: Deletes an order.
The provided report shows the results of a complete test run. All tests passed successfully, confirming the stability and reliability of the API's core functionalities.
| Metric | Executed | Failed |
|---|---|---|
| iterations | 1 | 0 |
| requests | 10 | 0 |
| test-scripts | 20 | 0 |
| prerequest-scripts | 10 | 0 |
| assertions | 14 | 0 |
Additional Metrics:
- total run duration: 4.9s
- total data received: 2.26kB (approx)
- average response time: 396ms (min: 195ms, max: 737ms, s.d.: 126ms)
Feel free to fork this repository, create a new branch, and submit a pull request if you have any improvements or suggestions.
For any questions or feedback, please open an issue in this repository.