As discussed in class, call information should be published in the topic:
call/{call-id}/data
This can be directly from the call serializer. Ambulances get notified of the call by publishing to:
ambulance/{ambulance-id}/call/{call-id}/data
for each ambulance involved in the call. Users get access to the call topic if they can read/write on an ambulance. Information published here could be the one from the CallTimes serializer.
I add call in default setting and user profile, and the topic call/{call-id}/data in the wiki based on what we have right now for the call function. Please let me know if I make any mistake.
As discussed in class, call information should be published in the topic:
call/{call-id}/data
This can be directly from the call serializer. Ambulances get notified of the call by publishing to:
ambulance/{ambulance-id}/call/{call-id}/data
for each ambulance involved in the call. Users get access to the call topic if they can read/write on an ambulance. Information published here could be the one from the CallTimes serializer.
Clients modify the call times by publishing to
user/{username}/client/{client-id}/ambulance/{ambulance-id}/call/{call-id}/data
Permissions are implemented in login.views.