GET /contests/most_liked_routine/leaderboard
Fetch top ranked most liked routines for contest
GET /contests/most_liked_routine/leaderboard
curl \
-X GET https://api.cosmily.com/api/v1/contests/most_liked_routine/leaderboard \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": {
"contest_week_number": 42,
"contest_started_at": "string",
"leaderboard": [
{
"rank": 42,
"score": 42,
"routine": {
"id": 42,
"user_id": 42,
"title": "string",
"routine_type": "string",
"status": "string",
"created_at": "string",
"updated_at": "string",
"routine_step_ids": [
42
],
"routine_step_order": [
42
],
"favorite_count": 42,
"routine_steps": [
{
"id": 42,
"routine_id": 42,
"product_id": 42,
"product_tutorial_id": 42,
"product_category_id": 42,
"product_pitch_id": 42,
"status": "string",
"created_at": "string",
"updated_at": "string"
}
]
}
}
]
}
}
Response examples (200)
{
"data": {
"contest_week_number": 42,
"contest_started_at": "string",
"leaderboard": [
{
"rank": 42,
"score": 42,
"routine": {
"id": 42,
"user_id": 42,
"title": "string",
"routine_type": "string",
"status": "string",
"created_at": "string",
"updated_at": "string",
"routine_step_ids": [
42
],
"routine_step_order": [
42
],
"favorite_count": 42,
"routine_steps": [
{
"id": 42,
"routine_id": 42,
"product_id": 42,
"product_tutorial_id": 42,
"product_category_id": 42,
"product_pitch_id": 42,
"status": "string",
"created_at": "string",
"updated_at": "string"
}
]
}
}
]
}
}