2.0.1 • Published 4 years ago
swagger-postman-schemavalidation v2.0.1
Create postman collection with schema validation and status check using swagger json file
Install
npm install swagger-postman-schemavalidation
Usage
1. Run 'npm install'.
2. Once it is done, go to /node_modules/swagger-postman-schemavalidation.
> cd /node_modules/swagger-postman-schemavalidation
3. Run 'node server.js'
> node server.js
4. Follow the instructions to convert swagger json file to postman collection.
- Give absolute path to swagger json file when prompted.
- Once the conversion is done, find the path for postman collection in the logs.
5. Import the generated collection to Postman.
- Tests for schema validation can be found in ‘Tests’ tab for individual APIs.
- Status check test case can be found in the collection tests.
API responses will be validated against schema every time you use them.
Author
👤 Tejaswi Desiraju
- LinkedIn: @tejaswidesiraju
Show your support
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator