| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A complete API Testing Project built in Postman for the Simple Books API. This project demonstrates real-world API testing including CRUD operations, authentication, negative testing, automation using Newman, and scheduled execution using Postman Monitors.
Goal: To validate and automate end-to-end workflows of the Simple Books REST API. The project covers:
| Module | Endpoint | Methods | Description |
|---|---|---|---|
| Health Check | /status | GET | Verify API availability |
| Authentication | /api-clients | POST | Register client and retrieve token |
| Books | /books, /books/:id | GET | Fetch list or details of books |
| Orders | /orders, /orders/:id | POST, GET, PATCH, DELETE | Manage book orders end-to-end |
| Variable | Purpose |
|---|---|
| baseURL | Base URL for API (https://simple-books-api.click) |
| clientName | Randomly generated client name |
| clientEmail | Dynamic email derived from client name |
| accessToken | Token obtained after registration |
| bookId | Book ID retrieved dynamically |
| orderId | Captured from newly created order |
💡 Tokens and IDs are stored dynamically using Postman scripts during collection execution.
Execute the entire collection from CLI:
newman run postman/SimpleBooksAPI_Collection.json \
-e postman/SimpleBooksAPI_Environment.json \
-r cli,html \
--reporter-html-export reports/newman-report.html✔ Runs all tests sequentially (Health → Auth → Books → Orders)
📄 Generates an HTML report under /reports/newman-report.html
📊 Postman Monitor Overview Automated Postman Monitors are configured to run every 12 hours to validate uptime and performance. Below is a snapshot of the monitor performance over multiple runs:
🧠 Highlights & Key Learnings
| File | Description |
|---|---|
| postman/SimpleBooksAPI_Collection.json | Full Postman collection with test scripts |
| postman/SimpleBooksAPI_Environment.json | Environment variables (URLs, tokens, IDs) |
| reports/newman-report.html | Newman HTML test report |
| screenshots/monitor_run_passed.png | Screenshot of successful monitor run |
Aditya More
💻 Full-Stack & QA Automation Enthusiast
📧 adityamore.se@example.com
| Back | FazBrowse Home | New Git URL |