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 --- cps-ncmp-rest/docs/openapi/openapi-inventory.yml | 9 ++++++++- cps-ncmp-rest/docs/openapi/openapi.yml | 7 +++++++ 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'cps-ncmp-rest/docs') diff --git a/cps-ncmp-rest/docs/openapi/openapi-inventory.yml b/cps-ncmp-rest/docs/openapi/openapi-inventory.yml index 08270bc68..8f8dfe292 100755 --- a/cps-ncmp-rest/docs/openapi/openapi-inventory.yml +++ b/cps-ncmp-rest/docs/openapi/openapi-inventory.yml @@ -24,9 +24,16 @@ info: version: "1.0" servers: - url: /ncmpInventory +components: + securitySchemes: + basicAuth: + type: http + scheme: basic paths: /v1/ch: $ref: 'ncmp-inventory.yml#/updateDmiRegistration' /v1/ch/cmHandles: - $ref: 'ncmp-inventory.yml#/getAllCmHandleIdsForRegisteredDmi' \ No newline at end of file + $ref: 'ncmp-inventory.yml#/getAllCmHandleIdsForRegisteredDmi' +security: + - basicAuth: [] \ No newline at end of file diff --git a/cps-ncmp-rest/docs/openapi/openapi.yml b/cps-ncmp-rest/docs/openapi/openapi.yml index 4c546beb2..fe0c4acfc 100755 --- a/cps-ncmp-rest/docs/openapi/openapi.yml +++ b/cps-ncmp-rest/docs/openapi/openapi.yml @@ -25,6 +25,11 @@ info: version: "1.0" servers: - url: /ncmp +components: + securitySchemes: + basicAuth: + type: http + scheme: basic paths: /v1/ch/{cm-handle}/data/ds/{ncmp-datastore-name}: $ref: 'ncmp.yml#/resourceDataForCmHandle' @@ -52,3 +57,5 @@ paths: /v1/ch/{cm-handle}/data-sync: $ref: 'ncmp.yml#/setDataSyncEnabledFlag' +security: + - basicAuth: [] \ No newline at end of file -- cgit 1.2.3-korg