summaryrefslogtreecommitdiffstats
path: root/dmi-plugin-stub
diff options
context:
space:
mode:
authorsourabh_sourabh <sourabh.sourabh@est.tech>2023-05-09 14:34:59 +0100
committersourabh_sourabh <sourabh.sourabh@est.tech>2023-05-25 15:29:37 +0100
commitf232f30bede7d35c71db2d0201695a1416e37323 (patch)
tree9ed0a5a32d3ca34934b0f2622984a562e73fd8f2 /dmi-plugin-stub
parente9ac24f8ad866f81d1ceace6d0b8f010930e9f74 (diff)
NCMP: Update existing Batch endpoint (Moving url param into rest body)
- NCMP batch endpoint is updated to accept details into request payload. - Removed unused code of previous impl. Issue-ID: CPS-1635 Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech> Change-Id: Ic290b750557da06b861c5a4a9bb12debc495ec2e Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Diffstat (limited to 'dmi-plugin-stub')
-rw-r--r--dmi-plugin-stub/files/batchResponse.json4
-rw-r--r--dmi-plugin-stub/mappings/batchCmHandles.json2
2 files changed, 3 insertions, 3 deletions
diff --git a/dmi-plugin-stub/files/batchResponse.json b/dmi-plugin-stub/files/batchResponse.json
index b0615df945..9181b64f21 100644
--- a/dmi-plugin-stub/files/batchResponse.json
+++ b/dmi-plugin-stub/files/batchResponse.json
@@ -2,8 +2,8 @@
"eventId": "4cb32729-85e3-44d1-aa6e-c923b9b059a5",
"eventCorrelationId": "68f15800-8ed4-4bae-9e53-27a9e03e1911",
"eventTime": "2023-03-28T14:29:23.876+0000",
- "eventType": "org.onap.cps.ncmp.event.model.BulkResponseEvent",
- "eventSchema": "urn:cps:org.onap.cps.ncmp.event.model.BulkResponseEvent",
+ "eventType": "org.onap.cps.ncmp.event.model.BatchResponseEvent",
+ "eventSchema": "urn:cps:org.onap.cps.ncmp.event.model.BatchResponseEvent",
"eventSchemaVersion": "v1",
"event": {
"payload": [
diff --git a/dmi-plugin-stub/mappings/batchCmHandles.json b/dmi-plugin-stub/mappings/batchCmHandles.json
index 5f290cd47d..851959bf92 100644
--- a/dmi-plugin-stub/mappings/batchCmHandles.json
+++ b/dmi-plugin-stub/mappings/batchCmHandles.json
@@ -1,7 +1,7 @@
{
"request": {
"method": "POST",
- "urlPattern": "/dmi/v1/batch/data/ds/.*"
+ "urlPattern": "/dmi/v1/data?.*"
},
"response": {
"status": 200,