For every single of operation on the entities use the following templates and provide sample REST notification POST calls.
It is assumed that the Pub/Sub uses the Register and UnRegister mechanisms described in the REST Guidelines reproduced below.
Description :
Sets the communication endpoint address the service instance must use to deliver information about its health state, execution state, failures and metrics. Subsequent POST calls will be rejected by the service if it does not support multiple listeners. In this case DELETE /api/hub/{id} must be called before an endpoint can be created again.
Behavior :
Returns HTTP/1.1 status code 409 if request is not successful.
REQUEST |
POST /customerManagement/customer/hub |
RESPONSE |
Status:201 |
REQUEST |
POST /customerManagement/customerAccount/hub |
RESPONSE |
Status:201 |
REQUEST |
POST /customerManagement/paymentMean/hub |
RESPONSE |
Status:201 |
DELETE customer hub
REQUEST |
DELETE /customerManagement/customer/hub/{id} |
RESPONSE |
Status:204 |
DELETE customer account hub
REQUEST |
DELETE /customerManagement/customerAccount/hub/{id} |
RESPONSE |
Status:204 |
DELETE payment mean hub
REQUEST |
DELETE /customerManagement/paymentMean/hub/{id} |
RESPONSE |
Status:204 |