Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add student program endpoint #6080

Merged

Conversation

Aminehassou
Copy link
Contributor

What this PR does

This PR adds new JSON endpoints for the dashboard. These endpoints are needed to add new functionality to the impact-visualizer project.

The added endpoints:
/courses/classroom_program_students.json (returns all students and the courses they belong to from the Wikipedia Student Program)
/courses/classroom_program_students_and_instructors.json (returns all students, instructors and the courses they belong to from the Wikipedia Student Program)
/courses/fellows_cohort_students.json (returns all students and the courses they belong to from the Scholars and Scientists Program)
/courses/fellows_cohort_students_and_instructors.json (returns all students, instructors and the courses they belong to from the Scholars and Scientists Program)

@ragesoss
Copy link
Member

Can you include examples of what the JSON output for each of these new endpoints looks like?

@Aminehassou
Copy link
Contributor Author

Can you include examples of what the JSON output for each of these new endpoints looks like?

I made a quick change to filter out some unnecessary data, this is what the json data looks like now:
image

the returned data structure for the "and_instructors" endpoints are the same except for an added "instructors" field that has the same user fields as the "students" field

@ragesoss ragesoss merged commit 3d912ba into WikiEducationFoundation:master Dec 31, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants