openapi-to-postmanv2
Version:
Convert a given OpenAPI specification to Postman Collection v2.0
1 lines • 5.79 kB
JSON
{"item":[{"name":"pets","description":"","item":[{"id":"ecc65598-bae4-4ccf-9670-3994e442b9b5","name":"List all pets","request":{"name":"List all pets","description":{},"url":{"path":["pets"],"host":["{{baseUrl}}"],"query":[{"disabled":false,"description":{"content":"random variable","type":"text/plain"},"key":"variable","value":"<string>,<string>"},{"disabled":false,"description":{"content":"another random variable","type":"text/plain"},"key":"variable2","value":"<long>%20<long>"}],"variable":[]},"header":[{"disabled":false,"description":{"content":"How many items to return at one time (max 100)","type":"text/plain"},"key":"limit","value":"<integer>"},{"key":"Accept","value":"application/json"}],"method":"GET","body":{},"auth":null},"response":[{"id":"ed9dd0c9-9250-4b3c-89b0-dc01cd631b8e","name":"An paged array of pets","originalRequest":{"url":{"path":["pets"],"host":["{{baseUrl}}"],"query":[{"disabled":false,"description":{"content":"random variable","type":"text/plain"},"key":"variable","value":"<string>,<string>"},{"disabled":false,"description":{"content":"another random variable","type":"text/plain"},"key":"variable2","value":"<long>%20<long>"}],"variable":[]},"header":[{"disabled":false,"description":{"content":"How many items to return at one time (max 100)","type":"text/plain"},"key":"limit","value":"<integer>"},{"key":"Accept","value":"application/json"}],"method":"GET","body":{}},"status":"OK","code":200,"header":[{"key":"Content-Type","value":"application/json"},{"disabled":false,"description":{"content":"A link to the next page of responses","type":"text/plain"},"key":"x-next","value":"<string>"}],"body":"[\n {\n \"id\": \"<long>\",\n \"name\": \"<string>\",\n \"tag\": \"<string>\"\n },\n {\n \"id\": \"<long>\",\n \"name\": \"<string>\",\n \"tag\": \"<string>\"\n }\n]","cookie":[],"_postman_previewlanguage":"json"},{"id":"226770d7-78d0-4656-97be-1afeb934ca98","name":"unexpected error","originalRequest":{"url":{"path":["pets"],"host":["{{baseUrl}}"],"query":[{"disabled":false,"description":{"content":"random variable","type":"text/plain"},"key":"variable","value":"<string>,<string>"},{"disabled":false,"description":{"content":"another random variable","type":"text/plain"},"key":"variable2","value":"<long>%20<long>"}],"variable":[]},"header":[{"disabled":false,"description":{"content":"How many items to return at one time (max 100)","type":"text/plain"},"key":"limit","value":"<integer>"},{"key":"Accept","value":"application/json"}],"method":"GET","body":{}},"status":"Internal Server Error","code":500,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n \"code\": \"<integer>\",\n \"message\": \"<string>\"\n}","cookie":[],"_postman_previewlanguage":"json"}],"event":[],"protocolProfileBehavior":{"disableBodyPruning":true}},{"id":"8bbc51ce-65ef-476c-a7f8-88747fe48bbd","name":"Create a pet","request":{"name":"Create a pet","description":{},"url":{"path":["pets"],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Accept","value":"application/json"}],"method":"POST","body":{},"auth":null},"response":[{"id":"3e99aceb-420e-4477-9a5e-21bbfab92d83","name":"Null response","originalRequest":{"url":{"path":["pets"],"host":["{{baseUrl}}"],"query":[],"variable":[]},"method":"POST","body":{}},"status":"Created","code":201,"header":[],"cookie":[],"_postman_previewlanguage":"text"},{"id":"407e2f1d-6310-4d0b-8e95-8b073e7fbd6e","name":"unexpected error","originalRequest":{"url":{"path":["pets"],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Accept","value":"application/json"}],"method":"POST","body":{}},"status":"Internal Server Error","code":500,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n \"code\": \"<integer>\",\n \"message\": \"<string>\"\n}","cookie":[],"_postman_previewlanguage":"json"}],"event":[],"protocolProfileBehavior":{"disableBodyPruning":true}},{"name":"{petId}","description":"","item":[{"id":"1d095e11-7429-4ffb-a523-ddc20af5a9f0","name":"Info for a specific pet","request":{"name":"Info for a specific pet","description":{},"url":{"path":["pets",":petId"],"host":["{{baseUrl}}"],"query":[],"variable":[{"type":"any","value":"<string>","key":"petId","disabled":false,"description":{"content":"(Required) The id of the pet to retrieve","type":"text/plain"}}]},"header":[{"key":"Accept","value":"application/json"}],"method":"GET","body":{},"auth":null},"response":[{"id":"d8e2f757-cdbb-4add-b5db-3e94454fff94","name":"Expected response to a valid request","originalRequest":{"url":{"path":["pets",":petId"],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Accept","value":"application/json"}],"method":"GET","body":{}},"status":"OK","code":200,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n \"id\": \"<long>\",\n \"name\": \"<string>\",\n \"tag\": \"<string>\"\n}","cookie":[],"_postman_previewlanguage":"json"},{"id":"5093446b-7225-41eb-9e26-65f2473d5f06","name":"unexpected error","originalRequest":{"url":{"path":["pets",":petId"],"host":["{{baseUrl}}"],"query":[],"variable":[]},"header":[{"key":"Accept","value":"application/json"}],"method":"GET","body":{}},"status":"Internal Server Error","code":500,"header":[{"key":"Content-Type","value":"application/json"}],"body":"{\n \"code\": \"<integer>\",\n \"message\": \"<string>\"\n}","cookie":[],"_postman_previewlanguage":"json"}],"event":[],"protocolProfileBehavior":{"disableBodyPruning":true}}]}]}],"event":[],"variable":[{"key":"baseUrl","value":"http://petstore.swagger.io/v1"}],"info":{"_postman_id":"ae7d8b32-1d0b-4c87-a334-e55e65ec183f","name":"Swagger Petstore","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json","description":{"content":"","type":"text/plain"}}}