From 5bf9b261802001b8038eba2dd272020fab0c0ebd Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Thu, 27 Feb 2020 23:16:13 +0000 Subject: [PATCH] Document door API auth --- apiserver/docs/source/api.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apiserver/docs/source/api.rst b/apiserver/docs/source/api.rst index 8dc9b4e..c1ffa34 100644 --- a/apiserver/docs/source/api.rst +++ b/apiserver/docs/source/api.rst @@ -846,14 +846,18 @@ Cards Door ---- - Public route that the door controllers should poll for a list of cards + Private route that the door controllers should poll for a list of cards allowed to scan into the building. .. http:get:: /door/ List all active cards of unpaused members. - No authentication required. + Authorization with the door API token set in secrets.py is required. + + Use "Bearer" instead of "Token" like in the other routes. + + :requestheader Authorization: ``Bearer `` **Example response**