Created
May 21, 2019 18:57
-
-
Save thiagoarrais/fcf16a1fac605229fa62d376974a7513 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: "3.0.0" | |
info: | |
version: 1.0.0 | |
title: Swagger Petstore | |
license: | |
name: MIT | |
servers: | |
- url: http://petstore.swagger.io/v1 | |
paths: | |
/pets: | |
post: | |
summary: Create a pet | |
tags: | |
- pets | |
operationId: createPets | |
requestBody: | |
required: false | |
content: | |
multipart/form-data: | |
schema: | |
type: object | |
properties: | |
pets: | |
type: array | |
items: | |
$ref: "#/components/schemas/Pet" | |
responses: | |
default: | |
description: Successful operation | |
components: | |
schemas: | |
Pet: | |
type: object | |
properties: | |
id: | |
type: integer | |
format: int64 | |
name: | |
type: string | |
example: doggie |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment