|
1 | 1 | { |
2 | 2 | "swagger": "2.0", |
3 | 3 | "info": { |
4 | | - "description": "This is a sample server Petstore server.", |
| 4 | + "description": "test.", |
5 | 5 | "title": "Swagger Example API", |
6 | 6 | "termsOfService": "http://swagger.io/terms/", |
7 | 7 | "contact": { |
|
30 | 30 | "account" |
31 | 31 | ], |
32 | 32 | "summary": "Creates an account on the service", |
33 | | - "parameters": [ |
34 | | - { |
| 33 | + "parameters": [{ |
35 | 34 | "maxLength": 320, |
36 | 35 | "minLength": 4, |
37 | 36 | "type": "string", |
|
75 | 74 | "account" |
76 | 75 | ], |
77 | 76 | "summary": "Sign Into Account", |
78 | | - "parameters": [ |
79 | | - { |
| 77 | + "parameters": [{ |
80 | 78 | "maxLength": 320, |
81 | 79 | "minLength": 4, |
82 | 80 | "type": "string", |
|
115 | 113 | "verify" |
116 | 114 | ], |
117 | 115 | "summary": "Gets the account by ID", |
118 | | - "parameters": [ |
119 | | - { |
| 116 | + "parameters": [{ |
120 | 117 | "type": "string", |
121 | 118 | "description": "Authentication header", |
122 | 119 | "name": "Auth", |
|
153 | 150 | "verify" |
154 | 151 | ], |
155 | 152 | "summary": "Gets all user accounts", |
156 | | - "parameters": [ |
157 | | - { |
158 | | - "type": "string", |
159 | | - "description": "Authentication header", |
160 | | - "name": "Auth", |
161 | | - "in": "header", |
162 | | - "required": true |
163 | | - } |
164 | | - ], |
| 153 | + "parameters": [{ |
| 154 | + "type": "string", |
| 155 | + "description": "Authentication header", |
| 156 | + "name": "Auth", |
| 157 | + "in": "header", |
| 158 | + "required": true |
| 159 | + }], |
165 | 160 | "responses": { |
166 | 161 | "200": { |
167 | 162 | "description": "OK", |
|
187 | 182 | "verify" |
188 | 183 | ], |
189 | 184 | "summary": "Gets all user accounts", |
190 | | - "parameters": [ |
191 | | - { |
192 | | - "type": "string", |
193 | | - "description": "Authentication header", |
194 | | - "name": "Auth", |
195 | | - "in": "header", |
196 | | - "required": true |
197 | | - } |
198 | | - ], |
| 185 | + "parameters": [{ |
| 186 | + "type": "string", |
| 187 | + "description": "Authentication header", |
| 188 | + "name": "Auth", |
| 189 | + "in": "header", |
| 190 | + "required": true |
| 191 | + }], |
199 | 192 | "responses": { |
200 | 193 | "200": { |
201 | 194 | "description": "OK", |
|
221 | 214 | "verify" |
222 | 215 | ], |
223 | 216 | "summary": "Gets the user account role by ID", |
224 | | - "parameters": [ |
225 | | - { |
| 217 | + "parameters": [{ |
226 | 218 | "type": "string", |
227 | 219 | "description": "Authentication header", |
228 | 220 | "name": "Auth", |
|
260 | 252 | "verify" |
261 | 253 | ], |
262 | 254 | "summary": "Deletes user by ID", |
263 | | - "parameters": [ |
264 | | - { |
| 255 | + "parameters": [{ |
265 | 256 | "type": "string", |
266 | 257 | "description": "Authentication header", |
267 | 258 | "name": "Auth", |
|
295 | 286 | "verify" |
296 | 287 | ], |
297 | 288 | "summary": "Verifies an email with a UID sent to the account email", |
298 | | - "parameters": [ |
299 | | - { |
300 | | - "type": "string", |
301 | | - "description": "uid from email", |
302 | | - "name": "uid", |
303 | | - "in": "query", |
304 | | - "required": true |
305 | | - } |
306 | | - ], |
| 289 | + "parameters": [{ |
| 290 | + "type": "string", |
| 291 | + "description": "uid from email", |
| 292 | + "name": "uid", |
| 293 | + "in": "query", |
| 294 | + "required": true |
| 295 | + }], |
307 | 296 | "responses": { |
308 | 297 | "200": { |
309 | 298 | "description": "" |
|
323 | 312 | "verify" |
324 | 313 | ], |
325 | 314 | "summary": "Gets the user account information", |
326 | | - "parameters": [ |
327 | | - { |
328 | | - "type": "string", |
329 | | - "description": "Authentication header", |
330 | | - "name": "Auth", |
331 | | - "in": "header", |
332 | | - "required": true |
333 | | - } |
334 | | - ], |
| 315 | + "parameters": [{ |
| 316 | + "type": "string", |
| 317 | + "description": "Authentication header", |
| 318 | + "name": "Auth", |
| 319 | + "in": "header", |
| 320 | + "required": true |
| 321 | + }], |
335 | 322 | "responses": { |
336 | 323 | "200": { |
337 | 324 | "description": "OK", |
|
352 | 339 | "verify" |
353 | 340 | ], |
354 | 341 | "summary": "Deletes user by ID", |
355 | | - "parameters": [ |
356 | | - { |
| 342 | + "parameters": [{ |
357 | 343 | "type": "string", |
358 | 344 | "description": "Authentication header", |
359 | 345 | "name": "Auth", |
|
387 | 373 | "Project" |
388 | 374 | ], |
389 | 375 | "summary": "Updates a user account role by ID", |
390 | | - "parameters": [ |
391 | | - { |
| 376 | + "parameters": [{ |
392 | 377 | "type": "string", |
393 | 378 | "description": "Authentication header as token", |
394 | 379 | "name": "Authentication", |
|
436 | 421 | "verify" |
437 | 422 | ], |
438 | 423 | "summary": "Gets the user account role by account ID", |
439 | | - "parameters": [ |
440 | | - { |
441 | | - "type": "string", |
442 | | - "description": "Authentication header", |
443 | | - "name": "Auth", |
444 | | - "in": "header", |
445 | | - "required": true |
446 | | - } |
447 | | - ], |
| 424 | + "parameters": [{ |
| 425 | + "type": "string", |
| 426 | + "description": "Authentication header", |
| 427 | + "name": "Auth", |
| 428 | + "in": "header", |
| 429 | + "required": true |
| 430 | + }], |
448 | 431 | "responses": { |
449 | 432 | "200": { |
450 | 433 | "description": "OK", |
|
468 | 451 | "verify" |
469 | 452 | ], |
470 | 453 | "summary": "Creates a user account role", |
471 | | - "parameters": [ |
472 | | - { |
473 | | - "type": "string", |
474 | | - "description": "Authentication header", |
475 | | - "name": "Auth", |
476 | | - "in": "header", |
477 | | - "required": true |
478 | | - } |
479 | | - ], |
| 454 | + "parameters": [{ |
| 455 | + "type": "string", |
| 456 | + "description": "Authentication header", |
| 457 | + "name": "Auth", |
| 458 | + "in": "header", |
| 459 | + "required": true |
| 460 | + }], |
480 | 461 | "responses": { |
481 | 462 | "200": { |
482 | 463 | "description": "OK", |
|
499 | 480 | "verify" |
500 | 481 | ], |
501 | 482 | "summary": "Gets the user account role by user ID and account ID", |
502 | | - "parameters": [ |
503 | | - { |
504 | | - "type": "string", |
505 | | - "description": "Authentication header", |
506 | | - "name": "Auth", |
507 | | - "in": "header", |
508 | | - "required": true |
509 | | - } |
510 | | - ], |
| 483 | + "parameters": [{ |
| 484 | + "type": "string", |
| 485 | + "description": "Authentication header", |
| 486 | + "name": "Auth", |
| 487 | + "in": "header", |
| 488 | + "required": true |
| 489 | + }], |
511 | 490 | "responses": { |
512 | 491 | "200": { |
513 | 492 | "description": "OK", |
|
533 | 512 | "verify" |
534 | 513 | ], |
535 | 514 | "summary": "Gets the user account information", |
536 | | - "parameters": [ |
537 | | - { |
538 | | - "type": "string", |
539 | | - "description": "Authentication header", |
540 | | - "name": "Auth", |
541 | | - "in": "header", |
542 | | - "required": true |
543 | | - } |
544 | | - ], |
| 515 | + "parameters": [{ |
| 516 | + "type": "string", |
| 517 | + "description": "Authentication header", |
| 518 | + "name": "Auth", |
| 519 | + "in": "header", |
| 520 | + "required": true |
| 521 | + }], |
545 | 522 | "responses": { |
546 | 523 | "200": { |
547 | 524 | "description": "OK", |
|
564 | 541 | "Project" |
565 | 542 | ], |
566 | 543 | "summary": "Updates a user account by ID", |
567 | | - "parameters": [ |
568 | | - { |
| 544 | + "parameters": [{ |
569 | 545 | "type": "string", |
570 | 546 | "description": "Authentication header as token", |
571 | 547 | "name": "Authentication", |
|
607 | 583 | "Project" |
608 | 584 | ], |
609 | 585 | "summary": "Updates a user account by ID", |
610 | | - "parameters": [ |
611 | | - { |
| 586 | + "parameters": [{ |
612 | 587 | "type": "string", |
613 | 588 | "description": "Authentication header as token", |
614 | 589 | "name": "Authentication", |
|
0 commit comments