From 28045d2635dff2c2b18cbcdc0da424b0ec7da0ac Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Mon, 11 Dec 2023 16:34:10 +0300 Subject: feat: add discussion comment posting (#59) --- docs/swagger.json | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) (limited to 'docs/swagger.json') diff --git a/docs/swagger.json b/docs/swagger.json index a38240e..043fb6b 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -516,6 +516,60 @@ } } }, + "post": { + "description": "Create map discussion comment with specified map id.", + "produces": [ + "application/json" + ], + "tags": [ + "maps" + ], + "parameters": [ + { + "type": "string", + "description": "JWT Token", + "name": "Authorization", + "in": "header", + "required": true + }, + { + "type": "integer", + "description": "Map ID", + "name": "mapid", + "in": "path", + "required": true + }, + { + "description": "Body", + "name": "request", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/handlers.CreateMapDiscussionCommentRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/models.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/handlers.CreateMapDiscussionCommentRequest" + } + } + } + ] + } + } + } + }, "delete": { "description": "Delete map summary with specified map id.", "produces": [ @@ -1319,6 +1373,17 @@ } } }, + "handlers.CreateMapDiscussionCommentRequest": { + "type": "object", + "required": [ + "comment" + ], + "properties": { + "comment": { + "type": "string" + } + } + }, "handlers.CreateMapDiscussionRequest": { "type": "object", "required": [ -- cgit v1.2.3