[NCMP] Add Basic Auth to OpenAPI Definitions
[cps.git] / cps-ncmp-rest / docs / openapi / openapi-inventory.yml
index ee09d05..8f8dfe2 100755 (executable)
@@ -1,5 +1,6 @@
 #  ============LICENSE_START=======================================================
 #  Copyright (C) 2021 Bell Canada
+#  Modifications Copyright (C) 2022 Nordix Foundation
 #  ================================================================================
 #  Licensed under the Apache License, Version 2.0 (the "License");
 #  you may not use this file except in compliance with the License.
@@ -23,6 +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'
+security:
+  - basicAuth: []
\ No newline at end of file