diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-02 13:52:45 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-02 13:52:45 +0300 |
| commit | 60fcf785ced334998e8dd19aea3b71be6a2db14f (patch) | |
| tree | d2762c79034b47737ac7ceb4a5e65aef75797779 /docs/docs.go | |
| parent | feat: sike, add game to score logs (#55) (diff) | |
| download | lphub-60fcf785ced334998e8dd19aea3b71be6a2db14f.tar.gz lphub-60fcf785ced334998e8dd19aea3b71be6a2db14f.tar.bz2 lphub-60fcf785ced334998e8dd19aea3b71be6a2db14f.zip | |
docs: update docs for logs (#55)
Former-commit-id: 0478aa459bfe9a7c81073d4ff8d8264aa1258bc1
Diffstat (limited to '')
| -rw-r--r-- | docs/docs.go | 130 |
1 files changed, 128 insertions, 2 deletions
diff --git a/docs/docs.go b/docs/docs.go index 72a1434..3d140cc 100644 --- a/docs/docs.go +++ b/docs/docs.go | |||
| @@ -229,6 +229,89 @@ const docTemplate = `{ | |||
| 229 | } | 229 | } |
| 230 | } | 230 | } |
| 231 | }, | 231 | }, |
| 232 | "/logs/mod": { | ||
| 233 | "get": { | ||
| 234 | "description": "Get mod logs.", | ||
| 235 | "produces": [ | ||
| 236 | "application/json" | ||
| 237 | ], | ||
| 238 | "tags": [ | ||
| 239 | "rankings" | ||
| 240 | ], | ||
| 241 | "parameters": [ | ||
| 242 | { | ||
| 243 | "type": "string", | ||
| 244 | "description": "JWT Token", | ||
| 245 | "name": "Authorization", | ||
| 246 | "in": "header", | ||
| 247 | "required": true | ||
| 248 | } | ||
| 249 | ], | ||
| 250 | "responses": { | ||
| 251 | "200": { | ||
| 252 | "description": "OK", | ||
| 253 | "schema": { | ||
| 254 | "allOf": [ | ||
| 255 | { | ||
| 256 | "$ref": "#/definitions/models.Response" | ||
| 257 | }, | ||
| 258 | { | ||
| 259 | "type": "object", | ||
| 260 | "properties": { | ||
| 261 | "data": { | ||
| 262 | "$ref": "#/definitions/handlers.ScoreLogsResponse" | ||
| 263 | } | ||
| 264 | } | ||
| 265 | } | ||
| 266 | ] | ||
| 267 | } | ||
| 268 | }, | ||
| 269 | "400": { | ||
| 270 | "description": "Bad Request", | ||
| 271 | "schema": { | ||
| 272 | "$ref": "#/definitions/models.Response" | ||
| 273 | } | ||
| 274 | } | ||
| 275 | } | ||
| 276 | } | ||
| 277 | }, | ||
| 278 | "/logs/score": { | ||
| 279 | "get": { | ||
| 280 | "description": "Get score logs of every player.", | ||
| 281 | "produces": [ | ||
| 282 | "application/json" | ||
| 283 | ], | ||
| 284 | "tags": [ | ||
| 285 | "rankings" | ||
| 286 | ], | ||
| 287 | "responses": { | ||
| 288 | "200": { | ||
| 289 | "description": "OK", | ||
| 290 | "schema": { | ||
| 291 | "allOf": [ | ||
| 292 | { | ||
| 293 | "$ref": "#/definitions/models.Response" | ||
| 294 | }, | ||
| 295 | { | ||
| 296 | "type": "object", | ||
| 297 | "properties": { | ||
| 298 | "data": { | ||
| 299 | "$ref": "#/definitions/handlers.ScoreLogsResponse" | ||
| 300 | } | ||
| 301 | } | ||
| 302 | } | ||
| 303 | ] | ||
| 304 | } | ||
| 305 | }, | ||
| 306 | "400": { | ||
| 307 | "description": "Bad Request", | ||
| 308 | "schema": { | ||
| 309 | "$ref": "#/definitions/models.Response" | ||
| 310 | } | ||
| 311 | } | ||
| 312 | } | ||
| 313 | } | ||
| 314 | }, | ||
| 232 | "/maps/{id}/image": { | 315 | "/maps/{id}/image": { |
| 233 | "put": { | 316 | "put": { |
| 234 | "description": "Edit map image with specified map id.", | 317 | "description": "Edit map image with specified map id.", |
| @@ -1267,13 +1350,19 @@ const docTemplate = `{ | |||
| 1267 | "handlers.RankingsResponse": { | 1350 | "handlers.RankingsResponse": { |
| 1268 | "type": "object", | 1351 | "type": "object", |
| 1269 | "properties": { | 1352 | "properties": { |
| 1270 | "rankings_mp": { | 1353 | "rankings_multiplayer": { |
| 1354 | "type": "array", | ||
| 1355 | "items": { | ||
| 1356 | "$ref": "#/definitions/models.UserRanking" | ||
| 1357 | } | ||
| 1358 | }, | ||
| 1359 | "rankings_overall": { | ||
| 1271 | "type": "array", | 1360 | "type": "array", |
| 1272 | "items": { | 1361 | "items": { |
| 1273 | "$ref": "#/definitions/models.UserRanking" | 1362 | "$ref": "#/definitions/models.UserRanking" |
| 1274 | } | 1363 | } |
| 1275 | }, | 1364 | }, |
| 1276 | "rankings_sp": { | 1365 | "rankings_singleplayer": { |
| 1277 | "type": "array", | 1366 | "type": "array", |
| 1278 | "items": { | 1367 | "items": { |
| 1279 | "$ref": "#/definitions/models.UserRanking" | 1368 | "$ref": "#/definitions/models.UserRanking" |
| @@ -1292,6 +1381,43 @@ const docTemplate = `{ | |||
| 1292 | } | 1381 | } |
| 1293 | } | 1382 | } |
| 1294 | }, | 1383 | }, |
| 1384 | "handlers.ScoreLogsResponse": { | ||
| 1385 | "type": "object", | ||
| 1386 | "properties": { | ||
| 1387 | "scores": { | ||
| 1388 | "type": "array", | ||
| 1389 | "items": { | ||
| 1390 | "$ref": "#/definitions/handlers.ScoreLogsResponseDetails" | ||
| 1391 | } | ||
| 1392 | } | ||
| 1393 | } | ||
| 1394 | }, | ||
| 1395 | "handlers.ScoreLogsResponseDetails": { | ||
| 1396 | "type": "object", | ||
| 1397 | "properties": { | ||
| 1398 | "date": { | ||
| 1399 | "type": "string" | ||
| 1400 | }, | ||
| 1401 | "demo_id": { | ||
| 1402 | "type": "string" | ||
| 1403 | }, | ||
| 1404 | "game": { | ||
| 1405 | "$ref": "#/definitions/models.Game" | ||
| 1406 | }, | ||
| 1407 | "map": { | ||
| 1408 | "$ref": "#/definitions/models.MapShort" | ||
| 1409 | }, | ||
| 1410 | "score_count": { | ||
| 1411 | "type": "integer" | ||
| 1412 | }, | ||
| 1413 | "score_time": { | ||
| 1414 | "type": "integer" | ||
| 1415 | }, | ||
| 1416 | "user": { | ||
| 1417 | "$ref": "#/definitions/models.UserShort" | ||
| 1418 | } | ||
| 1419 | } | ||
| 1420 | }, | ||
| 1295 | "handlers.SearchResponse": { | 1421 | "handlers.SearchResponse": { |
| 1296 | "type": "object", | 1422 | "type": "object", |
| 1297 | "properties": { | 1423 | "properties": { |