Home / Companies / Postman / Blog / Post Details
Content Deep Dive

Creating an OpenAPI definition from a collection with the Postman API

Blog post from Postman

Post Details
Company
Date Published
Author
David Espi Hernandez
Word Count
535
Company Posts That Month
14
Language
English
Hacker News Points
-
Post removed?
No
Summary

Creating OpenAPI definitions can be challenging, but Postman Collections offer a simpler alternative by allowing users to easily add requests and create JSON response and request bodies. The recent introduction of the collection transformation endpoint in the Postman API facilitates the conversion of Postman Collections into OpenAPI definitions, supporting an API-first design approach. By calling this endpoint, users receive an OpenAPI definition of their collection, which can then be shared with stakeholders and used to create mock servers. This process involves using the Postman API to get the collection’s OpenAPI definition, extracting and formatting the response with jq, and saving the output to a JSON file. This streamlined workflow enables the automatic conversion and programmatic synchronization of API definitions within Postman, aiding in efficient API design and development.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.