From 5958b15c845b94ce15f41ac6fd037469a1bce210 Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Fri, 15 Dec 2023 14:50:30 +0100 Subject: [PATCH] Adding delete and get to message-id --- Documents/proto/general/openapi.yaml | 50 ++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/Documents/proto/general/openapi.yaml b/Documents/proto/general/openapi.yaml index 2160d74..9f1af01 100644 --- a/Documents/proto/general/openapi.yaml +++ b/Documents/proto/general/openapi.yaml @@ -517,6 +517,56 @@ paths: description: Message sent '401': $ref: '#/components/responses/UnauthorizedError' + /discussion/{id}/msg/{msgId}: + parameters: + - name: id + in: path + description: Id of the discussion + required: true + schema: + type: integer + - name: msgId + in: path + description: Id of the message + required: true + schema: + type: integer + get: + summary: get info about message + tags: + - Ext (Messaging) + - discussion + responses: + '200': + description: Ok + content: + application/json: + schema: + type: object + properties: + id: + type: integer + datetime: + type: integer + author: + type: integer + content: + type: string + '401': + $ref: '#/components/responses/UnauthorizedError' + delete: + summary: delete a message + security: + - bearer: [] + tags: + - Ext (Messaging) + - discussion + responses: + '201': + description: Message deleted + '401': + $ref: '#/components/responses/UnauthorizedError' + /appointment: get: