Error fix

This commit is contained in:
BuildTools
2020-11-05 14:32:42 +01:00
parent e0df090a0e
commit 228969efce
5 changed files with 6 additions and 6 deletions

View File

@ -36,7 +36,7 @@ public class GroupController {
@GetMapping("/course/{id}")
@ApiOperation(value = "Return list of lectures and classes (if present) given course")
public ResponseEntity<GetCourseGroupsResponse<? extends DefaultGroupResponse>> getCourses(
@PathVariable(name = "id") @ApiParam(value = "Id of course") Long id,
@PathVariable(name = "id") Long id,
@RequestParam(name = "capacity", defaultValue = "true") @ApiParam(value = "Boolean if we want to have capacity field in response") Boolean capacity) {
List<Groups> groups = this.groupService.getGroupsByCourse(id);
if (capacity) {