GET /contests/:week_number

GET /contests/{week_number}

Get contests by week number

Path parameters

Responses

GET /contests/{week_number}
curl \
 -X GET https://api.cosmily.com/api/v1/contests/{week_number} \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": {
    "id": 42,
    "started_at": "string",
    "ended_at": "string",
    "week_number": 42,
    "winning_tickets": [
      42
    ],
    "prizes": [
      "string"
    ]
  }
}
Response examples (200)
{
  "data": {
    "id": 42,
    "started_at": "string",
    "ended_at": "string",
    "week_number": 42,
    "winning_tickets": [
      42
    ],
    "prizes": [
      "string"
    ]
  }
}