From 7272f11fa4a3876cf61451a21916a7244c2d045b Mon Sep 17 00:00:00 2001 From: "raviteja.karumuri" Date: Wed, 24 May 2023 18:23:38 +0100 Subject: DMI-Plugin : Update batch endpoint (move url param into rest body) Issue-ID: CPS-1636 Signed-off-by: raviteja.karumuri Change-Id: I787be1be899a69c0972ccfd17016e67eaf8a771a --- .../cps/ncmp/dmi/rest/controller/DmiRestController.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/main') diff --git a/src/main/java/org/onap/cps/ncmp/dmi/rest/controller/DmiRestController.java b/src/main/java/org/onap/cps/ncmp/dmi/rest/controller/DmiRestController.java index 9459d1b1..6a404c6a 100644 --- a/src/main/java/org/onap/cps/ncmp/dmi/rest/controller/DmiRestController.java +++ b/src/main/java/org/onap/cps/ncmp/dmi/rest/controller/DmiRestController.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * Copyright (C) 2021-2022 Nordix Foundation + * Copyright (C) 2021-2023 Nordix Foundation * Modifications Copyright (C) 2022 Bell Canada * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); @@ -35,6 +35,7 @@ import org.onap.cps.ncmp.dmi.model.DataAccessRequest; import org.onap.cps.ncmp.dmi.model.ModuleReferencesRequest; import org.onap.cps.ncmp.dmi.model.ModuleResourcesReadRequest; import org.onap.cps.ncmp.dmi.model.ModuleSet; +import org.onap.cps.ncmp.dmi.model.ResourceBatchRequest; import org.onap.cps.ncmp.dmi.model.YangResources; import org.onap.cps.ncmp.dmi.notifications.async.AsyncTaskExecutor; import org.onap.cps.ncmp.dmi.rest.api.DmiPluginApi; @@ -106,14 +107,14 @@ public class DmiRestController implements DmiPluginApi, DmiPluginInternalApi { /** * This method is not implemented for ONAP DMI plugin. * - * @param datastoreName name of the data store - * @param topic Kafka topic name - * @param body list of cm-handles + * @param requestId requestId generated by NCMP as an ack for client + * @param topic client given topic name + * @param resourceDataBatchRequest list of operation details * @return (@ code ResponseEntity) response entity */ @Override - public ResponseEntity getResourceDataByCmHandles(final String datastoreName, final String topic, - final Object body) { + public ResponseEntity getResourceDataForCmHandleBatch(final String requestId, final String topic, + final List resourceDataBatchRequest) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } -- cgit 1.2.3-korg