From f187bc7df9b25acdbbf07f13063c9ea0111a6a3b Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Thu, 29 Jun 2023 19:35:54 +0300 Subject: docs: fix delete map summary Former-commit-id: c94adce2fb9a6210f2732a35075bbe49adebc532 --- docs/swagger.yaml | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) (limited to 'docs/swagger.yaml') diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 5309f67..0c55964 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -466,6 +466,38 @@ paths: tags: - maps /maps/{id}/summary: + delete: + 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 get: parameters: - description: Map ID @@ -504,7 +536,7 @@ paths: name: request required: true schema: - $ref: '#/definitions/models.DeleteMapSummaryRequest' + $ref: '#/definitions/models.CreateMapSummaryRequest' produces: - application/json responses: @@ -515,13 +547,13 @@ paths: - $ref: '#/definitions/models.Response' - properties: data: - $ref: '#/definitions/models.DeleteMapSummaryRequest' + $ref: '#/definitions/models.CreateMapSummaryRequest' type: object "400": description: Bad Request schema: $ref: '#/definitions/models.Response' - summary: Delete map summary with specified map id. + summary: Create map summary with specified map id. tags: - maps put: -- cgit v1.2.3