Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

JSON Viewer
width500
height400
{
  "dmiPlugin": "my-dmi-plugin",
  "dmiDataPlugin": "my-dmi-data-plugin",
  "dmiModelPlugin": "my-dmi-model-plugin",
  "createdCmHandles": [
    {
      "cmHandle": "my-cm-handle",
      "cmHandleProperties": {
        "additionalProp1": "my-property",
        "additionalProp2": "my-property",
        "additionalProp3": "my-property"
      },
      "publicCmHandleProperties": {
        "additionalProp1": "my-property",
        "additionalProp2": "my-property",
        "additionalProp3": "my-property"
      }
    }
  ],
  "updatedCmHandles": {
    "cmHandle": "my-cm-handle",
    "cmHandleProperties": {
      "add-my-property": "add-property",
      "update-my-property": "updated-property",
      "delete-my-property": null
    },
    "publicCmHandleProperties": {
      "add-my-property": "add-property",
      "update-my-property": "updated-property",
      "delete-my-property": null
    }
  },
  "removedCmHandles": [
    "[\"my-cm-handle1\",\"my-cm-handle2\",\"my-cm-handle3\"]"
  ]
}


Proposed Changes

ScenarioEndpointCurrent Response CodeProposed Response CodeComments
Create CM HandlePOST /v1/ch201 (Created)200 ( OK )
Update CM HandlePOST /v1/ch201 (Created) 
204
200 (
NO CONTENT
OK )
Remove CM HandlePOST /v1/ch201 (Created) 
204
200 (
NO CONTENT
OK
Create ,Update or Remove CM Handle in the same requestPOST /v1/ch201 (Created) 200 ( OK ) 


As we are using a common payload to handle the Create , Update and Remove operation hence there is a need to streamline the response code in case of successful execution of the request.

...