logs
This commit is contained in:
@ -64,8 +64,8 @@ public class GroupController {
|
||||
@PutMapping("/{id}/capacity")
|
||||
@ApiOperation(value = "Change capacity of given group. You need to provide DEANERY token to be ale to change capacity")
|
||||
public ResponseEntity<String> updateCapacity(
|
||||
@PathVariable(name = "id") @ApiParam(value = "id of group to change capacity") Long id,
|
||||
@RequestParam(name = "newcapacity") @ApiParam(value = "capacity to be set") int newcapacity) {
|
||||
@PathVariable(name = "id", required = true) @ApiParam(value = "id of group to change capacity") Long id,
|
||||
@RequestParam(name = "newcapacity", required = true) Integer newcapacity) {
|
||||
final Groups group = this.groupService.getGroupById(id).get();
|
||||
if (group == null) {
|
||||
return new ResponseEntity<>("Given group doens't exist", HttpStatus.NOT_FOUND);
|
||||
|
Reference in New Issue
Block a user