From 7e4d2b10026af91043596e815556268af1b9fb42 Mon Sep 17 00:00:00 2001 From: theborakompanioni Date: Wed, 20 Apr 2022 15:14:07 +0200 Subject: [PATCH] docs: clarify handling of optional auth token in session endpoint --- docs/api/wallet-rpc.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/api/wallet-rpc.yaml b/docs/api/wallet-rpc.yaml index 56cf11d..fe5fb0c 100644 --- a/docs/api/wallet-rpc.yaml +++ b/docs/api/wallet-rpc.yaml @@ -105,12 +105,17 @@ paths: $ref: '#/components/responses/404-NotFound' /session: get: + security: + - {} + - bearerAuth: [] summary: get current status of backend operationId: session - description: get whether a wallet is loaded and whether coinjoin/maker are happening. + description: get whether a wallet is loaded and whether coinjoin/maker are happening. if an auth token is provided, which is optional, it will be validated. responses: '200': $ref: "#/components/responses/Session-200-OK" + '401': + $ref: '#/components/responses/401-Unauthorized' '404': $ref: '#/components/responses/404-NotFound' /wallet/all: