mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-01 17:24:10 +01:00
Add security definitions for directory API.
This commit is contained in:
parent
870d1b8944
commit
aeaa43811c
|
|
@ -11,10 +11,18 @@ consumes:
|
||||||
- application/json
|
- application/json
|
||||||
produces:
|
produces:
|
||||||
- application/json
|
- application/json
|
||||||
|
securityDefinitions:
|
||||||
|
accessToken:
|
||||||
|
type: apiKey
|
||||||
|
description: The user_id or application service access_token
|
||||||
|
name: access_token
|
||||||
|
in: query
|
||||||
paths:
|
paths:
|
||||||
"/room/{roomAlias}":
|
"/room/{roomAlias}":
|
||||||
put:
|
put:
|
||||||
summary: Create a new mapping from room alias to room ID.
|
summary: Create a new mapping from room alias to room ID.
|
||||||
|
security:
|
||||||
|
- accessToken: []
|
||||||
parameters:
|
parameters:
|
||||||
- in: path
|
- in: path
|
||||||
type: string
|
type: string
|
||||||
|
|
@ -63,6 +71,8 @@ paths:
|
||||||
description: There is no mapped room ID for this room alias.
|
description: There is no mapped room ID for this room alias.
|
||||||
delete:
|
delete:
|
||||||
summary: Remove a mapping of room alias to room ID.
|
summary: Remove a mapping of room alias to room ID.
|
||||||
|
security:
|
||||||
|
- accessToken: []
|
||||||
parameters:
|
parameters:
|
||||||
- in: path
|
- in: path
|
||||||
type: string
|
type: string
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue