diff options
Diffstat (limited to 'docs/swagger.yaml')
| -rw-r--r-- | docs/swagger.yaml | 80 |
1 files changed, 78 insertions, 2 deletions
diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 4b59ee9..4d5661e 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml | |||
| @@ -165,11 +165,15 @@ definitions: | |||
| 165 | type: object | 165 | type: object |
| 166 | handlers.RankingsResponse: | 166 | handlers.RankingsResponse: |
| 167 | properties: | 167 | properties: |
| 168 | rankings_mp: | 168 | rankings_multiplayer: |
| 169 | items: | 169 | items: |
| 170 | $ref: '#/definitions/models.UserRanking' | 170 | $ref: '#/definitions/models.UserRanking' |
| 171 | type: array | 171 | type: array |
| 172 | rankings_sp: | 172 | rankings_overall: |
| 173 | items: | ||
| 174 | $ref: '#/definitions/models.UserRanking' | ||
| 175 | type: array | ||
| 176 | rankings_singleplayer: | ||
| 173 | items: | 177 | items: |
| 174 | $ref: '#/definitions/models.UserRanking' | 178 | $ref: '#/definitions/models.UserRanking' |
| 175 | type: array | 179 | type: array |
| @@ -181,6 +185,30 @@ definitions: | |||
| 181 | score_time: | 185 | score_time: |
| 182 | type: integer | 186 | type: integer |
| 183 | type: object | 187 | type: object |
| 188 | handlers.ScoreLogsResponse: | ||
| 189 | properties: | ||
| 190 | scores: | ||
| 191 | items: | ||
| 192 | $ref: '#/definitions/handlers.ScoreLogsResponseDetails' | ||
| 193 | type: array | ||
| 194 | type: object | ||
| 195 | handlers.ScoreLogsResponseDetails: | ||
| 196 | properties: | ||
| 197 | date: | ||
| 198 | type: string | ||
| 199 | demo_id: | ||
| 200 | type: string | ||
| 201 | game: | ||
| 202 | $ref: '#/definitions/models.Game' | ||
| 203 | map: | ||
| 204 | $ref: '#/definitions/models.MapShort' | ||
| 205 | score_count: | ||
| 206 | type: integer | ||
| 207 | score_time: | ||
| 208 | type: integer | ||
| 209 | user: | ||
| 210 | $ref: '#/definitions/models.UserShort' | ||
| 211 | type: object | ||
| 184 | handlers.SearchResponse: | 212 | handlers.SearchResponse: |
| 185 | properties: | 213 | properties: |
| 186 | maps: | 214 | maps: |
| @@ -444,6 +472,54 @@ paths: | |||
| 444 | $ref: '#/definitions/models.Response' | 472 | $ref: '#/definitions/models.Response' |
| 445 | tags: | 473 | tags: |
| 446 | - login | 474 | - login |
| 475 | /logs/mod: | ||
| 476 | get: | ||
| 477 | description: Get mod logs. | ||
| 478 | parameters: | ||
| 479 | - description: JWT Token | ||
| 480 | in: header | ||
| 481 | name: Authorization | ||
| 482 | required: true | ||
| 483 | type: string | ||
| 484 | produces: | ||
| 485 | - application/json | ||
| 486 | responses: | ||
| 487 | "200": | ||
| 488 | description: OK | ||
| 489 | schema: | ||
| 490 | allOf: | ||
| 491 | - $ref: '#/definitions/models.Response' | ||
| 492 | - properties: | ||
| 493 | data: | ||
| 494 | $ref: '#/definitions/handlers.ScoreLogsResponse' | ||
| 495 | type: object | ||
| 496 | "400": | ||
| 497 | description: Bad Request | ||
| 498 | schema: | ||
| 499 | $ref: '#/definitions/models.Response' | ||
| 500 | tags: | ||
| 501 | - rankings | ||
| 502 | /logs/score: | ||
| 503 | get: | ||
| 504 | description: Get score logs of every player. | ||
| 505 | produces: | ||
| 506 | - application/json | ||
| 507 | responses: | ||
| 508 | "200": | ||
| 509 | description: OK | ||
| 510 | schema: | ||
| 511 | allOf: | ||
| 512 | - $ref: '#/definitions/models.Response' | ||
| 513 | - properties: | ||
| 514 | data: | ||
| 515 | $ref: '#/definitions/handlers.ScoreLogsResponse' | ||
| 516 | type: object | ||
| 517 | "400": | ||
| 518 | description: Bad Request | ||
| 519 | schema: | ||
| 520 | $ref: '#/definitions/models.Response' | ||
| 521 | tags: | ||
| 522 | - rankings | ||
| 447 | /maps/{id}/image: | 523 | /maps/{id}/image: |
| 448 | put: | 524 | put: |
| 449 | description: Edit map image with specified map id. | 525 | description: Edit map image with specified map id. |