diff options
author | raviteja.karumuri <raviteja.karumuri@est.tech> | 2023-05-24 18:23:38 +0100 |
---|---|---|
committer | raviteja.karumuri <raviteja.karumuri@est.tech> | 2023-06-01 12:08:20 +0100 |
commit | 7272f11fa4a3876cf61451a21916a7244c2d045b (patch) | |
tree | 18be57cf71e4877da7df5f4b33c011645ad3b60d /src/main | |
parent | 4679c1c64a88ee65b0f86e14be32a8b82f8da469 (diff) |
DMI-Plugin : Update batch endpoint (move url param into rest body)
Issue-ID: CPS-1636
Signed-off-by: raviteja.karumuri <raviteja.karumuri@est.tech>
Change-Id: I787be1be899a69c0972ccfd17016e67eaf8a771a
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/onap/cps/ncmp/dmi/rest/controller/DmiRestController.java | 13 |
1 files changed, 7 insertions, 6 deletions
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<Void> getResourceDataByCmHandles(final String datastoreName, final String topic, - final Object body) { + public ResponseEntity<Void> getResourceDataForCmHandleBatch(final String requestId, final String topic, + final List<ResourceBatchRequest> resourceDataBatchRequest) { return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED); } |