diff options
Diffstat (limited to 'docs/swagger.json')
| -rw-r--r-- | docs/swagger.json | 112 |
1 files changed, 84 insertions, 28 deletions
diff --git a/docs/swagger.json b/docs/swagger.json index 2279ff6..62079b1 100644 --- a/docs/swagger.json +++ b/docs/swagger.json | |||
| @@ -338,26 +338,16 @@ | |||
| 338 | "required": true | 338 | "required": true |
| 339 | }, | 339 | }, |
| 340 | { | 340 | { |
| 341 | "type": "array", | 341 | "type": "file", |
| 342 | "items": { | 342 | "description": "Host Demo", |
| 343 | "type": "file" | 343 | "name": "host_demo", |
| 344 | }, | ||
| 345 | "description": "Demos", | ||
| 346 | "name": "demos", | ||
| 347 | "in": "formData", | 344 | "in": "formData", |
| 348 | "required": true | 345 | "required": true |
| 349 | }, | 346 | }, |
| 350 | { | 347 | { |
| 351 | "type": "integer", | 348 | "type": "file", |
| 352 | "description": "Score Count", | 349 | "description": "Partner Demo", |
| 353 | "name": "score_count", | 350 | "name": "partner_demo", |
| 354 | "in": "formData", | ||
| 355 | "required": true | ||
| 356 | }, | ||
| 357 | { | ||
| 358 | "type": "integer", | ||
| 359 | "description": "Score Time", | ||
| 360 | "name": "score_time", | ||
| 361 | "in": "formData", | 351 | "in": "formData", |
| 362 | "required": true | 352 | "required": true |
| 363 | }, | 353 | }, |
| @@ -454,6 +444,50 @@ | |||
| 454 | } | 444 | } |
| 455 | } | 445 | } |
| 456 | } | 446 | } |
| 447 | }, | ||
| 448 | "put": { | ||
| 449 | "produces": [ | ||
| 450 | "application/json" | ||
| 451 | ], | ||
| 452 | "tags": [ | ||
| 453 | "maps" | ||
| 454 | ], | ||
| 455 | "summary": "Edit map summary with specified map id.", | ||
| 456 | "parameters": [ | ||
| 457 | { | ||
| 458 | "type": "integer", | ||
| 459 | "description": "Map ID", | ||
| 460 | "name": "id", | ||
| 461 | "in": "path", | ||
| 462 | "required": true | ||
| 463 | } | ||
| 464 | ], | ||
| 465 | "responses": { | ||
| 466 | "200": { | ||
| 467 | "description": "OK", | ||
| 468 | "schema": { | ||
| 469 | "allOf": [ | ||
| 470 | { | ||
| 471 | "$ref": "#/definitions/models.Response" | ||
| 472 | }, | ||
| 473 | { | ||
| 474 | "type": "object", | ||
| 475 | "properties": { | ||
| 476 | "data": { | ||
| 477 | "$ref": "#/definitions/models.EditMapSummaryRequest" | ||
| 478 | } | ||
| 479 | } | ||
| 480 | } | ||
| 481 | ] | ||
| 482 | } | ||
| 483 | }, | ||
| 484 | "400": { | ||
| 485 | "description": "Bad Request", | ||
| 486 | "schema": { | ||
| 487 | "$ref": "#/definitions/models.Response" | ||
| 488 | } | ||
| 489 | } | ||
| 490 | } | ||
| 457 | } | 491 | } |
| 458 | }, | 492 | }, |
| 459 | "/profile": { | 493 | "/profile": { |
| @@ -836,6 +870,37 @@ | |||
| 836 | } | 870 | } |
| 837 | } | 871 | } |
| 838 | }, | 872 | }, |
| 873 | "models.EditMapSummaryRequest": { | ||
| 874 | "type": "object", | ||
| 875 | "required": [ | ||
| 876 | "description", | ||
| 877 | "record_date", | ||
| 878 | "route_id", | ||
| 879 | "score_count", | ||
| 880 | "showcase", | ||
| 881 | "user_name" | ||
| 882 | ], | ||
| 883 | "properties": { | ||
| 884 | "description": { | ||
| 885 | "type": "string" | ||
| 886 | }, | ||
| 887 | "record_date": { | ||
| 888 | "type": "string" | ||
| 889 | }, | ||
| 890 | "route_id": { | ||
| 891 | "type": "integer" | ||
| 892 | }, | ||
| 893 | "score_count": { | ||
| 894 | "type": "integer" | ||
| 895 | }, | ||
| 896 | "showcase": { | ||
| 897 | "type": "string" | ||
| 898 | }, | ||
| 899 | "user_name": { | ||
| 900 | "type": "string" | ||
| 901 | } | ||
| 902 | } | ||
| 903 | }, | ||
| 839 | "models.Game": { | 904 | "models.Game": { |
| 840 | "type": "object", | 905 | "type": "object", |
| 841 | "properties": { | 906 | "properties": { |
| @@ -867,6 +932,9 @@ | |||
| 867 | "id": { | 932 | "id": { |
| 868 | "type": "integer" | 933 | "type": "integer" |
| 869 | }, | 934 | }, |
| 935 | "image": { | ||
| 936 | "type": "string" | ||
| 937 | }, | ||
| 870 | "map_name": { | 938 | "map_name": { |
| 871 | "type": "string" | 939 | "type": "string" |
| 872 | } | 940 | } |
| @@ -996,24 +1064,12 @@ | |||
| 996 | }, | 1064 | }, |
| 997 | "models.RecordRequest": { | 1065 | "models.RecordRequest": { |
| 998 | "type": "object", | 1066 | "type": "object", |
| 999 | "required": [ | ||
| 1000 | "is_partner_orange", | ||
| 1001 | "partner_id", | ||
| 1002 | "score_count", | ||
| 1003 | "score_time" | ||
| 1004 | ], | ||
| 1005 | "properties": { | 1067 | "properties": { |
| 1006 | "is_partner_orange": { | 1068 | "is_partner_orange": { |
| 1007 | "type": "boolean" | 1069 | "type": "boolean" |
| 1008 | }, | 1070 | }, |
| 1009 | "partner_id": { | 1071 | "partner_id": { |
| 1010 | "type": "string" | 1072 | "type": "string" |
| 1011 | }, | ||
| 1012 | "score_count": { | ||
| 1013 | "type": "integer" | ||
| 1014 | }, | ||
| 1015 | "score_time": { | ||
| 1016 | "type": "integer" | ||
| 1017 | } | 1073 | } |
| 1018 | } | 1074 | } |
| 1019 | }, | 1075 | }, |