GET /tutor/reports/courses
Retrieve performance reports for all courses owned by the tutor.
Query Parameters:
interval: (optional) Filter by time interval (weekly, monthly, quarterly, yearly)
Response:
{
"courses": [
{
"id": "course_id",
"title": "Course Title",
"totalEnrollments": 100,
"totalPurchases": 80,
"rating": 4.5,
"engagement": 0.75
}
]
}GET /tutor/reports/courses/:id
Retrieve detailed performance report for a specific course.
Path Parameters:
id: Course ID
Query Parameters:
format: (optional) Response format ('json' or 'csv')
Response (JSON):
{
"title": "Course Title",
"description": "Course Description",
"price": 99.99,
"rating": 4.5,
"totalEnrollments": 100,
"completionRate": 75.5,
"revenue": 7999.20
}Response (CSV): Downloads a CSV file with the following fields:
- title
- description
- price
- rating
- totalEnrollments
- completionRate
- revenue
GET /tutor/reports/leaderboard
Retrieve a leaderboard based on selected metrics.
Query Parameters:
metric: (optional) Sort by metric (purchases, ratings, enrollments, engagement)limit: (optional) Number of results to return (default: 10)
Response:
{
"leaderboard": [
{
"id": "course_id",
"title": "Course Title",
"metricValue": 100
}
]
}