Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/christherama/swagger-to-postman

Converts a Swagger JSON spec to a Postman collection with request bodies
https://github.com/christherama/swagger-to-postman

nodejs postman swagger

Last synced: 9 days ago
JSON representation

Converts a Swagger JSON spec to a Postman collection with request bodies

Awesome Lists containing this project

README

        

# Swagger-to-Postman Converter
This nodejs app accepts a valid Swagger 2.0 JSON spec and converts it to a Postman collection for importing into Postman. In particular, it generates sample request bodies for all POST and PUT requests.

## Using the Converter

1. Install packages
```
npm install
```

2. Run script with options

- `-s` path/to/swagger/json
- `-p` path/to/save/postman/collection
- `--https` Use HTTPS in URL
```
node stp.js -s ~/sample-swagger.json -p ~/sample-postman.json --https
```