Add a flag to indicate if the requesting user can unbridge the portal

This commit is contained in:
Travis Ralston
2018-09-16 15:43:10 -06:00
parent d4ea5f8b38
commit 23bb2871fd
3 changed files with 34 additions and 0 deletions
@@ -57,6 +57,11 @@ paths:
required: true
type: string
pattern: "![^/]+"
- name: user_id
in: query
description: Optional Matrix user ID to check if the user has permissions to do bridging.
required: false
type: string
/portal/{chat_id}:
get:
operationId: get_portal_by_tgid
@@ -102,6 +107,11 @@ paths:
required: true
type: integer
pattern: "-[0-9]+"
- name: user_id
in: query
description: Optional Matrix user ID to check if the user has permissions to do bridging.
required: false
type: string
/portal/{room_id}/connect/{chat_id}:
post:
operationId: connect_portal
@@ -829,6 +839,9 @@ definitions:
type: string
about:
type: string
can_unbridge:
type: boolean
description: If a user ID was provided with the request, this will indicate whether or not the user can unbridge the room.
AuthSuccess:
type: object