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/docs.go | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ docs/swagger.json | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ docs/swagger.yaml | 38 +++++++++++++++++++++++++++++++++++--- 3 files changed, 141 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/docs.go b/docs/docs.go index 40632e3..8affdab 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -494,6 +494,59 @@ const docTemplate = `{ } }, "post": { + "produces": [ + "application/json" + ], + "tags": [ + "maps" + ], + "summary": "Create map summary with specified map id.", + "parameters": [ + { + "type": "integer", + "description": "Map ID", + "name": "id", + "in": "path", + "required": true + }, + { + "description": "Body", + "name": "request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/models.CreateMapSummaryRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/models.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/models.CreateMapSummaryRequest" + } + } + } + ] + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/models.Response" + } + } + } + }, + "delete": { "produces": [ "application/json" ], diff --git a/docs/swagger.json b/docs/swagger.json index 7e251ca..af3fa11 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -487,6 +487,59 @@ } }, "post": { + "produces": [ + "application/json" + ], + "tags": [ + "maps" + ], + "summary": "Create map summary with specified map id.", + "parameters": [ + { + "type": "integer", + "description": "Map ID", + "name": "id", + "in": "path", + "required": true + }, + { + "description": "Body", + "name": "request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/models.CreateMapSummaryRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/models.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/models.CreateMapSummaryRequest" + } + } + } + ] + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/models.Response" + } + } + } + }, + "delete": { "produces": [ "application/json" ], 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