aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-09-22 21:44:53 +0300
committerGitHub <noreply@github.com>2023-09-22 21:44:53 +0300
commitd3b4d1d6dca5c1b35aefa14346a4066ad88c53e7 (patch)
tree112d4119c92a9847e99639473c73ade13c32b13f /docs
parentfeat: improve map and user searches (#77) (diff)
downloadlphub-d3b4d1d6dca5c1b35aefa14346a4066ad88c53e7.tar.gz
lphub-d3b4d1d6dca5c1b35aefa14346a4066ad88c53e7.tar.bz2
lphub-d3b4d1d6dca5c1b35aefa14346a4066ad88c53e7.zip
docs: update search response (#77)
Former-commit-id: 3dcdf5e4745c9e74a30e91f9f71db1b7610e1fc5
Diffstat (limited to '')
-rw-r--r--docs/docs.go35
-rw-r--r--docs/swagger.json35
-rw-r--r--docs/swagger.yaml24
3 files changed, 88 insertions, 6 deletions
diff --git a/docs/docs.go b/docs/docs.go
index 2461700..1db1bba 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -1267,6 +1267,23 @@ const docTemplate = `{
1267 "records": {} 1267 "records": {}
1268 } 1268 }
1269 }, 1269 },
1270 "handlers.MapShortWithGame": {
1271 "type": "object",
1272 "properties": {
1273 "chapter": {
1274 "type": "string"
1275 },
1276 "game": {
1277 "type": "string"
1278 },
1279 "id": {
1280 "type": "integer"
1281 },
1282 "map": {
1283 "type": "string"
1284 }
1285 }
1286 },
1270 "handlers.MapSummaryResponse": { 1287 "handlers.MapSummaryResponse": {
1271 "type": "object", 1288 "type": "object",
1272 "properties": { 1289 "properties": {
@@ -1464,13 +1481,13 @@ const docTemplate = `{
1464 "maps": { 1481 "maps": {
1465 "type": "array", 1482 "type": "array",
1466 "items": { 1483 "items": {
1467 "$ref": "#/definitions/models.MapShort" 1484 "$ref": "#/definitions/handlers.MapShortWithGame"
1468 } 1485 }
1469 }, 1486 },
1470 "players": { 1487 "players": {
1471 "type": "array", 1488 "type": "array",
1472 "items": { 1489 "items": {
1473 "$ref": "#/definitions/models.UserShort" 1490 "$ref": "#/definitions/models.UserShortWithAvatar"
1474 } 1491 }
1475 } 1492 }
1476 } 1493 }
@@ -1674,6 +1691,20 @@ const docTemplate = `{
1674 "type": "string" 1691 "type": "string"
1675 } 1692 }
1676 } 1693 }
1694 },
1695 "models.UserShortWithAvatar": {
1696 "type": "object",
1697 "properties": {
1698 "avatar_link": {
1699 "type": "string"
1700 },
1701 "steam_id": {
1702 "type": "string"
1703 },
1704 "user_name": {
1705 "type": "string"
1706 }
1707 }
1677 } 1708 }
1678 } 1709 }
1679}` 1710}`
diff --git a/docs/swagger.json b/docs/swagger.json
index 1c52fcc..ae83321 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -1260,6 +1260,23 @@
1260 "records": {} 1260 "records": {}
1261 } 1261 }
1262 }, 1262 },
1263 "handlers.MapShortWithGame": {
1264 "type": "object",
1265 "properties": {
1266 "chapter": {
1267 "type": "string"
1268 },
1269 "game": {
1270 "type": "string"
1271 },
1272 "id": {
1273 "type": "integer"
1274 },
1275 "map": {
1276 "type": "string"
1277 }
1278 }
1279 },
1263 "handlers.MapSummaryResponse": { 1280 "handlers.MapSummaryResponse": {
1264 "type": "object", 1281 "type": "object",
1265 "properties": { 1282 "properties": {
@@ -1457,13 +1474,13 @@
1457 "maps": { 1474 "maps": {
1458 "type": "array", 1475 "type": "array",
1459 "items": { 1476 "items": {
1460 "$ref": "#/definitions/models.MapShort" 1477 "$ref": "#/definitions/handlers.MapShortWithGame"
1461 } 1478 }
1462 }, 1479 },
1463 "players": { 1480 "players": {
1464 "type": "array", 1481 "type": "array",
1465 "items": { 1482 "items": {
1466 "$ref": "#/definitions/models.UserShort" 1483 "$ref": "#/definitions/models.UserShortWithAvatar"
1467 } 1484 }
1468 } 1485 }
1469 } 1486 }
@@ -1667,6 +1684,20 @@
1667 "type": "string" 1684 "type": "string"
1668 } 1685 }
1669 } 1686 }
1687 },
1688 "models.UserShortWithAvatar": {
1689 "type": "object",
1690 "properties": {
1691 "avatar_link": {
1692 "type": "string"
1693 },
1694 "steam_id": {
1695 "type": "string"
1696 },
1697 "user_name": {
1698 "type": "string"
1699 }
1700 }
1670 } 1701 }
1671 } 1702 }
1672} \ No newline at end of file 1703} \ No newline at end of file
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 0465daa..98bd042 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -103,6 +103,17 @@ definitions:
103 $ref: '#/definitions/models.Pagination' 103 $ref: '#/definitions/models.Pagination'
104 records: {} 104 records: {}
105 type: object 105 type: object
106 handlers.MapShortWithGame:
107 properties:
108 chapter:
109 type: string
110 game:
111 type: string
112 id:
113 type: integer
114 map:
115 type: string
116 type: object
106 handlers.MapSummaryResponse: 117 handlers.MapSummaryResponse:
107 properties: 118 properties:
108 map: 119 map:
@@ -231,11 +242,11 @@ definitions:
231 properties: 242 properties:
232 maps: 243 maps:
233 items: 244 items:
234 $ref: '#/definitions/models.MapShort' 245 $ref: '#/definitions/handlers.MapShortWithGame'
235 type: array 246 type: array
236 players: 247 players:
237 items: 248 items:
238 $ref: '#/definitions/models.UserShort' 249 $ref: '#/definitions/models.UserShortWithAvatar'
239 type: array 250 type: array
240 type: object 251 type: object
241 models.Category: 252 models.Category:
@@ -367,6 +378,15 @@ definitions:
367 user_name: 378 user_name:
368 type: string 379 type: string
369 type: object 380 type: object
381 models.UserShortWithAvatar:
382 properties:
383 avatar_link:
384 type: string
385 steam_id:
386 type: string
387 user_name:
388 type: string
389 type: object
370host: lp.ardapektezol.com/api 390host: lp.ardapektezol.com/api
371info: 391info:
372 contact: {} 392 contact: {}