diff options
Diffstat (limited to 'postman-collections/DMI Stub.postman_collection.json')
-rw-r--r-- | postman-collections/DMI Stub.postman_collection.json | 161 |
1 files changed, 161 insertions, 0 deletions
diff --git a/postman-collections/DMI Stub.postman_collection.json b/postman-collections/DMI Stub.postman_collection.json new file mode 100644 index 0000000000..fe7250f7db --- /dev/null +++ b/postman-collections/DMI Stub.postman_collection.json @@ -0,0 +1,161 @@ +{ + "info": { + "_postman_id": "4baf7902-0f1e-49a9-9c6a-f68f412240af", + "name": "DMI Stub", + "description": "A collection of the DMI Stub endpoints.", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "17907116" + }, + "item": [ + { + "name": "Execute a data operation for group of cm handle ids by supplied operation details", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{ \"operations\":\n [\n {\n \"resourceIdentifier\": \"some resource identifier\",\n \"datastore\": \"ncmp-datastore:passthrough-operational\",\n \"options\": \"some option\",\n \"operationId\": \"12\",\n \"cmHandles\": [\n {\n \"id\": \"cmHandle123\",\n \"cmHandleProperties\": {\n \"myProp\": \"some value\",\n \"otherProp\": \"other value\"\n }\n },\n {\n \"id\": \"cmHandle123\",\n \"cmHandleProperties\": {\n \"myProp\": \"some value\",\n \"otherProp\": \"other value\"\n }\n }\n ],\n \"operation\": \"read\"\n }\n ]\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{DMI_HOST}}:{{DMI_PORT}}/dmi/v1/data?topic=ncmp-async-m2m&requestId=4753fc1f-7de2-449a-b306-a6204b5370b33", + "protocol": "http", + "host": [ + "{{DMI_HOST}}" + ], + "port": "{{DMI_PORT}}", + "path": [ + "dmi", + "v1", + "data" + ], + "query": [ + { + "key": "topic", + "value": "ncmp-async-m2m" + }, + { + "key": "requestId", + "value": "4753fc1f-7de2-449a-b306-a6204b5370b33" + } + ] + } + }, + "response": [] + }, + { + "name": "Retrieve module resources for one or more modules", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{DMI_HOST}}:{{DMI_PORT}}/dmi/v1/ch/cm-bookStore/moduleResources", + "protocol": "http", + "host": [ + "{{DMI_HOST}}" + ], + "port": "{{DMI_PORT}}", + "path": [ + "dmi", + "v1", + "ch", + "cm-bookStore", + "moduleResources" + ] + } + }, + "response": [] + }, + { + "name": "Get all modules for given cm handle", + "protocolProfileBehavior": { + "disabledSystemHeaders": { + "accept": true + } + }, + "request": { + "method": "POST", + "header": [ + { + "key": "Accept", + "value": "application/json", + "type": "text" + } + ], + "body": { + "mode": "raw", + "raw": "{}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "http://{{DMI_HOST}}:{{DMI_PORT}}/dmi/v1/ch/cm-bookStore/modules", + "protocol": "http", + "host": [ + "{{DMI_HOST}}" + ], + "port": "{{DMI_PORT}}", + "path": [ + "dmi", + "v1", + "ch", + "cm-bookStore", + "modules" + ] + } + }, + "response": [] + } + ], + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "cpsr0cks!", + "type": "string" + }, + { + "key": "username", + "value": "cpsuser", + "type": "string" + } + ] + }, + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ] +}
\ No newline at end of file |