aboutsummaryrefslogtreecommitdiff
path: root/backend/docs/swagger.yaml
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2025-10-27 22:12:31 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2025-10-27 23:13:45 +0400
commit96f55dba15bcbba4e6d8f14035ecfd20ebcea8a8 (patch)
treed33156305b0e34e1c28e294e021447635dde3531 /backend/docs/swagger.yaml
parentfix/frontend: hide breakpoint in-between tablet and desktop on maps (#290) (diff)
downloadlphub-96f55dba15bcbba4e6d8f14035ecfd20ebcea8a8.tar.gz
lphub-96f55dba15bcbba4e6d8f14035ecfd20ebcea8a8.tar.bz2
lphub-96f55dba15bcbba4e6d8f14035ecfd20ebcea8a8.zip
feat/backend: timeline stats endpoint
Diffstat (limited to 'backend/docs/swagger.yaml')
-rw-r--r--backend/docs/swagger.yaml87
1 files changed, 62 insertions, 25 deletions
diff --git a/backend/docs/swagger.yaml b/backend/docs/swagger.yaml
index 8f33b94..0b3258c 100644
--- a/backend/docs/swagger.yaml
+++ b/backend/docs/swagger.yaml
@@ -287,14 +287,7 @@ definitions:
287 score_time: 287 score_time:
288 type: integer 288 type: integer
289 type: object 289 type: object
290 handlers.ScoreLogsResponse: 290 handlers.ScoresDetails:
291 properties:
292 scores:
293 items:
294 $ref: '#/definitions/handlers.ScoreLogsResponseDetails'
295 type: array
296 type: object
297 handlers.ScoreLogsResponseDetails:
298 properties: 291 properties:
299 date: 292 date:
300 type: string 293 type: string
@@ -311,6 +304,13 @@ definitions:
311 user: 304 user:
312 $ref: '#/definitions/models.UserShort' 305 $ref: '#/definitions/models.UserShort'
313 type: object 306 type: object
307 handlers.ScoresResponse:
308 properties:
309 scores:
310 items:
311 $ref: '#/definitions/handlers.ScoresDetails'
312 type: array
313 type: object
314 handlers.SearchResponse: 314 handlers.SearchResponse:
315 properties: 315 properties:
316 maps: 316 maps:
@@ -343,6 +343,24 @@ definitions:
343 user_name: 343 user_name:
344 type: string 344 type: string
345 type: object 345 type: object
346 handlers.TimelinePoint:
347 properties:
348 count:
349 type: integer
350 date:
351 type: string
352 type: object
353 handlers.TimelineResponse:
354 properties:
355 timeline_multiplayer:
356 items:
357 $ref: '#/definitions/handlers.TimelinePoint'
358 type: array
359 timeline_singleplayer:
360 items:
361 $ref: '#/definitions/handlers.TimelinePoint'
362 type: array
363 type: object
346 models.Category: 364 models.Category:
347 properties: 365 properties:
348 id: 366 id:
@@ -398,6 +416,8 @@ definitions:
398 properties: 416 properties:
399 chapter_name: 417 chapter_name:
400 type: string 418 type: string
419 difficulty:
420 type: integer
401 game_name: 421 game_name:
402 type: string 422 type: string
403 id: 423 id:
@@ -672,23 +692,6 @@ paths:
672 type: object 692 type: object
673 tags: 693 tags:
674 - login 694 - login
675 /logs/score:
676 get:
677 description: Get score logs of every player.
678 produces:
679 - application/json
680 responses:
681 "200":
682 description: OK
683 schema:
684 allOf:
685 - $ref: '#/definitions/models.Response'
686 - properties:
687 data:
688 $ref: '#/definitions/handlers.ScoreLogsResponse'
689 type: object
690 tags:
691 - logs
692 /maps/{mapid}/discussions: 695 /maps/{mapid}/discussions:
693 get: 696 get:
694 description: Get map discussions with specified map id. 697 description: Get map discussions with specified map id.
@@ -1259,6 +1262,40 @@ paths:
1259 type: object 1262 type: object
1260 tags: 1263 tags:
1261 - search 1264 - search
1265 /stats/scores:
1266 get:
1267 description: Get score logs of every player.
1268 produces:
1269 - application/json
1270 responses:
1271 "200":
1272 description: OK
1273 schema:
1274 allOf:
1275 - $ref: '#/definitions/models.Response'
1276 - properties:
1277 data:
1278 $ref: '#/definitions/handlers.ScoresResponse'
1279 type: object
1280 tags:
1281 - stats
1282 /stats/timeline:
1283 get:
1284 description: Get the history of portal count world records over time.
1285 produces:
1286 - application/json
1287 responses:
1288 "200":
1289 description: OK
1290 schema:
1291 allOf:
1292 - $ref: '#/definitions/models.Response'
1293 - properties:
1294 data:
1295 $ref: '#/definitions/handlers.TimelineResponse'
1296 type: object
1297 tags:
1298 - stats
1262 /token: 1299 /token:
1263 delete: 1300 delete:
1264 description: Deletes the token cookie from the user. 1301 description: Deletes the token cookie from the user.