Created
December 4, 2019 15:33
-
-
Save 4brunu/85487ad068597658f3b831c5f588faeb 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
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