File tree Expand file tree Collapse file tree 1 file changed +30
-8
lines changed Expand file tree Collapse file tree 1 file changed +30
-8
lines changed Original file line number Diff line number Diff line change 26
26
schema :
27
27
type : string
28
28
responses :
29
- ' 200 ' :
29
+ " 200 " :
30
30
description : An array of books.
31
31
content :
32
32
application/json :
@@ -49,8 +49,14 @@ paths:
49
49
application/json :
50
50
schema :
51
51
$ref : " #/components/schemas/Book"
52
+ multipart/form-data :
53
+ schema :
54
+ $ref : " #/components/schemas/BookFormData"
55
+ text/plain :
56
+ schema :
57
+ type : string
52
58
responses :
53
- ' 200 ' :
59
+ " 200 " :
54
60
description : A book.
55
61
content :
56
62
application/json :
77
83
schema :
78
84
type : integer
79
85
responses :
80
- ' 200 ' :
86
+ " 200 " :
81
87
description : A book.
82
88
content :
83
89
application/json :
@@ -103,7 +109,7 @@ paths:
103
109
schema :
104
110
type : integer
105
111
responses :
106
- ' 200 ' :
112
+ " 200 " :
107
113
description : A book.
108
114
content :
109
115
application/json :
@@ -132,7 +138,7 @@ paths:
132
138
schema :
133
139
type : integer
134
140
responses :
135
- ' 204 ' :
141
+ " 204 " :
136
142
description : Book was deleted.
137
143
default :
138
144
description : Book was deleted.
@@ -144,7 +150,7 @@ paths:
144
150
tags :
145
151
- books
146
152
responses :
147
- ' 200 ' :
153
+ " 200 " :
148
154
description : A book.
149
155
content :
150
156
application/json :
@@ -171,7 +177,7 @@ paths:
171
177
schema :
172
178
type : string
173
179
responses :
174
- ' 200 ' :
180
+ " 200 " :
175
181
description : An array of books.
176
182
content :
177
183
application/json :
@@ -198,6 +204,22 @@ components:
198
204
type : string
199
205
tag :
200
206
type : string
207
+ BookFormData :
208
+ type : object
209
+ required :
210
+ - id
211
+ - name
212
+ properties :
213
+ id :
214
+ type : integer
215
+ format : int64
216
+ name :
217
+ type : string
218
+ tag :
219
+ type : string
220
+ image :
221
+ type : string
222
+ format : binary
201
223
Books :
202
224
type : array
203
225
items :
@@ -212,4 +234,4 @@ components:
212
234
type : integer
213
235
format : int32
214
236
message :
215
- type : string
237
+ type : string
You can’t perform that action at this time.
0 commit comments