diff options
Diffstat (limited to '')
| -rw-r--r-- | docs/swagger.yaml | 216 |
1 files changed, 108 insertions, 108 deletions
diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 7571073..f50fecb 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml | |||
| @@ -1,20 +1,6 @@ | |||
| 1 | basePath: /v1 | 1 | basePath: /v1 |
| 2 | definitions: | 2 | definitions: |
| 3 | models.Category: | 3 | controllers.ChapterMapsResponse: |
| 4 | properties: | ||
| 5 | id: | ||
| 6 | type: integer | ||
| 7 | name: | ||
| 8 | type: string | ||
| 9 | type: object | ||
| 10 | models.Chapter: | ||
| 11 | properties: | ||
| 12 | id: | ||
| 13 | type: integer | ||
| 14 | name: | ||
| 15 | type: string | ||
| 16 | type: object | ||
| 17 | models.ChapterMapsResponse: | ||
| 18 | properties: | 4 | properties: |
| 19 | chapter: | 5 | chapter: |
| 20 | $ref: '#/definitions/models.Chapter' | 6 | $ref: '#/definitions/models.Chapter' |
| @@ -23,7 +9,7 @@ definitions: | |||
| 23 | $ref: '#/definitions/models.MapShort' | 9 | $ref: '#/definitions/models.MapShort' |
| 24 | type: array | 10 | type: array |
| 25 | type: object | 11 | type: object |
| 26 | models.ChaptersResponse: | 12 | controllers.ChaptersResponse: |
| 27 | properties: | 13 | properties: |
| 28 | chapters: | 14 | chapters: |
| 29 | items: | 15 | items: |
| @@ -32,7 +18,7 @@ definitions: | |||
| 32 | game: | 18 | game: |
| 33 | $ref: '#/definitions/models.Game' | 19 | $ref: '#/definitions/models.Game' |
| 34 | type: object | 20 | type: object |
| 35 | models.CreateMapSummaryRequest: | 21 | controllers.CreateMapSummaryRequest: |
| 36 | properties: | 22 | properties: |
| 37 | category_id: | 23 | category_id: |
| 38 | type: integer | 24 | type: integer |
| @@ -53,21 +39,21 @@ definitions: | |||
| 53 | - score_count | 39 | - score_count |
| 54 | - user_name | 40 | - user_name |
| 55 | type: object | 41 | type: object |
| 56 | models.DeleteMapSummaryRequest: | 42 | controllers.DeleteMapSummaryRequest: |
| 57 | properties: | 43 | properties: |
| 58 | route_id: | 44 | route_id: |
| 59 | type: integer | 45 | type: integer |
| 60 | required: | 46 | required: |
| 61 | - route_id | 47 | - route_id |
| 62 | type: object | 48 | type: object |
| 63 | models.EditMapImageRequest: | 49 | controllers.EditMapImageRequest: |
| 64 | properties: | 50 | properties: |
| 65 | image: | 51 | image: |
| 66 | type: string | 52 | type: string |
| 67 | required: | 53 | required: |
| 68 | - image | 54 | - image |
| 69 | type: object | 55 | type: object |
| 70 | models.EditMapSummaryRequest: | 56 | controllers.EditMapSummaryRequest: |
| 71 | properties: | 57 | properties: |
| 72 | description: | 58 | description: |
| 73 | type: string | 59 | type: string |
| @@ -88,18 +74,95 @@ definitions: | |||
| 88 | - score_count | 74 | - score_count |
| 89 | - user_name | 75 | - user_name |
| 90 | type: object | 76 | type: object |
| 91 | models.Game: | 77 | controllers.LoginResponse: |
| 78 | properties: | ||
| 79 | token: | ||
| 80 | type: string | ||
| 81 | type: object | ||
| 82 | controllers.MapSummaryResponse: | ||
| 83 | properties: | ||
| 84 | map: | ||
| 85 | $ref: '#/definitions/models.Map' | ||
| 86 | summary: | ||
| 87 | $ref: '#/definitions/models.MapSummary' | ||
| 88 | type: object | ||
| 89 | controllers.ProfileResponse: | ||
| 90 | properties: | ||
| 91 | avatar_link: | ||
| 92 | type: string | ||
| 93 | country_code: | ||
| 94 | type: string | ||
| 95 | profile: | ||
| 96 | type: boolean | ||
| 97 | scores_mp: | ||
| 98 | items: | ||
| 99 | $ref: '#/definitions/controllers.ScoreResponse' | ||
| 100 | type: array | ||
| 101 | scores_sp: | ||
| 102 | items: | ||
| 103 | $ref: '#/definitions/controllers.ScoreResponse' | ||
| 104 | type: array | ||
| 105 | steam_id: | ||
| 106 | type: string | ||
| 107 | user_name: | ||
| 108 | type: string | ||
| 109 | type: object | ||
| 110 | controllers.RankingsResponse: | ||
| 111 | properties: | ||
| 112 | rankings_mp: | ||
| 113 | items: | ||
| 114 | $ref: '#/definitions/models.UserRanking' | ||
| 115 | type: array | ||
| 116 | rankings_sp: | ||
| 117 | items: | ||
| 118 | $ref: '#/definitions/models.UserRanking' | ||
| 119 | type: array | ||
| 120 | type: object | ||
| 121 | controllers.RecordResponse: | ||
| 122 | properties: | ||
| 123 | score_count: | ||
| 124 | type: integer | ||
| 125 | score_time: | ||
| 126 | type: integer | ||
| 127 | type: object | ||
| 128 | controllers.ScoreResponse: | ||
| 129 | properties: | ||
| 130 | map_id: | ||
| 131 | type: integer | ||
| 132 | records: {} | ||
| 133 | type: object | ||
| 134 | controllers.SearchResponse: | ||
| 135 | properties: | ||
| 136 | maps: | ||
| 137 | items: | ||
| 138 | $ref: '#/definitions/models.MapShort' | ||
| 139 | type: array | ||
| 140 | players: | ||
| 141 | items: | ||
| 142 | $ref: '#/definitions/models.UserShort' | ||
| 143 | type: array | ||
| 144 | type: object | ||
| 145 | models.Category: | ||
| 92 | properties: | 146 | properties: |
| 93 | id: | 147 | id: |
| 94 | type: integer | 148 | type: integer |
| 95 | is_coop: | ||
| 96 | type: boolean | ||
| 97 | name: | 149 | name: |
| 98 | type: string | 150 | type: string |
| 99 | type: object | 151 | type: object |
| 100 | models.LoginResponse: | 152 | models.Chapter: |
| 101 | properties: | 153 | properties: |
| 102 | token: | 154 | id: |
| 155 | type: integer | ||
| 156 | name: | ||
| 157 | type: string | ||
| 158 | type: object | ||
| 159 | models.Game: | ||
| 160 | properties: | ||
| 161 | id: | ||
| 162 | type: integer | ||
| 163 | is_coop: | ||
| 164 | type: boolean | ||
| 165 | name: | ||
| 103 | type: string | 166 | type: string |
| 104 | type: object | 167 | type: object |
| 105 | models.Map: | 168 | models.Map: |
| @@ -159,52 +222,6 @@ definitions: | |||
| 159 | $ref: '#/definitions/models.MapRoute' | 222 | $ref: '#/definitions/models.MapRoute' |
| 160 | type: array | 223 | type: array |
| 161 | type: object | 224 | type: object |
| 162 | models.MapSummaryResponse: | ||
| 163 | properties: | ||
| 164 | map: | ||
| 165 | $ref: '#/definitions/models.Map' | ||
| 166 | summary: | ||
| 167 | $ref: '#/definitions/models.MapSummary' | ||
| 168 | type: object | ||
| 169 | models.ProfileResponse: | ||
| 170 | properties: | ||
| 171 | avatar_link: | ||
| 172 | type: string | ||
| 173 | country_code: | ||
| 174 | type: string | ||
| 175 | profile: | ||
| 176 | type: boolean | ||
| 177 | scores_mp: | ||
| 178 | items: | ||
| 179 | $ref: '#/definitions/models.ScoreResponse' | ||
| 180 | type: array | ||
| 181 | scores_sp: | ||
| 182 | items: | ||
| 183 | $ref: '#/definitions/models.ScoreResponse' | ||
| 184 | type: array | ||
| 185 | steam_id: | ||
| 186 | type: string | ||
| 187 | user_name: | ||
| 188 | type: string | ||
| 189 | type: object | ||
| 190 | models.RankingsResponse: | ||
| 191 | properties: | ||
| 192 | rankings_mp: | ||
| 193 | items: | ||
| 194 | $ref: '#/definitions/models.UserRanking' | ||
| 195 | type: array | ||
| 196 | rankings_sp: | ||
| 197 | items: | ||
| 198 | $ref: '#/definitions/models.UserRanking' | ||
| 199 | type: array | ||
| 200 | type: object | ||
| 201 | models.RecordResponse: | ||
| 202 | properties: | ||
| 203 | score_count: | ||
| 204 | type: integer | ||
| 205 | score_time: | ||
| 206 | type: integer | ||
| 207 | type: object | ||
| 208 | models.Response: | 225 | models.Response: |
| 209 | properties: | 226 | properties: |
| 210 | data: {} | 227 | data: {} |
| @@ -213,23 +230,6 @@ definitions: | |||
| 213 | success: | 230 | success: |
| 214 | type: boolean | 231 | type: boolean |
| 215 | type: object | 232 | type: object |
| 216 | models.ScoreResponse: | ||
| 217 | properties: | ||
| 218 | map_id: | ||
| 219 | type: integer | ||
| 220 | records: {} | ||
| 221 | type: object | ||
| 222 | models.SearchResponse: | ||
| 223 | properties: | ||
| 224 | maps: | ||
| 225 | items: | ||
| 226 | $ref: '#/definitions/models.MapShort' | ||
| 227 | type: array | ||
| 228 | players: | ||
| 229 | items: | ||
| 230 | $ref: '#/definitions/models.UserShort' | ||
| 231 | type: array | ||
| 232 | type: object | ||
| 233 | models.UserRanking: | 233 | models.UserRanking: |
| 234 | properties: | 234 | properties: |
| 235 | total_score: | 235 | total_score: |
| @@ -275,7 +275,7 @@ paths: | |||
| 275 | - $ref: '#/definitions/models.Response' | 275 | - $ref: '#/definitions/models.Response' |
| 276 | - properties: | 276 | - properties: |
| 277 | data: | 277 | data: |
| 278 | $ref: '#/definitions/models.ChapterMapsResponse' | 278 | $ref: '#/definitions/controllers.ChapterMapsResponse' |
| 279 | type: object | 279 | type: object |
| 280 | "400": | 280 | "400": |
| 281 | description: Bad Request | 281 | description: Bad Request |
| @@ -349,7 +349,7 @@ paths: | |||
| 349 | - $ref: '#/definitions/models.Response' | 349 | - $ref: '#/definitions/models.Response' |
| 350 | - properties: | 350 | - properties: |
| 351 | data: | 351 | data: |
| 352 | $ref: '#/definitions/models.ChaptersResponse' | 352 | $ref: '#/definitions/controllers.ChaptersResponse' |
| 353 | type: object | 353 | type: object |
| 354 | "400": | 354 | "400": |
| 355 | description: Bad Request | 355 | description: Bad Request |
| @@ -372,7 +372,7 @@ paths: | |||
| 372 | - $ref: '#/definitions/models.Response' | 372 | - $ref: '#/definitions/models.Response' |
| 373 | - properties: | 373 | - properties: |
| 374 | data: | 374 | data: |
| 375 | $ref: '#/definitions/models.LoginResponse' | 375 | $ref: '#/definitions/controllers.LoginResponse' |
| 376 | type: object | 376 | type: object |
| 377 | "400": | 377 | "400": |
| 378 | description: Bad Request | 378 | description: Bad Request |
| @@ -399,7 +399,7 @@ paths: | |||
| 399 | name: request | 399 | name: request |
| 400 | required: true | 400 | required: true |
| 401 | schema: | 401 | schema: |
| 402 | $ref: '#/definitions/models.EditMapImageRequest' | 402 | $ref: '#/definitions/controllers.EditMapImageRequest' |
| 403 | produces: | 403 | produces: |
| 404 | - application/json | 404 | - application/json |
| 405 | responses: | 405 | responses: |
| @@ -410,7 +410,7 @@ paths: | |||
| 410 | - $ref: '#/definitions/models.Response' | 410 | - $ref: '#/definitions/models.Response' |
| 411 | - properties: | 411 | - properties: |
| 412 | data: | 412 | data: |
| 413 | $ref: '#/definitions/models.EditMapImageRequest' | 413 | $ref: '#/definitions/controllers.EditMapImageRequest' |
| 414 | type: object | 414 | type: object |
| 415 | "400": | 415 | "400": |
| 416 | description: Bad Request | 416 | description: Bad Request |
| @@ -493,7 +493,7 @@ paths: | |||
| 493 | - $ref: '#/definitions/models.Response' | 493 | - $ref: '#/definitions/models.Response' |
| 494 | - properties: | 494 | - properties: |
| 495 | data: | 495 | data: |
| 496 | $ref: '#/definitions/models.RecordResponse' | 496 | $ref: '#/definitions/controllers.RecordResponse' |
| 497 | type: object | 497 | type: object |
| 498 | "400": | 498 | "400": |
| 499 | description: Bad Request | 499 | description: Bad Request |
| @@ -524,7 +524,7 @@ paths: | |||
| 524 | name: request | 524 | name: request |
| 525 | required: true | 525 | required: true |
| 526 | schema: | 526 | schema: |
| 527 | $ref: '#/definitions/models.DeleteMapSummaryRequest' | 527 | $ref: '#/definitions/controllers.DeleteMapSummaryRequest' |
| 528 | produces: | 528 | produces: |
| 529 | - application/json | 529 | - application/json |
| 530 | responses: | 530 | responses: |
| @@ -535,7 +535,7 @@ paths: | |||
| 535 | - $ref: '#/definitions/models.Response' | 535 | - $ref: '#/definitions/models.Response' |
| 536 | - properties: | 536 | - properties: |
| 537 | data: | 537 | data: |
| 538 | $ref: '#/definitions/models.DeleteMapSummaryRequest' | 538 | $ref: '#/definitions/controllers.DeleteMapSummaryRequest' |
| 539 | type: object | 539 | type: object |
| 540 | "400": | 540 | "400": |
| 541 | description: Bad Request | 541 | description: Bad Request |
| @@ -561,7 +561,7 @@ paths: | |||
| 561 | - $ref: '#/definitions/models.Response' | 561 | - $ref: '#/definitions/models.Response' |
| 562 | - properties: | 562 | - properties: |
| 563 | data: | 563 | data: |
| 564 | $ref: '#/definitions/models.MapSummaryResponse' | 564 | $ref: '#/definitions/controllers.MapSummaryResponse' |
| 565 | type: object | 565 | type: object |
| 566 | "400": | 566 | "400": |
| 567 | description: Bad Request | 567 | description: Bad Request |
| @@ -587,7 +587,7 @@ paths: | |||
| 587 | name: request | 587 | name: request |
| 588 | required: true | 588 | required: true |
| 589 | schema: | 589 | schema: |
| 590 | $ref: '#/definitions/models.CreateMapSummaryRequest' | 590 | $ref: '#/definitions/controllers.CreateMapSummaryRequest' |
| 591 | produces: | 591 | produces: |
| 592 | - application/json | 592 | - application/json |
| 593 | responses: | 593 | responses: |
| @@ -598,7 +598,7 @@ paths: | |||
| 598 | - $ref: '#/definitions/models.Response' | 598 | - $ref: '#/definitions/models.Response' |
| 599 | - properties: | 599 | - properties: |
| 600 | data: | 600 | data: |
| 601 | $ref: '#/definitions/models.CreateMapSummaryRequest' | 601 | $ref: '#/definitions/controllers.CreateMapSummaryRequest' |
| 602 | type: object | 602 | type: object |
| 603 | "400": | 603 | "400": |
| 604 | description: Bad Request | 604 | description: Bad Request |
| @@ -624,7 +624,7 @@ paths: | |||
| 624 | name: request | 624 | name: request |
| 625 | required: true | 625 | required: true |
| 626 | schema: | 626 | schema: |
| 627 | $ref: '#/definitions/models.EditMapSummaryRequest' | 627 | $ref: '#/definitions/controllers.EditMapSummaryRequest' |
| 628 | produces: | 628 | produces: |
| 629 | - application/json | 629 | - application/json |
| 630 | responses: | 630 | responses: |
| @@ -635,7 +635,7 @@ paths: | |||
| 635 | - $ref: '#/definitions/models.Response' | 635 | - $ref: '#/definitions/models.Response' |
| 636 | - properties: | 636 | - properties: |
| 637 | data: | 637 | data: |
| 638 | $ref: '#/definitions/models.EditMapSummaryRequest' | 638 | $ref: '#/definitions/controllers.EditMapSummaryRequest' |
| 639 | type: object | 639 | type: object |
| 640 | "400": | 640 | "400": |
| 641 | description: Bad Request | 641 | description: Bad Request |
| @@ -664,7 +664,7 @@ paths: | |||
| 664 | - $ref: '#/definitions/models.Response' | 664 | - $ref: '#/definitions/models.Response' |
| 665 | - properties: | 665 | - properties: |
| 666 | data: | 666 | data: |
| 667 | $ref: '#/definitions/models.ProfileResponse' | 667 | $ref: '#/definitions/controllers.ProfileResponse' |
| 668 | type: object | 668 | type: object |
| 669 | "400": | 669 | "400": |
| 670 | description: Bad Request | 670 | description: Bad Request |
| @@ -696,7 +696,7 @@ paths: | |||
| 696 | - $ref: '#/definitions/models.Response' | 696 | - $ref: '#/definitions/models.Response' |
| 697 | - properties: | 697 | - properties: |
| 698 | data: | 698 | data: |
| 699 | $ref: '#/definitions/models.ProfileResponse' | 699 | $ref: '#/definitions/controllers.ProfileResponse' |
| 700 | type: object | 700 | type: object |
| 701 | "400": | 701 | "400": |
| 702 | description: Bad Request | 702 | description: Bad Request |
| @@ -753,7 +753,7 @@ paths: | |||
| 753 | - $ref: '#/definitions/models.Response' | 753 | - $ref: '#/definitions/models.Response' |
| 754 | - properties: | 754 | - properties: |
| 755 | data: | 755 | data: |
| 756 | $ref: '#/definitions/models.RankingsResponse' | 756 | $ref: '#/definitions/controllers.RankingsResponse' |
| 757 | type: object | 757 | type: object |
| 758 | "400": | 758 | "400": |
| 759 | description: Bad Request | 759 | description: Bad Request |
| @@ -779,7 +779,7 @@ paths: | |||
| 779 | - $ref: '#/definitions/models.Response' | 779 | - $ref: '#/definitions/models.Response' |
| 780 | - properties: | 780 | - properties: |
| 781 | data: | 781 | data: |
| 782 | $ref: '#/definitions/models.SearchResponse' | 782 | $ref: '#/definitions/controllers.SearchResponse' |
| 783 | type: object | 783 | type: object |
| 784 | "400": | 784 | "400": |
| 785 | description: Bad Request | 785 | description: Bad Request |
| @@ -800,7 +800,7 @@ paths: | |||
| 800 | - $ref: '#/definitions/models.Response' | 800 | - $ref: '#/definitions/models.Response' |
| 801 | - properties: | 801 | - properties: |
| 802 | data: | 802 | data: |
| 803 | $ref: '#/definitions/models.LoginResponse' | 803 | $ref: '#/definitions/controllers.LoginResponse' |
| 804 | type: object | 804 | type: object |
| 805 | "404": | 805 | "404": |
| 806 | description: Not Found | 806 | description: Not Found |
| @@ -820,7 +820,7 @@ paths: | |||
| 820 | - $ref: '#/definitions/models.Response' | 820 | - $ref: '#/definitions/models.Response' |
| 821 | - properties: | 821 | - properties: |
| 822 | data: | 822 | data: |
| 823 | $ref: '#/definitions/models.LoginResponse' | 823 | $ref: '#/definitions/controllers.LoginResponse' |
| 824 | type: object | 824 | type: object |
| 825 | "404": | 825 | "404": |
| 826 | description: Not Found | 826 | description: Not Found |
| @@ -849,7 +849,7 @@ paths: | |||
| 849 | - $ref: '#/definitions/models.Response' | 849 | - $ref: '#/definitions/models.Response' |
| 850 | - properties: | 850 | - properties: |
| 851 | data: | 851 | data: |
| 852 | $ref: '#/definitions/models.ProfileResponse' | 852 | $ref: '#/definitions/controllers.ProfileResponse' |
| 853 | type: object | 853 | type: object |
| 854 | "400": | 854 | "400": |
| 855 | description: Bad Request | 855 | description: Bad Request |