Last active
July 31, 2023 20:55
-
-
Save char0n/21c52cb3e909f8fac9efc7e8db5a705b 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: "Foo" | |
version: 1.0.0 | |
servers: | |
- url: https://foo/v1/api | |
paths: | |
/upload/: | |
post: | |
tags: | |
- "upload" | |
operationId: "upload" | |
requestBody: | |
required: true | |
content: | |
multipart/form-data: # Media type | |
schema: | |
type: object | |
properties: # Request parts | |
file: | |
type: string | |
format: binary | |
options: | |
type: object | |
properties: | |
some_array: | |
type: array | |
items: | |
type: string | |
max_bar: | |
type: integer | |
default: 300 | |
encoding: | |
options: | |
contentType: application/json | |
responses: | |
'200': | |
description: ok | |
content: | |
application/json: | |
schema: | |
type: object | |
properties: | |
foo: | |
type: string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment