From 1f8611153233516c9e18fc12b3fac9bae904804b Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Mon, 9 Oct 2023 19:02:39 +0300 Subject: feat: new endpoint for getting every map for a game (#114) Former-commit-id: 708f57ef08abea7f2b0549e8dad75096fd315558 --- docs/swagger.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'docs/swagger.yaml') diff --git a/docs/swagger.yaml b/docs/swagger.yaml index b34a80c..d40b847 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -409,6 +409,8 @@ definitions: properties: id: type: integer + is_disabled: + type: boolean name: type: string type: object @@ -573,6 +575,29 @@ paths: type: object tags: - games & chapters + /games/{gameid}/maps: + get: + description: Get maps from the specified game id. + parameters: + - description: Game ID + in: path + name: gameid + required: true + type: integer + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/models.Response' + - properties: + data: + $ref: '#/definitions/handlers.ChaptersResponse' + type: object + tags: + - games & chapters /login: get: consumes: -- cgit v1.2.3