|
15 | 15 | "produces": [ |
16 | 16 | "application/json" |
17 | 17 | ], |
18 | | - "paths": { |
19 | | - "/api/v1/todos": { |
20 | | - "get": { |
21 | | - "operationId": "Todos_GetPaginated", |
22 | | - "responses": { |
23 | | - "200": { |
24 | | - "description": "A successful response.", |
25 | | - "schema": { |
26 | | - "$ref": "#/definitions/grpcsTodoPaginatedResponse" |
27 | | - } |
28 | | - }, |
29 | | - "default": { |
30 | | - "description": "An unexpected error response.", |
31 | | - "schema": { |
32 | | - "$ref": "#/definitions/rpcStatus" |
33 | | - } |
34 | | - } |
35 | | - }, |
36 | | - "parameters": [ |
37 | | - { |
38 | | - "name": "page", |
39 | | - "in": "query", |
40 | | - "required": false, |
41 | | - "type": "integer", |
42 | | - "format": "int32" |
43 | | - }, |
44 | | - { |
45 | | - "name": "limit", |
46 | | - "in": "query", |
47 | | - "required": false, |
48 | | - "type": "integer", |
49 | | - "format": "int32" |
50 | | - }, |
51 | | - { |
52 | | - "name": "fields", |
53 | | - "in": "query", |
54 | | - "required": false, |
55 | | - "type": "array", |
56 | | - "items": { |
57 | | - "type": "string" |
58 | | - }, |
59 | | - "collectionFormat": "multi" |
60 | | - }, |
61 | | - { |
62 | | - "name": "values", |
63 | | - "in": "query", |
64 | | - "required": false, |
65 | | - "type": "array", |
66 | | - "items": { |
67 | | - "type": "string" |
68 | | - }, |
69 | | - "collectionFormat": "multi" |
70 | | - } |
71 | | - ], |
72 | | - "tags": [ |
73 | | - "Todos" |
74 | | - ] |
75 | | - }, |
76 | | - "post": { |
77 | | - "operationId": "Todos_Create", |
78 | | - "responses": { |
79 | | - "200": { |
80 | | - "description": "A successful response.", |
81 | | - "schema": { |
82 | | - "$ref": "#/definitions/grpcsTodoResponse" |
83 | | - } |
84 | | - }, |
85 | | - "default": { |
86 | | - "description": "An unexpected error response.", |
87 | | - "schema": { |
88 | | - "$ref": "#/definitions/rpcStatus" |
89 | | - } |
90 | | - } |
91 | | - }, |
92 | | - "parameters": [ |
93 | | - { |
94 | | - "name": "body", |
95 | | - "in": "body", |
96 | | - "required": true, |
97 | | - "schema": { |
98 | | - "$ref": "#/definitions/grpcsTodo" |
99 | | - } |
100 | | - } |
101 | | - ], |
102 | | - "tags": [ |
103 | | - "Todos" |
104 | | - ] |
105 | | - } |
106 | | - }, |
107 | | - "/api/v1/todos/{id}": { |
108 | | - "get": { |
109 | | - "operationId": "Todos_Get", |
110 | | - "responses": { |
111 | | - "200": { |
112 | | - "description": "A successful response.", |
113 | | - "schema": { |
114 | | - "$ref": "#/definitions/grpcsTodoResponse" |
115 | | - } |
116 | | - }, |
117 | | - "default": { |
118 | | - "description": "An unexpected error response.", |
119 | | - "schema": { |
120 | | - "$ref": "#/definitions/rpcStatus" |
121 | | - } |
122 | | - } |
123 | | - }, |
124 | | - "parameters": [ |
125 | | - { |
126 | | - "name": "id", |
127 | | - "in": "path", |
128 | | - "required": true, |
129 | | - "type": "string" |
130 | | - }, |
131 | | - { |
132 | | - "name": "name", |
133 | | - "in": "query", |
134 | | - "required": false, |
135 | | - "type": "string" |
136 | | - } |
137 | | - ], |
138 | | - "tags": [ |
139 | | - "Todos" |
140 | | - ] |
141 | | - }, |
142 | | - "delete": { |
143 | | - "operationId": "Todos_Delete", |
144 | | - "responses": { |
145 | | - "200": { |
146 | | - "description": "A successful response.", |
147 | | - "schema": { |
148 | | - "$ref": "#/definitions/grpcsTodoResponse" |
149 | | - } |
150 | | - }, |
151 | | - "default": { |
152 | | - "description": "An unexpected error response.", |
153 | | - "schema": { |
154 | | - "$ref": "#/definitions/rpcStatus" |
155 | | - } |
156 | | - } |
157 | | - }, |
158 | | - "parameters": [ |
159 | | - { |
160 | | - "name": "id", |
161 | | - "in": "path", |
162 | | - "required": true, |
163 | | - "type": "string" |
164 | | - }, |
165 | | - { |
166 | | - "name": "name", |
167 | | - "in": "query", |
168 | | - "required": false, |
169 | | - "type": "string" |
170 | | - } |
171 | | - ], |
172 | | - "tags": [ |
173 | | - "Todos" |
174 | | - ] |
175 | | - }, |
176 | | - "put": { |
177 | | - "operationId": "Todos_Update", |
178 | | - "responses": { |
179 | | - "200": { |
180 | | - "description": "A successful response.", |
181 | | - "schema": { |
182 | | - "$ref": "#/definitions/grpcsTodoResponse" |
183 | | - } |
184 | | - }, |
185 | | - "default": { |
186 | | - "description": "An unexpected error response.", |
187 | | - "schema": { |
188 | | - "$ref": "#/definitions/rpcStatus" |
189 | | - } |
190 | | - } |
191 | | - }, |
192 | | - "parameters": [ |
193 | | - { |
194 | | - "name": "id", |
195 | | - "in": "path", |
196 | | - "required": true, |
197 | | - "type": "string" |
198 | | - }, |
199 | | - { |
200 | | - "name": "body", |
201 | | - "in": "body", |
202 | | - "required": true, |
203 | | - "schema": { |
204 | | - "$ref": "#/definitions/grpcsTodo" |
205 | | - } |
206 | | - } |
207 | | - ], |
208 | | - "tags": [ |
209 | | - "Todos" |
210 | | - ] |
211 | | - }, |
212 | | - "patch": { |
213 | | - "operationId": "Todos_Update2", |
214 | | - "responses": { |
215 | | - "200": { |
216 | | - "description": "A successful response.", |
217 | | - "schema": { |
218 | | - "$ref": "#/definitions/grpcsTodoResponse" |
219 | | - } |
220 | | - }, |
221 | | - "default": { |
222 | | - "description": "An unexpected error response.", |
223 | | - "schema": { |
224 | | - "$ref": "#/definitions/rpcStatus" |
225 | | - } |
226 | | - } |
227 | | - }, |
228 | | - "parameters": [ |
229 | | - { |
230 | | - "name": "id", |
231 | | - "in": "path", |
232 | | - "required": true, |
233 | | - "type": "string" |
234 | | - }, |
235 | | - { |
236 | | - "name": "body", |
237 | | - "in": "body", |
238 | | - "required": true, |
239 | | - "schema": { |
240 | | - "$ref": "#/definitions/grpcsTodo" |
241 | | - } |
242 | | - } |
243 | | - ], |
244 | | - "tags": [ |
245 | | - "Todos" |
246 | | - ] |
247 | | - } |
248 | | - } |
249 | | - }, |
| 18 | + "paths": {}, |
250 | 19 | "definitions": { |
251 | | - "grpcsPaginationMetadata": { |
252 | | - "type": "object", |
253 | | - "properties": { |
254 | | - "page": { |
255 | | - "type": "integer", |
256 | | - "format": "int32" |
257 | | - }, |
258 | | - "previous": { |
259 | | - "type": "integer", |
260 | | - "format": "int32" |
261 | | - }, |
262 | | - "next": { |
263 | | - "type": "integer", |
264 | | - "format": "int32" |
265 | | - }, |
266 | | - "limit": { |
267 | | - "type": "integer", |
268 | | - "format": "int32" |
269 | | - }, |
270 | | - "record": { |
271 | | - "type": "integer", |
272 | | - "format": "int32" |
273 | | - }, |
274 | | - "total": { |
275 | | - "type": "integer", |
276 | | - "format": "int32" |
277 | | - } |
278 | | - } |
279 | | - }, |
280 | | - "grpcsTodo": { |
281 | | - "type": "object", |
282 | | - "properties": { |
283 | | - "id": { |
284 | | - "type": "string" |
285 | | - }, |
286 | | - "name": { |
287 | | - "type": "string" |
288 | | - } |
289 | | - } |
290 | | - }, |
291 | | - "grpcsTodoPaginatedResponse": { |
292 | | - "type": "object", |
293 | | - "properties": { |
294 | | - "code": { |
295 | | - "type": "integer", |
296 | | - "format": "int32" |
297 | | - }, |
298 | | - "data": { |
299 | | - "type": "array", |
300 | | - "items": { |
301 | | - "$ref": "#/definitions/grpcsTodo" |
302 | | - } |
303 | | - }, |
304 | | - "meta": { |
305 | | - "$ref": "#/definitions/grpcsPaginationMetadata" |
306 | | - } |
307 | | - } |
308 | | - }, |
309 | | - "grpcsTodoResponse": { |
310 | | - "type": "object", |
311 | | - "properties": { |
312 | | - "code": { |
313 | | - "type": "integer", |
314 | | - "format": "int32" |
315 | | - }, |
316 | | - "data": { |
317 | | - "$ref": "#/definitions/grpcsTodo" |
318 | | - }, |
319 | | - "message": { |
320 | | - "type": "string" |
321 | | - } |
322 | | - } |
323 | | - }, |
324 | 20 | "protobufAny": { |
325 | 21 | "type": "object", |
326 | 22 | "properties": { |
|
0 commit comments