Skip to content

Convert a Swagger Api schema into Postman supported JSON for imports

Notifications You must be signed in to change notification settings

opjarretop/Swagger-to-Postman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swagger To Postman

Description

Converts our Swagger.io api json to a Postman acceptable version for importing into Postman

Setup

  • npm i
  • make sure you have node >=14.x

Usage

  • Open the index.mjs file
  • Change the JSON_URL if you want (maybe you want to create dev, prod, mine, sandbox versions)
    • You can get the Url by going to the Swagger documentation urls and replacing /documentation with /swagger.json or clicking the /swagger.json link on the GUI.
  • Run node index.mjs
  • This will output a file to the OUTPUT_FILE_NAME variable
  • Go to Postman hit file -> import -> file tab (click Upload Files) select the output file from this script

About

Convert a Swagger Api schema into Postman supported JSON for imports

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published