GET /routines/:id/favorited_by

GET /products/{id_or_alias}/favorited_by

Get users that favorited specified product.

Path parameters

  • id integer(int64) Required

    ID of the resource to fetch

Query parameters

  • page integer

    requested page number

    Minimum value is 1. Default value is 1.

  • page_size integer

    requested page size

    Minimum value is 1, maximum value is 100. Default value is 12.

Responses

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"
  }
}