Skip to content

emanemair/postman-api-testing-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Postman API Testing for Simple Books API

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.


Getting Started

Prerequisites

Installation

  1. Clone the repository: Clone this repository to your local machine.
    git clone [your-repository-url]
  2. Import the collection: Open Postman, click the "Import" button, and select the .json file from the cloned repository.

API Endpoints Tested

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.

Test Report Summary

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)

Contribution

Feel free to fork this repository, create a new branch, and submit a pull request if you have any improvements or suggestions.


Contact

For any questions or feedback, please open an issue in this repository.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages