...
- Properties are removed by setting the value to null in the update registration request. (Only applicable when updatedCmHandles json tag is present)
- Both Additional and Public properties should be taken care off as part of the update.
Analysis
Proposal
Scenario | URI | Payload/Input Request | Suggested Code / Changes | Comments | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Request to create the cmHandle | POST {ncmpRoot}/ncmpInventory/v1/ch/ |
| No Impact. It will create the cmHandle. | Existing behaviour. | ||||||||
Request has updatedCmHandles tag present in the incoming request. | POST {ncmpRoot}/ncmpInventory/v1/ch/ |
case-1 : Property which needs to be removed must be explicitly set to null case-2: Property which needs to be updated can have the new values in the incoming request. case-3: Property which needs to be added can be present in the form of "name" : "value" as seen above. |
| |||||||||
Requirement | URI | Comment | ||||
---|---|---|---|---|---|---|
NCMP-008 Register or update public cmhandle properties | {ncmpRoot}/ncmpInventory/v1/ch/ | Scenario : DMI notifies NCMP of new, updated or removed cmhandles Request Body
json attributes:
|
...