diff options
Diffstat (limited to '')
| -rw-r--r-- | docs/docs.go | 96 |
1 files changed, 87 insertions, 9 deletions
diff --git a/docs/docs.go b/docs/docs.go index 8318e14..40632e3 100644 --- a/docs/docs.go +++ b/docs/docs.go | |||
| @@ -492,6 +492,59 @@ const docTemplate = `{ | |||
| 492 | } | 492 | } |
| 493 | } | 493 | } |
| 494 | } | 494 | } |
| 495 | }, | ||
| 496 | "post": { | ||
| 497 | "produces": [ | ||
| 498 | "application/json" | ||
| 499 | ], | ||
| 500 | "tags": [ | ||
| 501 | "maps" | ||
| 502 | ], | ||
| 503 | "summary": "Delete map summary with specified map id.", | ||
| 504 | "parameters": [ | ||
| 505 | { | ||
| 506 | "type": "integer", | ||
| 507 | "description": "Map ID", | ||
| 508 | "name": "id", | ||
| 509 | "in": "path", | ||
| 510 | "required": true | ||
| 511 | }, | ||
| 512 | { | ||
| 513 | "description": "Body", | ||
| 514 | "name": "request", | ||
| 515 | "in": "body", | ||
| 516 | "required": true, | ||
| 517 | "schema": { | ||
| 518 | "$ref": "#/definitions/models.DeleteMapSummaryRequest" | ||
| 519 | } | ||
| 520 | } | ||
| 521 | ], | ||
| 522 | "responses": { | ||
| 523 | "200": { | ||
| 524 | "description": "OK", | ||
| 525 | "schema": { | ||
| 526 | "allOf": [ | ||
| 527 | { | ||
| 528 | "$ref": "#/definitions/models.Response" | ||
| 529 | }, | ||
| 530 | { | ||
| 531 | "type": "object", | ||
| 532 | "properties": { | ||
| 533 | "data": { | ||
| 534 | "$ref": "#/definitions/models.DeleteMapSummaryRequest" | ||
| 535 | } | ||
| 536 | } | ||
| 537 | } | ||
| 538 | ] | ||
| 539 | } | ||
| 540 | }, | ||
| 541 | "400": { | ||
| 542 | "description": "Bad Request", | ||
| 543 | "schema": { | ||
| 544 | "$ref": "#/definitions/models.Response" | ||
| 545 | } | ||
| 546 | } | ||
| 547 | } | ||
| 495 | } | 548 | } |
| 496 | }, | 549 | }, |
| 497 | "/profile": { | 550 | "/profile": { |
| @@ -874,24 +927,49 @@ const docTemplate = `{ | |||
| 874 | } | 927 | } |
| 875 | } | 928 | } |
| 876 | }, | 929 | }, |
| 877 | "models.EditMapSummaryRequest": { | 930 | "models.CreateMapSummaryRequest": { |
| 878 | "type": "object", | 931 | "type": "object", |
| 879 | "required": [ | 932 | "required": [ |
| 880 | "image" | 933 | "category_id", |
| 934 | "description", | ||
| 935 | "record_date", | ||
| 936 | "score_count", | ||
| 937 | "showcase", | ||
| 938 | "user_name" | ||
| 881 | ], | 939 | ], |
| 882 | "properties": { | 940 | "properties": { |
| 883 | "image": { | 941 | "category_id": { |
| 942 | "type": "integer" | ||
| 943 | }, | ||
| 944 | "description": { | ||
| 884 | "type": "string" | 945 | "type": "string" |
| 885 | }, | 946 | }, |
| 886 | "routes": { | 947 | "record_date": { |
| 887 | "type": "array", | 948 | "type": "string" |
| 888 | "items": { | 949 | }, |
| 889 | "$ref": "#/definitions/models.EditMapSummaryRequestDetails" | 950 | "score_count": { |
| 890 | } | 951 | "type": "integer" |
| 952 | }, | ||
| 953 | "showcase": { | ||
| 954 | "type": "string" | ||
| 955 | }, | ||
| 956 | "user_name": { | ||
| 957 | "type": "string" | ||
| 891 | } | 958 | } |
| 892 | } | 959 | } |
| 893 | }, | 960 | }, |
| 894 | "models.EditMapSummaryRequestDetails": { | 961 | "models.DeleteMapSummaryRequest": { |
| 962 | "type": "object", | ||
| 963 | "required": [ | ||
| 964 | "route_id" | ||
| 965 | ], | ||
| 966 | "properties": { | ||
| 967 | "route_id": { | ||
| 968 | "type": "integer" | ||
| 969 | } | ||
| 970 | } | ||
| 971 | }, | ||
| 972 | "models.EditMapSummaryRequest": { | ||
| 895 | "type": "object", | 973 | "type": "object", |
| 896 | "required": [ | 974 | "required": [ |
| 897 | "description", | 975 | "description", |