GET /routines/:id/favorited_by
Get users that favorited specified product.
Path parameters
-
ID of the resource to fetch
GET /products/{id_or_alias}/favorited_by
curl \
-X GET https://api.cosmily.com/api/v1/products/{id_or_alias}/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"
}
}