Adding delete and get to message-id
This commit is contained in:
parent
8648631d32
commit
5958b15c84
@ -517,6 +517,56 @@ paths:
|
|||||||
description: Message sent
|
description: Message sent
|
||||||
'401':
|
'401':
|
||||||
$ref: '#/components/responses/UnauthorizedError'
|
$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:
|
/appointment:
|
||||||
get:
|
get:
|
||||||
|
Loading…
Reference in New Issue
Block a user