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.yaml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'docs/swagger.yaml') 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