Logo
15_Days_of_Postman_-_for_testers_IvanKo API Documentation

Transform collection to OpenAPI

GET {{baseUrl}}/collections/{{collectionId}}/transformations

Transforms an existing Qodex Collection into a stringified OpenAPI definition.

Note:

This does not create an API.

 

Body PARAM

Key Datatype Required Description 
format
string Return the OpenAPI definition in the given format: - `json` (default) - `yaml`



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "output": "{\n \"openapi\": \"3.0.3\",\n \"info\": {\n \"title\": \"Collection to API\",\n \"version\": \"1.0.0\",\n \"contact\": {}\n },\n \"servers\": [\n {\n \"url\": \"http://api.getpostman.com/\"\n }\n ],\n \"paths\": {},\n \"tags\": []\n}\n" }



Curl
curl -X GET 'https://api.getpostman.com/collections/collectionId/transformations?format=<string>'

ENDPOINTS