diff options
Diffstat (limited to 'backend/docs/swagger.yaml')
| -rw-r--r-- | backend/docs/swagger.yaml | 57 |
1 files changed, 55 insertions, 2 deletions
diff --git a/backend/docs/swagger.yaml b/backend/docs/swagger.yaml index 853b3b9..22651e3 100644 --- a/backend/docs/swagger.yaml +++ b/backend/docs/swagger.yaml | |||
| @@ -283,6 +283,21 @@ definitions: | |||
| 283 | $ref: '#/definitions/models.UserRanking' | 283 | $ref: '#/definitions/models.UserRanking' |
| 284 | type: array | 284 | type: array |
| 285 | type: object | 285 | type: object |
| 286 | handlers.RankingsSteamResponse: | ||
| 287 | properties: | ||
| 288 | rankings_multiplayer: | ||
| 289 | items: | ||
| 290 | $ref: '#/definitions/handlers.SteamUserRanking' | ||
| 291 | type: array | ||
| 292 | rankings_overall: | ||
| 293 | items: | ||
| 294 | $ref: '#/definitions/handlers.SteamUserRanking' | ||
| 295 | type: array | ||
| 296 | rankings_singleplayer: | ||
| 297 | items: | ||
| 298 | $ref: '#/definitions/handlers.SteamUserRanking' | ||
| 299 | type: array | ||
| 300 | type: object | ||
| 286 | handlers.RecordResponse: | 301 | handlers.RecordResponse: |
| 287 | properties: | 302 | properties: |
| 288 | score_count: | 303 | score_count: |
| @@ -325,6 +340,27 @@ definitions: | |||
| 325 | $ref: '#/definitions/models.UserShortWithAvatar' | 340 | $ref: '#/definitions/models.UserShortWithAvatar' |
| 326 | type: array | 341 | type: array |
| 327 | type: object | 342 | type: object |
| 343 | handlers.SteamUserRanking: | ||
| 344 | properties: | ||
| 345 | avatar_link: | ||
| 346 | type: string | ||
| 347 | mp_rank: | ||
| 348 | type: integer | ||
| 349 | mp_score: | ||
| 350 | type: integer | ||
| 351 | overall_rank: | ||
| 352 | type: integer | ||
| 353 | overall_score: | ||
| 354 | type: integer | ||
| 355 | sp_rank: | ||
| 356 | type: integer | ||
| 357 | sp_score: | ||
| 358 | type: integer | ||
| 359 | steam_id: | ||
| 360 | type: string | ||
| 361 | user_name: | ||
| 362 | type: string | ||
| 363 | type: object | ||
| 328 | models.Category: | 364 | models.Category: |
| 329 | properties: | 365 | properties: |
| 330 | id: | 366 | id: |
| @@ -1216,9 +1252,9 @@ paths: | |||
| 1216 | $ref: '#/definitions/models.Response' | 1252 | $ref: '#/definitions/models.Response' |
| 1217 | tags: | 1253 | tags: |
| 1218 | - users | 1254 | - users |
| 1219 | /rankings: | 1255 | /rankings/lphub: |
| 1220 | get: | 1256 | get: |
| 1221 | description: Get rankings of every player. | 1257 | description: Get rankings of every player from LPHUB. |
| 1222 | produces: | 1258 | produces: |
| 1223 | - application/json | 1259 | - application/json |
| 1224 | responses: | 1260 | responses: |
| @@ -1233,6 +1269,23 @@ paths: | |||
| 1233 | type: object | 1269 | type: object |
| 1234 | tags: | 1270 | tags: |
| 1235 | - rankings | 1271 | - rankings |
| 1272 | /rankings/steam: | ||
| 1273 | get: | ||
| 1274 | description: Get rankings of every player from Steam. | ||
| 1275 | produces: | ||
| 1276 | - application/json | ||
| 1277 | responses: | ||
| 1278 | "200": | ||
| 1279 | description: OK | ||
| 1280 | schema: | ||
| 1281 | allOf: | ||
| 1282 | - $ref: '#/definitions/models.Response' | ||
| 1283 | - properties: | ||
| 1284 | data: | ||
| 1285 | $ref: '#/definitions/handlers.RankingsSteamResponse' | ||
| 1286 | type: object | ||
| 1287 | tags: | ||
| 1288 | - rankings | ||
| 1236 | /search: | 1289 | /search: |
| 1237 | get: | 1290 | get: |
| 1238 | description: Get all user and map data matching to the query. | 1291 | description: Get all user and map data matching to the query. |