[NCMP] Add Basic Auth to OpenAPI Definitions 85/131585/2
authorJosephKeenan <joseph.keenan@est.tech>
Thu, 20 Oct 2022 09:33:24 +0000 (10:33 +0100)
committerJosephKeenan <joseph.keenan@est.tech>
Mon, 24 Oct 2022 15:22:06 +0000 (16:22 +0100)
-Adding basic auth to OpenAPI definitions

Issue-ID: CPS-1350
Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
Change-Id: Iab677f2abc07eed8c3e2910191b15ba27028ee88

cps-ncmp-rest/docs/openapi/openapi-inventory.yml
cps-ncmp-rest/docs/openapi/openapi.yml
cps-rest/docs/openapi/openapi.yml
docs/api/swagger/cps/openapi.yaml
docs/api/swagger/ncmp/openapi-inventory.yaml
docs/api/swagger/ncmp/openapi.yaml
docs/release-notes.rst

index 08270bc..8f8dfe2 100755 (executable)
@@ -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
index 4c546be..fe0c4ac 100755 (executable)
@@ -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
index 76bdb80..290bbf4 100644 (file)
@@ -37,6 +37,11 @@ info:
 
 servers:
   - url: /cps/api
+components:
+  securitySchemes:
+    basicAuth:
+      type: http
+      scheme: basic
 tags:
   - name: cps-admin
     description: cps Admin
@@ -70,3 +75,6 @@ paths:
 
   /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/nodes/query:
     $ref: 'cpsQuery.yml#/nodesByDataspaceAndAnchorAndCpsPath'
+
+security:
+  - basicAuth: []
\ No newline at end of file
index 874f2a0..e8f13d4 100644 (file)
@@ -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
index 2d34f0a..9e84f3a 100644 (file)
@@ -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. <error-details>
+
+security:
+  - basicAuth: []
\ No newline at end of file
index 44cc2b8..b9eee56 100644 (file)
@@ -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: []
index 2bb7a03..113dbc0 100755 (executable)
@@ -45,6 +45,7 @@ Features
 Bug Fixes
 ---------
    - `CPS-1312 <https://jira.onap.org/browse/CPS-1312>`_  CPS(/NCMP) does not have version control
+   - `CPS-1350 <https://jira.onap.org/browse/CPS-1350>`_  [CPS/NCMP] Add Basic Auth to CPS/NCMP OpenAPI Definitions
 
 Known Limitations, Issues and Workarounds
 -----------------------------------------