Skip to content

Instantly share code, notes, and snippets.

@4brunu
Created December 4, 2019 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4brunu/85487ad068597658f3b831c5f588faeb to your computer and use it in GitHub Desktop.
Save 4brunu/85487ad068597658f3b831c5f588faeb to your computer and use it in GitHub Desktop.
swagger: '2.0'
info:
description: "description"
version: 1.0.0
title: OpenAPI
tags:
- name: person
description: persons
paths:
/person:
post:
tags:
- person
summary: Add a new person
description: ''
operationId: addPerson
parameters:
- in: body
name: body
description: Person object
required: true
schema:
$ref: '#/definitions/Person'
responses:
'405':
description: Invalid input
definitions:
Person:
type: object
required:
- lastName
properties:
firstName:
type: string
lastName:
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment