edx-platform
edx-platform copied to clipboard
Enrollments API - Lists
The Membership view is being split into 2 screens - Enrollments and Course Team. The Enrollments screen displays 2 tables and has actions that will update those tables. This sub-issue will focus on displaying the lists for those tables and allowing for search functionality and pagination for those lists.
- List all enrollments (learners / students)
- List all beta testers
- existing endpoint POST
/courses/{course_id}instructor/api/list_course_role_memberswill return an object containing the list ofrolenamefor a specific course:
- existing endpoint POST
{
"course_id": "some/course/id",
"staff": [
{
"username": "staff1",
"email": "[email protected]",
"first_name": "Joe",
"last_name": "Shmoe",
}
]
}
where staff in the above can be any rolename of ['instructor', 'staff', 'beta', 'ccx_coach'] which is included in the request payload. In our case, we want to send rolename=beta.
- Currently this API does not support search or pagination.
Image below referenced from: https://github.com/openedx/frontend-app-instruct/issues/10