diff options
Diffstat (limited to 'docs/swagger.json')
| -rw-r--r-- | docs/swagger.json | 96 |
1 files changed, 87 insertions, 9 deletions
diff --git a/docs/swagger.json b/docs/swagger.json index 212ebee..7e251ca 100644 --- a/docs/swagger.json +++ b/docs/swagger.json | |||
| @@ -485,6 +485,59 @@ | |||
| 485 | } | 485 | } |
| 486 | } | 486 | } |
| 487 | } | 487 | } |
| 488 | }, | ||
| 489 | "post": { | ||
| 490 | "produces": [ | ||
| 491 | "application/json" | ||
| 492 | ], | ||
| 493 | "tags": [ | ||
| 494 | "maps" | ||
| 495 | ], | ||
| 496 | "summary": "Delete map summary with specified map id.", | ||
| 497 | "parameters": [ | ||
| 498 | { | ||
| 499 | "type": "integer", | ||
| 500 | "description": "Map ID", | ||
| 501 | "name": "id", | ||
| 502 | "in": "path", | ||
| 503 | "required": true | ||
| 504 | }, | ||
| 505 | { | ||
| 506 | "description": "Body", | ||
| 507 | "name": "request", | ||
| 508 | "in": "body", | ||
| 509 | "required": true, | ||
| 510 | "schema": { | ||
| 511 | "$ref": "#/definitions/models.DeleteMapSummaryRequest" | ||
| 512 | } | ||
| 513 | } | ||
| 514 | ], | ||
| 515 | "responses": { | ||
| 516 | "200": { | ||
| 517 | "description": "OK", | ||
| 518 | "schema": { | ||
| 519 | "allOf": [ | ||
| 520 | { | ||
| 521 | "$ref": "#/definitions/models.Response" | ||
| 522 | }, | ||
| 523 | { | ||
| 524 | "type": "object", | ||
| 525 | "properties": { | ||
| 526 | "data": { | ||
| 527 | "$ref": "#/definitions/models.DeleteMapSummaryRequest" | ||
| 528 | } | ||
| 529 | } | ||
| 530 | } | ||
| 531 | ] | ||
| 532 | } | ||
| 533 | }, | ||
| 534 | "400": { | ||
| 535 | "description": "Bad Request", | ||
| 536 | "schema": { | ||
| 537 | "$ref": "#/definitions/models.Response" | ||
| 538 | } | ||
| 539 | } | ||
| 540 | } | ||
| 488 | } | 541 | } |
| 489 | }, | 542 | }, |
| 490 | "/profile": { | 543 | "/profile": { |
| @@ -867,24 +920,49 @@ | |||
| 867 | } | 920 | } |
| 868 | } | 921 | } |
| 869 | }, | 922 | }, |
| 870 | "models.EditMapSummaryRequest": { | 923 | "models.CreateMapSummaryRequest": { |
| 871 | "type": "object", | 924 | "type": "object", |
| 872 | "required": [ | 925 | "required": [ |
| 873 | "image" | 926 | "category_id", |
| 927 | "description", | ||
| 928 | "record_date", | ||
| 929 | "score_count", | ||
| 930 | "showcase", | ||
| 931 | "user_name" | ||
| 874 | ], | 932 | ], |
| 875 | "properties": { | 933 | "properties": { |
| 876 | "image": { | 934 | "category_id": { |
| 935 | "type": "integer" | ||
| 936 | }, | ||
| 937 | "description": { | ||
| 877 | "type": "string" | 938 | "type": "string" |
| 878 | }, | 939 | }, |
| 879 | "routes": { | 940 | "record_date": { |
| 880 | "type": "array", | 941 | "type": "string" |
| 881 | "items": { | 942 | }, |
| 882 | "$ref": "#/definitions/models.EditMapSummaryRequestDetails" | 943 | "score_count": { |
| 883 | } | 944 | "type": "integer" |
| 945 | }, | ||
| 946 | "showcase": { | ||
| 947 | "type": "string" | ||
| 948 | }, | ||
| 949 | "user_name": { | ||
| 950 | "type": "string" | ||
| 884 | } | 951 | } |
| 885 | } | 952 | } |
| 886 | }, | 953 | }, |
| 887 | "models.EditMapSummaryRequestDetails": { | 954 | "models.DeleteMapSummaryRequest": { |
| 955 | "type": "object", | ||
| 956 | "required": [ | ||
| 957 | "route_id" | ||
| 958 | ], | ||
| 959 | "properties": { | ||
| 960 | "route_id": { | ||
| 961 | "type": "integer" | ||
| 962 | } | ||
| 963 | } | ||
| 964 | }, | ||
| 965 | "models.EditMapSummaryRequest": { | ||
| 888 | "type": "object", | 966 | "type": "object", |
| 889 | "required": [ | 967 | "required": [ |
| 890 | "description", | 968 | "description", |