MagicAPI
MagicAPI
  • 👋Welcome to MagicAPI
  • Overview
    • Creating an API Store
    • Importing an API Source
    • Creating a Product using the Wizard
    • User Portal
    • Testing Your APIs & Products
    • Analytics & Logs
    • Configure Custom DNS for your API Store
    • Custom Usage
  • Concepts
    • Understanding Products
    • API Keys
  • Fundamentals
    • Convert Postman Collection to OpenAPI Yaml
    • Create OpenAPI spec using ChatGPT
  • API Providers
    • Toon Me API
    • Advanced Toon Me API
  • About Us
Powered by GitBook
On this page

Was this helpful?

  1. Fundamentals

Convert Postman Collection to OpenAPI Yaml

Download this tool:

npm i postman-to-openapi -g

On Postman Click on Export and export the collections as JSON.

Then on CLI run:

p2o ./path/to/PostmantoCollection.json -f ./out_openapi_.yml

This will create the OpenAPI Schema at out_openapi_.yml.

Open this file in a text editor of your choice and update the basePathUrl and any other variables.

PreviousAPI KeysNextCreate OpenAPI spec using ChatGPT

Last updated 1 year ago

Was this helpful?