Impletended the updategroup(status) method in the API
This commit is contained in:
@ -39,12 +39,20 @@ public class APIController {
|
|||||||
|
|
||||||
@GetMapping("/updatedGroups/{status}")
|
@GetMapping("/updatedGroups/{status}")
|
||||||
@ApiOperation(value = "Gibt alle Gruppen zurück in denen sich etwas geändert hat")
|
@ApiOperation(value = "Gibt alle Gruppen zurück in denen sich etwas geändert hat")
|
||||||
public UpdatedGroupRequestMapper updateGroup(@ApiParam("Status des Anfragestellers") @PathVariable Long status) throws EventException, JsonProcessingException {
|
public UpdatedGroupRequestMapper updateGroup(@ApiParam("Status des Anfragestellers") @PathVariable Long status) throws EventException {
|
||||||
List<Event> events = eventService.getNewEvents(status);
|
List<Event> events = eventService.getNewEvents(status);
|
||||||
UpdatedGroupRequestMapper updatedGroupRequestMapper = APIFormatter.wrapp(eventService.getMaxEvent_id(), groupService.projectEventList(events));
|
UpdatedGroupRequestMapper updatedGroupRequestMapper = APIFormatter.wrapp(eventService.getMaxEvent_id(), groupService.projectEventList(events));
|
||||||
|
|
||||||
return updatedGroupRequestMapper;
|
return updatedGroupRequestMapper;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/getGroups/{teilnehme}")
|
||||||
|
@ApiOperation(value = "Gibt alle Gruppen zurück in denen sich ein Teilnehmer befindet")
|
||||||
|
public List<Long> getGroupsOfUser(@ApiParam("Der Teilnehmer") @PathVariable String userId) throws EventException {
|
||||||
|
List<Long> asd = new ArrayList<>();
|
||||||
|
|
||||||
|
return asd;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user