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/swagger.json | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) (limited to 'docs/swagger.json') 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 -- cgit v1.2.3