curl -X GET https://api.chessplay.io/api/v1/classrooms/ \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
import requests
headers = {"Authorization": "Bearer YOUR_ACCESS_TOKEN"}
response = requests.get(
"https://api.chessplay.io/api/v1/classrooms/",
headers=headers
)
classrooms = response.json()
const response = await fetch('https://api.chessplay.io/api/v1/classrooms/', {
headers: { 'Authorization': 'Bearer YOUR_ACCESS_TOKEN' }
});
const classrooms = await response.json();
{
"count": 10,
"next": "https://api.chessplay.io/api/v1/classrooms/?page=2",
"previous": null,
"results": [
{
"id": 1,
"name": "Beginner Chess",
"description": "Introduction to chess",
"coach": {
"id": 5,
"username": "coach_john",
"first_name": "John",
"last_name": "Doe"
},
"students": [...],
"start_time": "2024-01-20T10:00:00Z",
"end_time": "2024-01-20T11:00:00Z",
"created": "2024-01-15T10:30:00Z"
}
]
}
Classrooms
List Classrooms
Retrieve a paginated list of all classrooms
GET
/
api
/
v1
/
classrooms
/
curl -X GET https://api.chessplay.io/api/v1/classrooms/ \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
import requests
headers = {"Authorization": "Bearer YOUR_ACCESS_TOKEN"}
response = requests.get(
"https://api.chessplay.io/api/v1/classrooms/",
headers=headers
)
classrooms = response.json()
const response = await fetch('https://api.chessplay.io/api/v1/classrooms/', {
headers: { 'Authorization': 'Bearer YOUR_ACCESS_TOKEN' }
});
const classrooms = await response.json();
{
"count": 10,
"next": "https://api.chessplay.io/api/v1/classrooms/?page=2",
"previous": null,
"results": [
{
"id": 1,
"name": "Beginner Chess",
"description": "Introduction to chess",
"coach": {
"id": 5,
"username": "coach_john",
"first_name": "John",
"last_name": "Doe"
},
"students": [...],
"start_time": "2024-01-20T10:00:00Z",
"end_time": "2024-01-20T11:00:00Z",
"created": "2024-01-15T10:30:00Z"
}
]
}
Authentication
string
required
Bearer token for authentication
Query Parameters
string
Search classrooms by name or description
integer
Page number for pagination
curl -X GET https://api.chessplay.io/api/v1/classrooms/ \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
import requests
headers = {"Authorization": "Bearer YOUR_ACCESS_TOKEN"}
response = requests.get(
"https://api.chessplay.io/api/v1/classrooms/",
headers=headers
)
classrooms = response.json()
const response = await fetch('https://api.chessplay.io/api/v1/classrooms/', {
headers: { 'Authorization': 'Bearer YOUR_ACCESS_TOKEN' }
});
const classrooms = await response.json();
{
"count": 10,
"next": "https://api.chessplay.io/api/v1/classrooms/?page=2",
"previous": null,
"results": [
{
"id": 1,
"name": "Beginner Chess",
"description": "Introduction to chess",
"coach": {
"id": 5,
"username": "coach_john",
"first_name": "John",
"last_name": "Doe"
},
"students": [...],
"start_time": "2024-01-20T10:00:00Z",
"end_time": "2024-01-20T11:00:00Z",
"created": "2024-01-15T10:30:00Z"
}
]
}
Was this page helpful?
⌘I

