This API is used to get the status of a broadcast from UID and device ID
Service URL: GET /broadcast/{broadcastID}/{deviceId}
Request Headers:
Basic authentication
Path parameters
broadcastID (required)
deviceId (required)
Response Body:
itemsAffected Integer format: int32
lastUpdated Date format: date-time
status Integer format: int32
Remarks
Get the status of a broadcast from UID
Scenarios:
# | Scenario | Outcome | Expected Behavior | Status Code | Response |
---|---|---|---|---|---|
1 | Request with no/wrong authorization header | Fail | Response contains error message | 401 Unauthorized | Unauthorized |
2 | Request with wrong UID | Fail | Response contains error message | 500 Internal Server Error | Error processing request |
3 | Request with wrong device ID | Fail | Response contains error message | 500 Internal Server Error | Error processing request |
4 | Valid request | Success | Response contains device broadcast information | 200 OK | Refer to table below |
Example Response
{
"itemsAffected": 0,
"lastUpdated": 1628658383000,
"status": 4
}