mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-14 13:40:55 +00:00
* rename csharp-netcore to csharp * rename file * renmae modules/openapi-generator/src/main/resources/csharp-netcore * update samples * mv dir * update samples * rename csharp-netcore to csharp in appveyor.yml * update doc
101 lines
2.3 KiB
YAML
101 lines
2.3 KiB
YAML
openapi: 3.0.1
|
|
info:
|
|
title: MultipartFile test
|
|
version: 1.0.0
|
|
servers:
|
|
- url: /
|
|
paths:
|
|
/multipart-array:
|
|
post:
|
|
description: MultipartFile array test
|
|
operationId: multipartArray
|
|
requestBody:
|
|
content:
|
|
multipart/form-data:
|
|
schema:
|
|
$ref: '#/components/schemas/multipartArray_request'
|
|
responses:
|
|
"204":
|
|
description: Successful operation
|
|
tags:
|
|
- multipart
|
|
/multipart-single:
|
|
post:
|
|
description: Single MultipartFile test
|
|
operationId: multipartSingle
|
|
requestBody:
|
|
content:
|
|
multipart/form-data:
|
|
schema:
|
|
$ref: '#/components/schemas/multipartSingle_request'
|
|
responses:
|
|
"204":
|
|
description: Successful operation
|
|
tags:
|
|
- multipart
|
|
/multipart-mixed:
|
|
post:
|
|
description: Mixed MultipartFile test
|
|
operationId: multipartMixed
|
|
requestBody:
|
|
content:
|
|
multipart/form-data:
|
|
schema:
|
|
$ref: '#/components/schemas/multipartMixed_request'
|
|
responses:
|
|
"204":
|
|
description: Successful operation
|
|
tags:
|
|
- multipart
|
|
components:
|
|
schemas:
|
|
MultipartMixedStatus:
|
|
description: additional field as Enum
|
|
enum:
|
|
- ALLOWED
|
|
- IN_PROGRESS
|
|
- REJECTED
|
|
example: REJECTED
|
|
type: string
|
|
multipartArray_request:
|
|
properties:
|
|
files:
|
|
description: Many files
|
|
items:
|
|
format: binary
|
|
type: string
|
|
type: array
|
|
type: object
|
|
multipartSingle_request:
|
|
properties:
|
|
file:
|
|
description: One file
|
|
format: binary
|
|
type: string
|
|
type: object
|
|
multipartMixed_request_marker:
|
|
description: additional object
|
|
properties:
|
|
name:
|
|
type: string
|
|
type: object
|
|
multipartMixed_request:
|
|
properties:
|
|
status:
|
|
$ref: '#/components/schemas/MultipartMixedStatus'
|
|
marker:
|
|
$ref: '#/components/schemas/multipartMixed_request_marker'
|
|
file:
|
|
description: a file
|
|
format: binary
|
|
type: string
|
|
statusArray:
|
|
items:
|
|
$ref: '#/components/schemas/MultipartMixedStatus'
|
|
type: array
|
|
required:
|
|
- file
|
|
- status
|
|
type: object
|
|
|