List Course
Query parameters
-
Global search
-
App\Classes\Core\Models\Course Filters: 0, 1, 2, 3, 4
Hide where attributes Show where attributes object
-
App\Classes\Core\Models\Course Sorting by name, startTime
-
Determines whether to return only archived records in the response.
Responses
-
Paginated response
Hide response attributes Show response attributes object
-
Class with related details schema
Hide data attributes Show data attributes object
-
aggregateId
-
Class schema
Hide entity attributes Show entity attributes object
-
id
-
Company ID
-
Season ID
-
Dance
-
Values are
monday,tuesday,wednesday,thursday,friday,saturday, orsunday. -
Start time
-
Duration in minutes
-
Price
-
Image
-
Description
-
Room ID
-
Staff ID
-
Min age in months
-
Max age in months
-
Capacity
-
Values are
red,orange,yellow,lime,green,turquoise,sky,blue,purple,pink_purple,pink, orgrey. -
Archived at date
-
Deleted at date
-
-
Class schema
Hide settings attributes Show settings attributes object
-
Class stats schema
Hide stats attributes Show stats attributes object
-
Class ID
-
Enrolment stats schema
-
Waiting list stats schema
-
Trial stats schema
-
-
-
Pagination schema
-
-
Not authorized
curl \
--request GET 'https://classmanager.test/v1/courses/'
{
"data": [
{
"aggregateId": "cls_xxxxxxxxxxx",
"entity": {
"id": "cls_123123123123",
"companyId": "co_123123123123",
"seasonId": "sea_123123123123",
"name": "All That Jazz",
"dayOfWeek": "monday",
"startTime": "10:00",
"durationInMinutes": 60,
"price": 50,
"image": "https://",
"description": "Description",
"roomId": "rm_123123123123",
"staffId": "stf_123123",
"minAgeMonths": 2,
"maxAgeMonths": 5,
"capacity": 20,
"colorId": "red",
"archivedAt": "2023-12-05 14:30:41",
"deletedAt": "2023-12-05 14:30:41"
},
"settings": {
"id": "clstn_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"classId": "cls_xxxxxxxxxxxxxxxx",
"portalEnrolmentEnabled": true,
"discountable": true,
"trialsEnabled": false,
"taxRateId": "tax_xxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"stats": {
"classId": "cls_xxxxxxxxx",
"enrolments": {
"currentCount": 10,
"upcomingCount": 2,
"pastCount": 4
},
"waitingLists": {
"totalCount": 4
},
"trials": {
"totalCount": 10,
"upcomingCount": 10
}
}
}
],
"pagination": {
"total": 15,
"count": 10,
"perPage": 10,
"currentPage": 1,
"totalPages": 2
}
}
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}