From 7d27b7bde11fa117f37ce18e0807ef299b69c700 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Thu, 29 Jun 2023 19:35:02 +0300 Subject: docs: updated for add/edit/delete map summary Former-commit-id: 0f2f20f84b5a52d747f18fba771bc88478f8c059 --- docs/swagger.yaml | 66 ++++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 58 insertions(+), 8 deletions(-) (limited to 'docs/swagger.yaml') diff --git a/docs/swagger.yaml b/docs/swagger.yaml index ba20f6d..5309f67 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -32,18 +32,36 @@ definitions: game: $ref: '#/definitions/models.Game' type: object - models.EditMapSummaryRequest: + models.CreateMapSummaryRequest: properties: - image: + category_id: + type: integer + description: type: string - routes: - items: - $ref: '#/definitions/models.EditMapSummaryRequestDetails' - type: array + record_date: + type: string + score_count: + type: integer + showcase: + type: string + user_name: + type: string + required: + - category_id + - description + - record_date + - score_count + - showcase + - user_name + type: object + models.DeleteMapSummaryRequest: + properties: + route_id: + type: integer required: - - image + - route_id type: object - models.EditMapSummaryRequestDetails: + models.EditMapSummaryRequest: properties: description: type: string @@ -474,6 +492,38 @@ paths: summary: Get map summary with specified id. tags: - maps + post: + parameters: + - description: Map ID + in: path + name: id + required: true + type: integer + - description: Body + in: body + name: request + required: true + schema: + $ref: '#/definitions/models.DeleteMapSummaryRequest' + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/models.Response' + - properties: + data: + $ref: '#/definitions/models.DeleteMapSummaryRequest' + type: object + "400": + description: Bad Request + schema: + $ref: '#/definitions/models.Response' + summary: Delete map summary with specified map id. + tags: + - maps put: parameters: - description: Map ID -- cgit v1.2.3