Creating an OpenAPI definition from a collection with the Postman API
Blog post from Postman
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.
No tracked trend matches for this post yet.
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.