Add security definitions for directory API.
This commit is contained in:
parent
870d1b8944
commit
aeaa43811c
1 changed files with 10 additions and 0 deletions
|
@ -11,10 +11,18 @@ consumes:
|
|||
- application/json
|
||||
produces:
|
||||
- application/json
|
||||
securityDefinitions:
|
||||
accessToken:
|
||||
type: apiKey
|
||||
description: The user_id or application service access_token
|
||||
name: access_token
|
||||
in: query
|
||||
paths:
|
||||
"/room/{roomAlias}":
|
||||
put:
|
||||
summary: Create a new mapping from room alias to room ID.
|
||||
security:
|
||||
- accessToken: []
|
||||
parameters:
|
||||
- in: path
|
||||
type: string
|
||||
|
@ -63,6 +71,8 @@ paths:
|
|||
description: There is no mapped room ID for this room alias.
|
||||
delete:
|
||||
summary: Remove a mapping of room alias to room ID.
|
||||
security:
|
||||
- accessToken: []
|
||||
parameters:
|
||||
- in: path
|
||||
type: string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue