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.yaml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'docs/swagger.yaml') diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 3249483..9de09a3 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -18,6 +18,13 @@ definitions: game: $ref: '#/definitions/models.Game' type: object + handlers.CreateMapDiscussionCommentRequest: + properties: + comment: + type: string + required: + - comment + type: object handlers.CreateMapDiscussionRequest: properties: content: @@ -772,6 +779,39 @@ paths: type: object tags: - maps + post: + description: Create map discussion comment with specified map id. + parameters: + - description: JWT Token + in: header + name: Authorization + required: true + type: string + - description: Map ID + in: path + name: mapid + required: true + type: integer + - description: Body + in: body + name: request + required: true + schema: + $ref: '#/definitions/handlers.CreateMapDiscussionCommentRequest' + produces: + - application/json + responses: + "200": + description: OK + schema: + allOf: + - $ref: '#/definitions/models.Response' + - properties: + data: + $ref: '#/definitions/handlers.CreateMapDiscussionCommentRequest' + type: object + tags: + - maps put: description: Edit map discussion with specified map id. parameters: -- cgit v1.2.3