UNPKG

@readme/oas-examples

Version:

A collection of example OpenAPI 3.x and Swagger 2.0 documents.

46 lines (45 loc) 985 B
swagger: '2.0' info: version: '1.0.0' title: 'Swagger Petstore' description: 'A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification' termsOfService: 'http://swagger.io/terms/' contact: name: 'Swagger API Team' license: name: 'MIT' host: 'petstore.swagger.io' basePath: '/api' schemes: - 'http' consumes: - 'application/json' produces: - 'application/json' paths: /pets: get: description: 'Returns all pets from the system that the user has access to' produces: - 'application/json' responses: '200': description: 'A list of pets.' schema: type: 'array' items: $ref: '#/definitions/Pet' definitions: Pet: type: 'object' required: - 'id' - 'name' properties: id: type: 'integer' format: 'int64' name: type: 'string' tag: type: 'string'