We will provide the ability for a Vendor to “subscribe” to certain events that happen in SWIMS.
{
"eventSequence": 1234,
"eventType": "Member Registration Complete"
"clubId": "EFD6F74613444017B0DB1884AADBC117"
"eventData": {
"vendorId": "DB1884AADBC117"
"eventDataContextName": "string"
}
After receiving the above event.GET: /swims/getMemberDetails/{clubId}/?memberId={memberId}
{
"eventSequence": 1234,
"eventType": "Member Updated"
"clubId": "EFD6F74613444017B0DB1884AADBC117"
"eventData": {
"eventData": {
"vendorId": "DB1884AADBC117"
"eventDataContextName": "string"
}
After receiving the above event.GET: /swims/getMemberDetails/{clubId}/?memberId={memberId}
A special set of events happens when a member transfers clubs.
GET: /swims/getMemberDetails/{clubId}/?memberId={memberId}
GET: /swims/getMemberDetails/{clubId}/?memberId={memberId}
{
"eventSequence": "002",
"eventType": "Member Updated"
"clubId": "EFD6F74613444017B0DB1884AADBC117"
"eventData": {
"vendorId": "DB1884AADBC117"
"eventDataContextName": "string"
}
After receiving the above event.GET: /swims/getVendorClubs/vendor/{vendorId}
GET: /swims/getMemberDetails/{clubId}