summaryrefslogtreecommitdiffstats
path: root/cps-ncmp-service/src/main/java/org
diff options
context:
space:
mode:
authortragait <rahul.tyagi@est.tech>2021-09-02 11:11:50 +0100
committertragait <rahul.tyagi@est.tech>2021-09-02 11:18:28 +0100
commit88cadd3f3aaa22cccb0d2159cf57fb2b84d440a2 (patch)
tree7a6b4818772366fe4a89540011f33bcc13e0ba64 /cps-ncmp-service/src/main/java/org
parentc0708c6435480a3a1f5c4c8a95f21cfd1d76c6df (diff)
fix dmi base path in ncmp
Issue-ID: CPS-617 Signed-off-by: tragait <rahul.tyagi@est.tech> Change-Id: I3a0018c6054febfea5d9c4aa1c0e62f8aa1c160b
Diffstat (limited to 'cps-ncmp-service/src/main/java/org')
-rw-r--r--cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/operation/DmiOperations.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/operation/DmiOperations.java b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/operation/DmiOperations.java
index 8896b9fd59..d6feaf3adf 100644
--- a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/operation/DmiOperations.java
+++ b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/operation/DmiOperations.java
@@ -48,7 +48,7 @@ public class DmiOperations {
}
private DmiRestClient dmiRestClient;
- private static final String DMI_API_PATH = "/dmi/api";
+ private static final String DMI_API_PATH = "/dmi";
private static final String DMI_CM_HANDLE_PATH = "/v1/ch/{cmHandle}";
private static final String DMI_CM_HANDLE_DATASTORE_PATH = DMI_CM_HANDLE_PATH + "/data/ds";
private static final String URL_SEPARATOR = "/";
@@ -65,7 +65,7 @@ public class DmiOperations {
/**
* Get resources from DMI.
*
- * @param dmiServiceName dmi base path
+ * @param dmiServiceName dmi service name
* @param cmHandle cmHandle
* @param resourceName name of the resource(s)
* @return {@code ResponseEntity} response entity
@@ -135,17 +135,17 @@ public class DmiOperations {
* This method creates the resource data from pass-through running data store for given cm handle
* identifier on given resource using dmi client.
*
- * @param dmiBasePath dmi base path
+ * @param dmiServiceName dmi service name
* @param cmHandle network resource identifier
* @param resourceId resource identifier
* @param jsonBody json body for put operation
* @return {@code ResponseEntity} response entity
*/
- public ResponseEntity<Void> createResourceDataPassThroughRunningFromDmi(final String dmiBasePath,
+ public ResponseEntity<Void> createResourceDataPassThroughRunningFromDmi(final String dmiServiceName,
final String cmHandle,
final String resourceId,
final String jsonBody) {
- final var stringBuilder = getStringBuilderForPassThroughRunningUrl(dmiBasePath,
+ final var stringBuilder = getStringBuilderForPassThroughRunningUrl(dmiServiceName,
cmHandle, resourceId, DataStoreEnum.PASSTHROUGH_RUNNING);
return dmiRestClient.postOperationWithJsonData(stringBuilder.toString(), jsonBody, new HttpHeaders());
}