From 1e517f672233335dab59f8b311a5a4621194db2d Mon Sep 17 00:00:00 2001 From: sourabh_sourabh Date: Mon, 27 Jan 2025 14:55:04 +0000 Subject: [PATCH] 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 --- dmi-service/openapi/components.yml | 4 ++-- docs/api/swagger/openapi.yaml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) 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: -- 2.16.6