From: sourabh_sourabh Date: Mon, 27 Jan 2025 14:55:04 +0000 (+0000) Subject: Realistic Examples: DMI Open API X-Git-Tag: 1.7.0~9 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=1e517f672233335dab59f8b311a5a4621194db2d;p=cps%2Fncmp-dmi-plugin.git Realistic Examples: DMI Open API - ResourceIdentifiers must be url encoded fdns from ManagedElement. e.g.: '/ManagedElement=NRNode1/GNBDUFunction=1/NRCellDU=cell1' Issue-ID: CPS-2484 Change-Id: I04336c669a5165dac82fc6acec3dfc9d237522c8 Signed-off-by: sourabh_sourabh --- diff --git a/dmi-service/openapi/components.yml b/dmi-service/openapi/components.yml index c85d8e1a..ba9fc45b 100644 --- a/dmi-service/openapi/components.yml +++ b/dmi-service/openapi/components.yml @@ -72,7 +72,7 @@ components: example: '(fields=NRCellDU/attributes/cellLocalId)' resourceIdentifier: type: string - example: 'NRCellDU/attributes/cellLocalId' + example: '/ManagedElement=NRNode1/GNBDUFunction=1' cmHandles: type: array items: @@ -257,7 +257,7 @@ components: required: true schema: type: string - example: "NRCellDU/attributes/cellLocalId" + example: '/ManagedElement=NRNode1/GNBDUFunction=1' optionsParamInQuery: name: options diff --git a/docs/api/swagger/openapi.yaml b/docs/api/swagger/openapi.yaml index a4af7358..fcc2302a 100644 --- a/docs/api/swagger/openapi.yaml +++ b/docs/api/swagger/openapi.yaml @@ -181,7 +181,7 @@ paths: name: resourceIdentifier required: true schema: - example: NRCellDU/attributes/cellLocalId + example: '/ManagedElement=NRNode1/GNBDUFunction=1' type: string - description: "options parameter in query, it is mandatory to wrap key(s)=value(s)\ \ in parenthesis'()'." @@ -339,7 +339,7 @@ components: name: resourceIdentifier required: true schema: - example: NRCellDU/attributes/cellLocalId + example: '/ManagedElement=NRNode1/GNBDUFunction=1' type: string optionsParamInQuery: description: "options parameter in query, it is mandatory to wrap key(s)=value(s)\ @@ -637,7 +637,7 @@ components: type: object DataOperationRequest: example: - resourceIdentifier: NRCellDU/attributes/cellLocalId + resourceIdentifier: '/ManagedElement=NRNode1/GNBDUFunction=1' datastore: ncmp-datastore:passthrough-operational options: (fields=NRCellDU/attributes/cellLocalId) operationId: "12" @@ -669,7 +669,7 @@ components: example: (fields=NRCellDU/attributes/cellLocalId) type: string resourceIdentifier: - example: NRCellDU/attributes/cellLocalId + example: '/ManagedElement=NRNode1/GNBDUFunction=1' type: string cmHandles: items: