Created
February 12, 2020 18:01
-
-
Save josehenriqueventura/fabb103490d279d68f73beae9e5f721f to your computer and use it in GitHub Desktop.
openapi.yaml
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: | |
title: Generated API | |
version: "1.0" | |
paths: | |
/fruits: | |
get: | |
responses: | |
"200": | |
description: OK | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/SetFruit' | |
post: | |
requestBody: | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/Fruit' | |
responses: | |
"200": | |
description: OK | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/SetFruit' | |
delete: | |
requestBody: | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/Fruit' | |
responses: | |
"200": | |
description: OK | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/SetFruit' | |
components: | |
schemas: | |
MapStringString: | |
type: object | |
additionalProperties: | |
type: string | |
Fruit: | |
type: object | |
properties: | |
cites: | |
$ref: '#/components/schemas/MapStringString' | |
description: | |
type: string | |
name: | |
type: string | |
SetFruit: | |
$ref: '#/components/schemas/SetFruit' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment