1

Impletended the updategroup(status) method in the API

This commit is contained in:
LukasEttel
2020-03-12 16:27:52 +01:00
parent 9795c10c14
commit 4e874bf6e2

View File

@ -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;
}
} }