GET /api/upcoming-classes
Fetches all virtual classes that are scheduled to start in the future, ordered by start time in ascending order.Authentication
This endpoint does not require authentication.Query Parameters
This endpoint does not accept any query parameters.Response
Array of upcoming virtual class objects
Example Request
Example Response
Filtering Logic
The endpoint returns classes where:startTimeis greater than or equal to the current date/time- Results are ordered by
startTimein ascending order (earliest first)
Use Cases
- Display available upcoming classes on a public calendar
- Show students what classes are available to join
- Allow administrators to view the schedule of future classes
- Enable users to browse classes by type and availability
Notes
- The response includes classes with any status (
scheduled,pending, etc.) - Past classes (where
startTimeis before the current time) are automatically filtered out - The response may be empty if no upcoming classes are scheduled
- Class capacity and current participant information can be used to determine if a class is full