From dc1efc001ead0aecdda78be4b80385d21b52cace Mon Sep 17 00:00:00 2001 From: david-i-berry Date: Wed, 7 Aug 2024 16:56:06 +0200 Subject: [PATCH] debugging security + bearer token. --- wis2downloader/static/openapi.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/wis2downloader/static/openapi.yaml b/wis2downloader/static/openapi.yaml index eaa53be..0ad0cfd 100644 --- a/wis2downloader/static/openapi.yaml +++ b/wis2downloader/static/openapi.yaml @@ -11,6 +11,8 @@ paths: get: summary: Returns list of subscribed topics description: Returns list of subscribed topics + security: + - wis2boxAuth: [ ] responses: "200": description: A JSON object containing the subscribed topics @@ -21,6 +23,8 @@ paths: post: summary: Subscribe to specified topic description: Subscribe to specified topic + security: + - wis2boxAuth: [ ] requestBody: required: true content: @@ -64,6 +68,8 @@ paths: delete: summary: Unsubscribe from specified topic description: Unsubscribe from specified topic + security: + - wis2boxAuth: [ ] parameters: - in: path name: topic @@ -81,6 +87,8 @@ paths: get: summary: Get information on specified subscription description: Get information on specified subscription + security: + - wis2boxAuth: [ ] parameters: - in: path name: topic @@ -114,6 +122,8 @@ paths: get: summary: Get of list of published metrics description: Get list of published metrics + security: + - wis2boxAuth: [ ] responses: "200": description: List of published metrics suitable for integration with Prometheus @@ -127,6 +137,4 @@ components: securitySchemes: wis2boxAuth: type: http - scheme: bearer -security: - - wis2boxAuth: [] \ No newline at end of file + scheme: bearer \ No newline at end of file