[DMI] Add Basic Auth to OpenAPI Definitions 25/131825/5
authorJosephKeenan <joseph.keenan@est.tech>
Wed, 26 Oct 2022 14:17:59 +0000 (15:17 +0100)
committerJoseph Keenan <joseph.keenan@est.tech>
Mon, 7 Nov 2022 09:40:27 +0000 (09:40 +0000)
-Adding basic auth to OpenAPI definitions

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

docs/api/swagger/openapi.yaml
docs/release-notes.rst
openapi/components.yml

index 41ebedf..101b93b 100644 (file)
@@ -344,6 +344,10 @@ paths:
                 message: Internal Server Error
                 details: Internal Server Error occured
 components:
+  securitySchemes:
+    basicAuth:
+      type: http
+      scheme: basic
   schemas:
     ModuleReferencesRequest:
       type: object
@@ -456,3 +460,6 @@ components:
           type: array
           items:
             $ref: '#/components/schemas/ModuleResourcesReadRequest_data_modules'
+
+security:
+  - basicAuth: []
\ No newline at end of file
index aefd074..6421e9f 100644 (file)
@@ -40,7 +40,7 @@ Release Data
 
 Bug Fixes
 ---------
-   - None
+   - `CPS-1350 <https://jira.onap.org/browse/CPS-1350>`_  [CPS/NCMP] Add Basic Auth to CPS/NCMP OpenAPI Definitions
 
 
 Version: 1.2.1
index 049701e..6124d64 100644 (file)
 #  ============LICENSE_END=========================================================
 
 components:
+  securitySchemes:
+    basicAuth:
+      type: http
+      scheme: basic
   schemas:
     ErrorMessage:
       type: object
@@ -209,3 +213,6 @@ components:
       examples:
         sample1:
           value: my-topic-name
+
+security:
+  - basicAuth: []
\ No newline at end of file