-
Sub-task
-
Resolution: Done
-
Medium
-
None
-
None
- POST
{ <data> }
A/C
Update yaml to use uri
/ncmp/v1/ch/<cmHandle>/data/ds/ncmp-datastore:running/{resourceIdentifier}
Set operation type as create
Get dmi service name using cmhandle from dmi registry (cps-core)
Get the cm handle properties from dmi registry
Prepare the URL for dmi using the dmi service name
add the dmi properties in the body (see example below)
Use whatever data type that has come from the parent request
{ “operation”: “create”, // Valid operations are: “create”, “read”, “update” and “delete”. // For update, replace and patch is distinguished by the HTTP method (PUT or PATCH). “dataType”: “<mimeType>”, // Indicates format for the embedded data. // Shall use MIME type syntax, e g “application/yang-data+json”. // required for create and update operations. Optional filter-data for read-operations “data”: { // Embedded data. Must be valid JSON object. <use data from the request> // required for create and update operations. Optional filter-data for read-operations }, “cmHandleProperties”: { // Additional properties for CM handle previously added by DMI plugin and stored in NCMP. <get cm handle properties> } }
For unsuccessful response create a custom exception
For successful responses return it to the user
- mentioned in
-
Page Loading...