THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- If field allowMerge is false, return error.
- If field allowMerge is true. The newly added item and the existing item will be merged into one. Regarding the 3 fields, the merging algorithm:
- For action, merge(MARK_BLOCKED, MARK_BLOCKED_AND_EVACUATE_TASKS) = MARK_BLOCKED_AND_EVACUATE_TASKS
- For endTimestamp, merge(endTimestampA, endTimestampB) = max(endTimestampA, endTimestampB)
- For cause, we will combine all causes, merge("causeA", "causeB") = "causeA,causeB". If these two causes are the same, we will keep only one.
Response
- If no conflict, the response code is 201(CREATED), the response body is the added items.
- If conflict occurs:
- If allowMerge is false, the response code is 409(CONFLICT), and returns error.
- if allowMerge is true, the response code is 202(ACCEPTED), the response body is the merged resultitems.
Remove
DELETE: http://{jm_rest_address:port}/blocklist/node/<id>
...