GET /routines/:id/favorited_by
Get users that favorited specified routine.
Path parameters
-
ID of the resource to fetch
GET /routines/{id}/favorited_by
curl \
-X GET https://api.cosmily.com/api/v1/routines/{id}/favorited_by \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": [
{
"id": 42,
"username": "string",
"user_type": "string",
"last_active": "string",
"profile_picture": {
"id": 42,
"user_id": 42,
"image": "string",
"url": "string"
}
}
],
"links": {
"first": "string",
"last": "string",
"prev": "string",
"next": "string"
}
}
Response examples (200)
{
"data": [
{
"id": 42,
"username": "string",
"user_type": "string",
"last_active": "string",
"profile_picture": {
"id": 42,
"user_id": 42,
"image": "string",
"url": "string"
}
}
],
"links": {
"first": "string",
"last": "string",
"prev": "string",
"next": "string"
}
}