{ "openapi": "3.0.0", "info": { "title": "Petstore API", "version": "2.1.0", "description": "Sample Petstore API for demonstration", "contact": { "name": "Petstore Team", "email": "support@petstore.io" }, "termsOfService": "https://petstore.io/terms" }, "servers": [ { "url": "https://api.petstore.io/v2" } ], "tags": [ { "name": "Pets", "description": "Everything about your pets" } ], "paths": { "/pets": { "get": { "operationId": "listPets", "summary": "List all pets", "tags": ["Pets"], "parameters": [ { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer" } } ], "responses": { "200": { "description": "A list of pets" } } } }, "/pets/{petId}": { "get": { "operationId": "getPetById", "summary": "Get a pet by ID", "tags": ["Pets"], "parameters": [ { "name": "petId", "in": "path", "required": true, "schema": { "type": "integer" } } ], "responses": { "200": { "description": "Pet details" }, "404": { "description": "Pet not found" } } } } }, "components": { "securitySchemes": { "ApiKeyAuth": { "type": "apiKey", "in": "header", "name": "X-API-KEY" } } } }