-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathform-data-swagger.yaml
112 lines (111 loc) · 2.58 KB
/
form-data-swagger.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
swagger: "2.0"
info:
version: 1.0.0
title: Swagger Formdata Petstore
license:
name: MIT
host: petstore.swagger.io
schemes:
- http
paths:
/pets/import:
post:
description: Bulk import operation for pets from uploaded file
produces:
- application/json
consumes:
- multipart/form-data
parameters:
- name: sourceFile
in: formData
required: true
type: file
description: File to import from.
- name: optionalFile
in: formData
required: false
type: file
description: File to import from.
responses:
'200':
description: Import result
/login:
post:
description: Login operation
produces:
- application/json
consumes:
- multipart/form-data
parameters:
- name: username
in: formData
required: true
type: string
description: Authentication username.
- name: password
in: formData
required: true
type: string
description: Authentication password.
- name: params
in: formData
type: string
description: Optional params.
responses:
'200':
description: Auth result
/kennels/import:
post:
description: Login operation
produces:
- application/json
consumes:
- multipart/form-data
parameters:
- name: name
in: formData
required: true
type: string
description: Kennel name.
- name: blueprintFile
in: formData
required: true
type: file
description: File to import from.
responses:
'200':
description: Import result
/singleFile:
post:
description: Single file upload
produces:
- application/json
consumes:
- multipart/form-data
parameters:
- name: image
in: formData
required: true
type: file
description: File to upload from.
responses:
'200':
description: Import result
definitions:
parameters:
ApiVersion:
name: 'api-version'
in: header
description: 'The api version. It overwrites the account settings.'
required: true
type: string
minLength: 1
pattern: '^\d{1,3}\.\d{1,3}$'
x-example: '3.0'
ApiRequestId:
name: 'request-id'
in: header
description: 'global request id through the system.'
type: string
minLength: 1
x-example: '123456'