From 1a65023937c209ae05c8e84093376b737e78320c Mon Sep 17 00:00:00 2001 From: JosephKeenan Date: Thu, 20 Oct 2022 10:33:24 +0100 Subject: [NCMP] Add Basic Auth to OpenAPI Definitions -Adding basic auth to OpenAPI definitions Issue-ID: CPS-1350 Signed-off-by: JosephKeenan Change-Id: Iab677f2abc07eed8c3e2910191b15ba27028ee88 --- docs/api/swagger/cps/openapi.yaml | 7 +++++++ docs/api/swagger/ncmp/openapi-inventory.yaml | 7 +++++++ docs/api/swagger/ncmp/openapi.yaml | 7 +++++++ 3 files changed, 21 insertions(+) (limited to 'docs/api') diff --git a/docs/api/swagger/cps/openapi.yaml b/docs/api/swagger/cps/openapi.yaml index 874f2a0774..e8f13d4df9 100644 --- a/docs/api/swagger/cps/openapi.yaml +++ b/docs/api/swagger/cps/openapi.yaml @@ -1537,6 +1537,10 @@ paths: details: Internal Server Error occurred x-codegen-request-body-name: xpath components: + securitySchemes: + basicAuth: + type: http + scheme: basic schemas: ErrorMessage: title: Error @@ -1609,3 +1613,6 @@ components: name: SciFi - code: 2 name: kids + +security: + - basicAuth: [] \ No newline at end of file diff --git a/docs/api/swagger/ncmp/openapi-inventory.yaml b/docs/api/swagger/ncmp/openapi-inventory.yaml index 2d34f0a61a..9e84f3a194 100644 --- a/docs/api/swagger/ncmp/openapi-inventory.yaml +++ b/docs/api/swagger/ncmp/openapi-inventory.yaml @@ -148,6 +148,10 @@ paths: message: Internal Server Error details: Internal Server Error occurred components: + securitySchemes: + basicAuth: + type: http + scheme: basic schemas: RestDmiPluginRegistration: type: object @@ -234,3 +238,6 @@ components: errorText: type: string example: Unknown error. + +security: + - basicAuth: [] \ No newline at end of file diff --git a/docs/api/swagger/ncmp/openapi.yaml b/docs/api/swagger/ncmp/openapi.yaml index 44cc2b88a6..b9eee5603d 100644 --- a/docs/api/swagger/ncmp/openapi.yaml +++ b/docs/api/swagger/ncmp/openapi.yaml @@ -1193,6 +1193,10 @@ paths: http-code: 400 body: Bad Request components: + securitySchemes: + basicAuth: + type: http + scheme: basic schemas: ErrorMessage: title: Error @@ -1477,3 +1481,6 @@ components: - conditionName: cmHandleWithCpsPath conditionParameters: - cpsPath: "//state[@data-sync-enabled='true']" + +security: + - basicAuth: [] -- cgit 1.2.3-korg