Hi,
I’m using Management API to retrieve devise credentials(/api/v2/device-credentials).
To handle paging, I use include_totals parameter.
Then I noticed a discrepancy in the behavior of returning an empty return value due to a difference in the type parameter of the request.
For example, the return value of an actual request is as follows.
(Request parameters other than type were the same as these.)
page: 0
per_page: 100
include_totals: true
fields: id,client_id
user_id: {user_id}
client_id:
When requesting with rotating_refresh_token type
{
"start": 0,
"limit": 100,
"device_credentials": []
}
When requesting with public_key
{
"total": 0,
"start": 0,
"limit": 100,
"device_credentials": []
}
In this case, total was returned.
Since the total parameter is requested, I think it would be preferable to return the total regardless of the contents of the returned value in the case of rotating_refresh_token as well.
