Last active
March 21, 2019 19:21
-
-
Save awsum/9cff0a151b2c46f3203ad4a8a440249d 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: | |
title: Test API | |
version: 0.0.1 | |
servers: | |
- url: 'localhost:3000/api' | |
description: Local API URL. | |
paths: | |
/test: | |
post: | |
requestBody: | |
content: | |
application/json: | |
schema: | |
oneOf: | |
- $ref: '#/components/schemas/a' | |
- $ref: '#/components/schemas/b' | |
responses: | |
'200': | |
description: OK | |
components: | |
schemas: | |
a: | |
type: integer | |
b: | |
type: string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment