From 5f0928f89c0e8bba21464fe569689e049607e1ae Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Mon, 12 Sep 2022 17:24:44 +0200 Subject: [PATCH] Declare Authorization scheme in OpenAPI --- doc/api/garage-admin-v0.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/doc/api/garage-admin-v0.yml b/doc/api/garage-admin-v0.yml index 5e2f1940..64c519dd 100644 --- a/doc/api/garage-admin-v0.yml +++ b/doc/api/garage-admin-v0.yml @@ -429,11 +429,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/KeyInfo' - - + $ref: '#/components/schemas/KeyInfo' components: + securitySchemes: + bearerAuth: + type: http + scheme: bearer schemas: NodeNetworkInfo: type: object @@ -554,7 +556,10 @@ components: owner: type: boolean example: false - + +security: + - bearerAuth: [] + servers: - description: A local server url: http://localhost:3903/v0/