Club Preview
GET /clubs/{clubID}/preview : Preview a club before approving it
Example Request
This is an admin protected route, a valid admin JWT is required in the header field
Header
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1OTU4Mjg1MDQsImlhdCI6IjIwMjAtMDctMjdUMDE6MzY6NDQuNDYwMTkyOS0wNDowMCIsInN1YiI6ImFkbWluIn0.jfC8lgQEcEQxUaG0mNibzeX5BD1uUQ7wQdM0LhxHrBQ
Possible Responses
Immediate Success
{
"code": 1,
"message": "club found",
"data": {
"id": 50,
"name": "Super CLub",
"email": "SuperClub@email.com",
"bio": "Super!",
"size": 20,
"tags": [],
"hosts": []
}
}
Failure
{
"code": -1,
"message": "sorry, this club is already active",
"data": {}
}
{
"code": -1,
"message": "club not found",
"data": {}
}
{
"code": -1,
"message": "please contact an administrator",
"data": {}
}