From d3b4d1d6dca5c1b35aefa14346a4066ad88c53e7 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Fri, 22 Sep 2023 21:44:53 +0300 Subject: docs: update search response (#77) Former-commit-id: 3dcdf5e4745c9e74a30e91f9f71db1b7610e1fc5 --- docs/docs.go | 35 +++++++++++++++++++++++++++++++++-- docs/swagger.json | 35 +++++++++++++++++++++++++++++++++-- docs/swagger.yaml | 24 ++++++++++++++++++++++-- 3 files changed, 88 insertions(+), 6 deletions(-) (limited to 'docs') 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 = `{ "records": {} } }, + "handlers.MapShortWithGame": { + "type": "object", + "properties": { + "chapter": { + "type": "string" + }, + "game": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "map": { + "type": "string" + } + } + }, "handlers.MapSummaryResponse": { "type": "object", "properties": { @@ -1464,13 +1481,13 @@ const docTemplate = `{ "maps": { "type": "array", "items": { - "$ref": "#/definitions/models.MapShort" + "$ref": "#/definitions/handlers.MapShortWithGame" } }, "players": { "type": "array", "items": { - "$ref": "#/definitions/models.UserShort" + "$ref": "#/definitions/models.UserShortWithAvatar" } } } @@ -1674,6 +1691,20 @@ const docTemplate = `{ "type": "string" } } + }, + "models.UserShortWithAvatar": { + "type": "object", + "properties": { + "avatar_link": { + "type": "string" + }, + "steam_id": { + "type": "string" + }, + "user_name": { + "type": "string" + } + } } } }` 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 @@ "records": {} } }, + "handlers.MapShortWithGame": { + "type": "object", + "properties": { + "chapter": { + "type": "string" + }, + "game": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "map": { + "type": "string" + } + } + }, "handlers.MapSummaryResponse": { "type": "object", "properties": { @@ -1457,13 +1474,13 @@ "maps": { "type": "array", "items": { - "$ref": "#/definitions/models.MapShort" + "$ref": "#/definitions/handlers.MapShortWithGame" } }, "players": { "type": "array", "items": { - "$ref": "#/definitions/models.UserShort" + "$ref": "#/definitions/models.UserShortWithAvatar" } } } @@ -1667,6 +1684,20 @@ "type": "string" } } + }, + "models.UserShortWithAvatar": { + "type": "object", + "properties": { + "avatar_link": { + "type": "string" + }, + "steam_id": { + "type": "string" + }, + "user_name": { + "type": "string" + } + } } } } \ 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: $ref: '#/definitions/models.Pagination' records: {} type: object + handlers.MapShortWithGame: + properties: + chapter: + type: string + game: + type: string + id: + type: integer + map: + type: string + type: object handlers.MapSummaryResponse: properties: map: @@ -231,11 +242,11 @@ definitions: properties: maps: items: - $ref: '#/definitions/models.MapShort' + $ref: '#/definitions/handlers.MapShortWithGame' type: array players: items: - $ref: '#/definitions/models.UserShort' + $ref: '#/definitions/models.UserShortWithAvatar' type: array type: object models.Category: @@ -367,6 +378,15 @@ definitions: user_name: type: string type: object + models.UserShortWithAvatar: + properties: + avatar_link: + type: string + steam_id: + type: string + user_name: + type: string + type: object host: lp.ardapektezol.com/api info: contact: {} -- cgit v1.2.3