diff options
Diffstat (limited to 'docs/swagger.yaml')
| -rw-r--r-- | docs/swagger.yaml | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/docs/swagger.yaml b/docs/swagger.yaml index f3a848f..ac29f93 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml | |||
| @@ -130,6 +130,9 @@ definitions: | |||
| 130 | type: array | 130 | type: array |
| 131 | content: | 131 | content: |
| 132 | type: string | 132 | type: string |
| 133 | created_at: | ||
| 134 | description: Upvotes int `json:"upvotes"` | ||
| 135 | type: string | ||
| 133 | creator: | 136 | creator: |
| 134 | $ref: '#/definitions/models.UserShortWithAvatar' | 137 | $ref: '#/definitions/models.UserShortWithAvatar' |
| 135 | id: | 138 | id: |
| @@ -137,7 +140,6 @@ definitions: | |||
| 137 | title: | 140 | title: |
| 138 | type: string | 141 | type: string |
| 139 | updated_at: | 142 | updated_at: |
| 140 | description: Upvotes int `json:"upvotes"` | ||
| 141 | type: string | 143 | type: string |
| 142 | type: object | 144 | type: object |
| 143 | handlers.MapDiscussionComment: | 145 | handlers.MapDiscussionComment: |
| @@ -674,7 +676,7 @@ paths: | |||
| 674 | $ref: '#/definitions/handlers.MapDiscussionsResponse' | 676 | $ref: '#/definitions/handlers.MapDiscussionsResponse' |
| 675 | type: object | 677 | type: object |
| 676 | tags: | 678 | tags: |
| 677 | - maps | 679 | - maps / discussions |
| 678 | post: | 680 | post: |
| 679 | description: Create map discussion with specified map id. | 681 | description: Create map discussion with specified map id. |
| 680 | parameters: | 682 | parameters: |
| @@ -707,10 +709,10 @@ paths: | |||
| 707 | $ref: '#/definitions/handlers.CreateMapDiscussionRequest' | 709 | $ref: '#/definitions/handlers.CreateMapDiscussionRequest' |
| 708 | type: object | 710 | type: object |
| 709 | tags: | 711 | tags: |
| 710 | - maps | 712 | - maps / discussions |
| 711 | /maps/{mapid}/discussions/{discussionid}: | 713 | /maps/{mapid}/discussions/{discussionid}: |
| 712 | delete: | 714 | delete: |
| 713 | description: Delete map summary with specified map id. | 715 | description: Delete map discussion with specified map id. |
| 714 | parameters: | 716 | parameters: |
| 715 | - description: JWT Token | 717 | - description: JWT Token |
| 716 | in: header | 718 | in: header |
| @@ -735,7 +737,7 @@ paths: | |||
| 735 | schema: | 737 | schema: |
| 736 | $ref: '#/definitions/models.Response' | 738 | $ref: '#/definitions/models.Response' |
| 737 | tags: | 739 | tags: |
| 738 | - maps | 740 | - maps / discussions |
| 739 | get: | 741 | get: |
| 740 | description: Get map discussion with specified map and discussion id. | 742 | description: Get map discussion with specified map and discussion id. |
| 741 | parameters: | 743 | parameters: |
| @@ -762,7 +764,7 @@ paths: | |||
| 762 | $ref: '#/definitions/handlers.MapDiscussionResponse' | 764 | $ref: '#/definitions/handlers.MapDiscussionResponse' |
| 763 | type: object | 765 | type: object |
| 764 | tags: | 766 | tags: |
| 765 | - maps | 767 | - maps / discussions |
| 766 | post: | 768 | post: |
| 767 | description: Create map discussion comment with specified map id. | 769 | description: Create map discussion comment with specified map id. |
| 768 | parameters: | 770 | parameters: |
| @@ -800,7 +802,7 @@ paths: | |||
| 800 | $ref: '#/definitions/handlers.CreateMapDiscussionCommentRequest' | 802 | $ref: '#/definitions/handlers.CreateMapDiscussionCommentRequest' |
| 801 | type: object | 803 | type: object |
| 802 | tags: | 804 | tags: |
| 803 | - maps | 805 | - maps / discussions |
| 804 | put: | 806 | put: |
| 805 | description: Edit map discussion with specified map id. | 807 | description: Edit map discussion with specified map id. |
| 806 | parameters: | 808 | parameters: |
| @@ -838,7 +840,7 @@ paths: | |||
| 838 | $ref: '#/definitions/handlers.EditMapDiscussionRequest' | 840 | $ref: '#/definitions/handlers.EditMapDiscussionRequest' |
| 839 | type: object | 841 | type: object |
| 840 | tags: | 842 | tags: |
| 841 | - maps | 843 | - maps / discussions |
| 842 | /maps/{mapid}/image: | 844 | /maps/{mapid}/image: |
| 843 | put: | 845 | put: |
| 844 | description: Edit map image with specified map id. | 846 | description: Edit map image with specified map id. |
| @@ -872,7 +874,7 @@ paths: | |||
| 872 | $ref: '#/definitions/handlers.EditMapImageRequest' | 874 | $ref: '#/definitions/handlers.EditMapImageRequest' |
| 873 | type: object | 875 | type: object |
| 874 | tags: | 876 | tags: |
| 875 | - maps | 877 | - maps / summary |
| 876 | /maps/{mapid}/leaderboards: | 878 | /maps/{mapid}/leaderboards: |
| 877 | get: | 879 | get: |
| 878 | description: Get map leaderboards with specified id. | 880 | description: Get map leaderboards with specified id. |
| @@ -903,7 +905,7 @@ paths: | |||
| 903 | $ref: '#/definitions/handlers.MapLeaderboardsResponse' | 905 | $ref: '#/definitions/handlers.MapLeaderboardsResponse' |
| 904 | type: object | 906 | type: object |
| 905 | tags: | 907 | tags: |
| 906 | - maps | 908 | - maps / leaderboards |
| 907 | /maps/{mapid}/record: | 909 | /maps/{mapid}/record: |
| 908 | post: | 910 | post: |
| 909 | consumes: | 911 | consumes: |
| @@ -950,7 +952,7 @@ paths: | |||
| 950 | $ref: '#/definitions/handlers.RecordResponse' | 952 | $ref: '#/definitions/handlers.RecordResponse' |
| 951 | type: object | 953 | type: object |
| 952 | tags: | 954 | tags: |
| 953 | - maps | 955 | - maps / leaderboards |
| 954 | /maps/{mapid}/record/{recordid}: | 956 | /maps/{mapid}/record/{recordid}: |
| 955 | delete: | 957 | delete: |
| 956 | description: Delete record with specified map and record id. | 958 | description: Delete record with specified map and record id. |
| @@ -978,7 +980,7 @@ paths: | |||
| 978 | schema: | 980 | schema: |
| 979 | $ref: '#/definitions/models.Response' | 981 | $ref: '#/definitions/models.Response' |
| 980 | tags: | 982 | tags: |
| 981 | - maps | 983 | - maps / leaderboards |
| 982 | /maps/{mapid}/summary: | 984 | /maps/{mapid}/summary: |
| 983 | delete: | 985 | delete: |
| 984 | description: Delete map summary with specified map id. | 986 | description: Delete map summary with specified map id. |
| @@ -1012,7 +1014,7 @@ paths: | |||
| 1012 | $ref: '#/definitions/handlers.DeleteMapSummaryRequest' | 1014 | $ref: '#/definitions/handlers.DeleteMapSummaryRequest' |
| 1013 | type: object | 1015 | type: object |
| 1014 | tags: | 1016 | tags: |
| 1015 | - maps | 1017 | - maps / summary |
| 1016 | get: | 1018 | get: |
| 1017 | description: Get map summary with specified id. | 1019 | description: Get map summary with specified id. |
| 1018 | parameters: | 1020 | parameters: |
| @@ -1034,7 +1036,7 @@ paths: | |||
| 1034 | $ref: '#/definitions/handlers.MapSummaryResponse' | 1036 | $ref: '#/definitions/handlers.MapSummaryResponse' |
| 1035 | type: object | 1037 | type: object |
| 1036 | tags: | 1038 | tags: |
| 1037 | - maps | 1039 | - maps / summary |
| 1038 | post: | 1040 | post: |
| 1039 | description: Create map summary with specified map id. | 1041 | description: Create map summary with specified map id. |
| 1040 | parameters: | 1042 | parameters: |
| @@ -1067,7 +1069,7 @@ paths: | |||
| 1067 | $ref: '#/definitions/handlers.CreateMapSummaryRequest' | 1069 | $ref: '#/definitions/handlers.CreateMapSummaryRequest' |
| 1068 | type: object | 1070 | type: object |
| 1069 | tags: | 1071 | tags: |
| 1070 | - maps | 1072 | - maps / summary |
| 1071 | put: | 1073 | put: |
| 1072 | description: Edit map summary with specified map id. | 1074 | description: Edit map summary with specified map id. |
| 1073 | parameters: | 1075 | parameters: |
| @@ -1100,7 +1102,7 @@ paths: | |||
| 1100 | $ref: '#/definitions/handlers.EditMapSummaryRequest' | 1102 | $ref: '#/definitions/handlers.EditMapSummaryRequest' |
| 1101 | type: object | 1103 | type: object |
| 1102 | tags: | 1104 | tags: |
| 1103 | - maps | 1105 | - maps / summary |
| 1104 | /profile: | 1106 | /profile: |
| 1105 | get: | 1107 | get: |
| 1106 | consumes: | 1108 | consumes: |