Jira |
---|
server | ONAP Jira |
---|
columnIds | issuekey,summary,issuetype,created,updated,duedate,assignee,reporter,priority,status,resolution |
---|
columns | key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution |
---|
serverId | 425b2b0a-557c-3c0c-b515-579789cceedb |
---|
key | CPS-892 |
---|
|
References:
CM Handle Registration Request Payload
JSON Viewer |
---|
|
{
"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:
Scenario | Endpoint | Current Response Code | Proposed Response Code | Comments |
---|
Create CM Handle | POST /v1/ch | 201 (Created) | 200 ( OK ) |
|
Update CM Handle | POST /v1/ch | 201 (Created) | 200 ( OK ) |
|
Remove CM Handle | POST /v1/ch | 201 (Created) | 200 ( OK ) |
|
As we are using a common payload to handle the Create , Update and Remove operation hence there is a need to change the response code.