A simple Node E-Commerce application for testing RESTful web services. This application is built for testers to practice API Testing Manually using tools like Postman or using API Test Automation tools like SuperTest, Rest-Assured, Playwright, Cypress, Boyka-Framework, etc.
- Clone the repo
- Navigate into the restful-ecommerce root folder
- Run
npm install
- Run
npm start
APIs are exposed on http://localhost:3004/
Swagger is exposed on http://localhost:3004/api-docs
- Visit
http://localhost:3004/swagger.json
to generate and download the Swagger JSON file - The Swagger JSON file will be saved as
swagger-output.json
in your project directory - Open
Postman
app and click onImport
- Select file
swagger-output.json
from the root folder of the project - Select
OpenAPI 3.0 with a Postman Collection
and click onImport
- All the Available APIs will be imported in Postman and can be used for testing
-
Clone the repo
-
Navigate into the restful-ecommerce root folder
-
Run
docker compose -f docker-compose-ecommerce.yml up -d
- This command will start the application in detached mode -
APIs are exposed on http://localhost:3004/
-
Swagger is exposed on http://localhost:3004/api-docs
-
Run
docker compose -f docker-compose-ecommerce.yml down
to stop the application.
After running all the steps mentioned in the Installation steps
section, the following command will execute all the unit-tests. (It is optional to run the unit tests, these tests are written using Super-Test)
- Run
npm run unit-test
Checkout the API Documentation on the Wiki-Page
- RESTful E-Commerce API in Node.js: Demo APIs for API Testing | Open Source | Tutorial
- Playwright Java API Testing | How to test POST requests?
- Playwright Java API Testing | How to test GET requests?
- Playwright Java API Testing | How to test PUT requests?
- Playwright Java API Testing | How to test PATCH requests?
- Playwright Java API Testing | How to test DELETE requests?
- Postman Learning Center
- Automating your API tests with REST Assured
- How to perform End to End API Testing using Playwright with Java and TestNG
- End to End API Testing using rest-assured
- Learn API Testing using Rest-Assured | Tutorial | Part 1
- Learn API Testing using Rest-Assured | Part 2 | Code Cleanup and Refactoring | Tutorial
- Curated lists of all Free learning resources for Software Test Automation Engineer
- Discuss your queries by writing to me @
mohammadfaisalkhatri@gmail.com
OR ping me on any of the social media sites using the below link: