Skip to content

Instantly share code, notes, and snippets.

@thiagoarrais
Created May 21, 2019 18:57
Show Gist options
  • Save thiagoarrais/fcf16a1fac605229fa62d376974a7513 to your computer and use it in GitHub Desktop.
Save thiagoarrais/fcf16a1fac605229fa62d376974a7513 to your computer and use it in GitHub Desktop.
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