openapi: 3.0.3 info: title: Pet Store example version: 1.0.0 servers: - url: https://api.example.com/v1 tags: - name: Pets paths: /pets: get: tags: - Pets operationId: listPets summary: List pets parameters: - name: limit in: query required: false schema: type: integer format: int32 minimum: 1 responses: '200': description: A list of pets content: application/json: schema: type: array items: $ref: '#/components/schemas/Pet' /pets/{petId}: get: tags: - Pets operationId: getPet summary: Get a pet by ID parameters: - name: petId in: path required: true schema: type: string responses: '200': description: The requested pet content: application/json: schema: $ref: '#/components/schemas/Pet' '404': description: Pet not found components: schemas: Pet: type: object required: - id - name - status properties: id: type: string name: type: string status: $ref: '#/components/schemas/PetStatus' PetStatus: type: string enum: - available - pending - sold x-enumNames: - available - pendingReview - sold