From aeaa43811cb879dfcf6778efc611e118dc7d3616 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Fri, 29 May 2015 15:18:09 +0100 Subject: [PATCH] Add security definitions for directory API. --- api/client-server/v1/directory.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/api/client-server/v1/directory.yaml b/api/client-server/v1/directory.yaml index 806bf515..e23b4586 100644 --- a/api/client-server/v1/directory.yaml +++ b/api/client-server/v1/directory.yaml @@ -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