This project demonstrates automated API testing with Postman and generates reports using Newman for the GoREST API server. It includes a suite of tests designed to validate various API endpoints, covering CRUD operations and ensuring robust, accurate performance across user, post, comment, and todos functionalities.
- Users API
- Creating a new user with valid and invalid data.
- Retrieving user lists and validating pagination.
- Updating and partially updating users.
- Handling requests with invalid or blank JSON payloads.
- Posts API
- Creating posts for users and validating content fields.
- Retrieving posts with search filters like title and body.
- Updating and patching posts.
- Checking post retrieval with various pagination and search parameters.
- Comments API
- Posting comments with various field checks.
- Retrieving comments by post ID and filtering with parameters.
- Updating and patching comments.
- Todos API
- Creating todos for users with valid and invalid parameters.
- Retrieving todos and validating fields like title, due_on, and status.
- Updating and partially updating todos.
- Delete Operations
- Deleting users, posts, and comments, and validating with both valid and invalid IDs.
- clone this repository
- give this command
- npm i
- npm run report
- Node.js must be installed
- Newman
- Newman HTML Report Library
- Postman
- Newman
This project is open-source and available under the MIT License.
Feel free to submit issues, fork the repository, and send pull requests. Please ensure your contributions align with the project goals of comprehensive API validation.