@readme/oas-examples
Version:
A collection of example OpenAPI 3.x and Swagger 2.0 documents.
40 lines (39 loc) • 866 B
YAML
openapi: 3.0.0
info:
version: 1.0.0
title: Simple Petstore
description: This is a slimmed down single path version of the Petstore definition.
servers:
- url: https://httpbin.org
paths:
'/pet/{id}':
parameters:
- name: id
in: path
required: true
schema:
type: integer
put:
tags:
- pet
summary: Update a pet
description: This operation will update a pet in the database.
responses:
'400':
description: Invalid id value
security:
- apiKey: []
get:
tags:
- pet
summary: Find a pet
description: This operation will find a pet in the database.
responses:
'400':
description: Invalid status value
security: []
components:
securitySchemes:
apiKey:
type: http
scheme: basic