Postman collection to Swagger

How to create Swagger documentation using Postman

Published: Thursday, Apr 28, 2022 Last modified: Monday, Dec 9, 2024

Using https://joolfe.github.io/postman-to-openapi

../example.yaml:
	p2o ~/Documents/example.postman_collection-2022-03-21.json -f $@ -o options.json

clean:
	rm -f ../example.yaml

options.json has a structure like so:

[
  "auth",
  "externalDocs",
  "info",
  "responseHeaders",
  "servers"
]