StudentGroup endpoint: getGroupsPerPerson
This is about two endpoints: getting a group of a user in specified module and getting all groups of a user per specified course edition. I wonder if maybe the first endpoint can't be reused for the second one, just iterating over all the modules.
Endpoint (Method): getGroupPerPerson
Params |
Type |
Comment |
Input |
Long |
moduleId |
|
Long |
personId |
Output |
GroupOverViewDTO |
group |
What does this method do?
- Here I would possibly get all the groups in a module (already exists,
getAllGroupsInModule
in StudentGroupController
) and then filter out only those that have specified person as a member.
Endpoint (Method): getAllGroupsPerPerson
Params |
Type |
Comment |
Input |
Long |
courseId |
|
Long |
personId |
Output |
List |
groups |
What does this method do?
- Possibly get all the modules of a course edition (
getEditionModules
in `EditionController), and for each module run the endpoint above?