camaraproject / DeviceStatus

Repository to describe, develop, document and test the Device Status API family
Apache License 2.0
11 stars 31 forks source link

How to respond if queried device does not have an active session? #138

Open gmuratk opened 2 months ago

gmuratk commented 2 months ago

Problem description

There may be cases where the queried device for connectivity or roaming does not have an active session. An appropriate API response needs to be agreed to ensure same behavior by multiple API providers. Possible evolution

Alternative solution

Additional context

see: https://github.com/camaraproject/Commonalities/issues/127#issuecomment-2045370296

akoshunyadi commented 2 months ago

For connectivity we have the response value NOT_CONNECTED. For roaming status the last known status is returned. So if the device changes to roaming and then it will be switched off, then the expected result is roaming=true.

gmuratk commented 2 months ago

Thanks @akoshunyadi. I think it will be good to document the expected behavior for the roaming case. We probably want to avoid API consumers mistakenly rely on retrieve-roaming-status response to infer device's connectivity status.