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 Groups API #36

Merged
merged 14 commits into from
Oct 30, 2023
Merged

Add Student Groups API #36

merged 14 commits into from
Oct 30, 2023

Conversation

romandykyi
Copy link
Owner

This pull request adds student group management endpoints. This change allows to add and remove students from groups.

Endpoints added

  • POST api/groups/{groupId:int}/students
  • DELETEapi/groups/{groupId:int}/students/{studentId}

The necessary methods in the GroupsService were added to support these endpoints.

Integration tests and unit tests for all changes were added.

Changes made
* Return type for the `IGroupsService.AddStudent` method was changed to `AddStudentToGroupResult`
* Return type for the `IGroupsService.RemoveStudent` method was changed to `bool`
* Replaced `StudentGroupDto` with arguments `studentId` and `groupId` for `IGroupsService`.
* Added `StudentGroupCreateDto`

This changes will help to properly implement POST and DELETE methods.
@romandykyi romandykyi merged commit 18c060e into master Oct 30, 2023
1 check passed
@romandykyi romandykyi deleted the add-student-groups-api branch November 2, 2023 19:46
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.

1 participant