...
NCMP CMhandle registration endpoint receives multiple operations to create, update or delete cm-handles in a single request. As there are multiple operations, the endpoint response structure should be able to provide the status of all operations separately with consistent error-code to allow users to retrigger failed operations programmatically if possible.
Questions:
Question | Agreed Solution | Remarks | |
---|---|---|---|
1 | Are multiple operations for one cm-handle is considered invalid input? | ||
2 |
Response Structure
HttpStatus
...
The error can be due to client input and they should try not to
Input Issues
- If the DMIService does not match with dmiservice of cmhandle ?
- Multiple operations for a single cm-handle:
- If not allowed: Throw the error; it enables us to process them parallelly for better performance.
- If allowed:
- Which operation type has higher precedence
- create → update → delete:
- delete → create → update: It will help us to handle the case where the user wants to recreate the cmhandle
- Multiple In within the same operation type
- create → Take the last one and show success or take the first one and let others fail.
- update → Process them sequentially because the update can be partial and order may matter here.
- delete → Process only once
- Which operation type has higher precedence
- Input is not in the expected format: Reject the request
...