PUT /<library>/patrons/me/devices
Request
{
"device_token": <FCM token>,
"token_type": "FCMAndroid" or "FCMiOS"
}
Response
201 Created - Newly created
200 OK - Existing patron-token
400 Bad Input - Invalid token type
DELETE /<library>/patrons/me/devices
Request
{
"device_token": <FCM token>,
"token_type": "FCMAndroid" or "FCMiOS"
}
Response
204 No Content - Deleted the token
404 Not Found - No such patron-token was found
GET /<library>/patrons/me/devices?device_token=<FCM token>
Response
200 OK - Patron-token found
{
"device_token": <FCM token>,
"token_type": "FCMAndroid" or "FCMiOS"
}