diff options
author | 2023-04-05 12:57:14 +0200 | |
---|---|---|
committer | 2023-04-05 12:57:35 +0200 | |
commit | becc9cee3a19f4c3d34d3cd6c564754c7c70861c (patch) | |
tree | b52e4ea8d77abc912d12467309094fe518c99a04 /dmi-plugin-stub/mappings | |
parent | dd3643411ed8bb581a3147e07606919c3b1675d3 (diff) |
Expose endpoint to accept bulk request
- added wiremock mapping for testing/demo
Issue-ID: CPS-1555
Change-Id: I82af6c43e80a346efcd84aae8945572aa37a6875
Signed-off-by: leventecsanyi <levente.csanyi@est.tech>
Diffstat (limited to 'dmi-plugin-stub/mappings')
-rw-r--r-- | dmi-plugin-stub/mappings/batchCmHandles.json | 13 | ||||
-rw-r--r-- | dmi-plugin-stub/mappings/module.json | 13 | ||||
-rw-r--r-- | dmi-plugin-stub/mappings/moduleResources.json | 13 |
3 files changed, 39 insertions, 0 deletions
diff --git a/dmi-plugin-stub/mappings/batchCmHandles.json b/dmi-plugin-stub/mappings/batchCmHandles.json new file mode 100644 index 000000000..2018516b4 --- /dev/null +++ b/dmi-plugin-stub/mappings/batchCmHandles.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "urlPattern": "/dmi/v1/ch/batch/data/ds/.*" + }, + "response": { + "status": 200, + "bodyFileName": "batchResponse.json", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/dmi-plugin-stub/mappings/module.json b/dmi-plugin-stub/mappings/module.json new file mode 100644 index 000000000..a1b35ba13 --- /dev/null +++ b/dmi-plugin-stub/mappings/module.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "urlPattern": "/dmi/v1/ch/.*/modules" + }, + "response": { + "status": 200, + "bodyFileName": "moduleResponse.json", + "headers": { + "Content-Type": "application/json" + } + } +} diff --git a/dmi-plugin-stub/mappings/moduleResources.json b/dmi-plugin-stub/mappings/moduleResources.json new file mode 100644 index 000000000..4efb9b088 --- /dev/null +++ b/dmi-plugin-stub/mappings/moduleResources.json @@ -0,0 +1,13 @@ +{ + "request": { + "method": "POST", + "urlPattern": "/dmi/v1/ch/.*/moduleResources" + }, + "response": { + "status": 200, + "bodyFileName": "moduleResourcesResponse.json", + "headers": { + "Content-Type": "application/json" + } + } +} |