Skip to content

Commit

Permalink
Defined other needed controllers methods we will need in event contro…
Browse files Browse the repository at this point in the history
…ller
  • Loading branch information
ReallyWeirdCat committed Nov 26, 2024
1 parent f76b398 commit 599212e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,23 @@ public ResponseEntity<?> eventStudyGroups(Principal principal, @PathVariable Lon
return ResponseEntity.ok().body(studyGroups);
}

// TODO: implement getters of events for particular groups and particular time periods
@GetMapping("/event/studyGroup/{studyGroupId}")
public ResponseEntity<?> getEventsForStudyGroup(Principal principal, @PathVariable Long studyGroupId) {
// TODO: implementation
return ResponseEntity.ok().build();
}

@GetMapping("/event/studyGroup/{studyGroupId}/upcoming")
public ResponseEntity<?> getUpcomingEventsForStudyGroup(Principal principal, @PathVariable Long studyGroupId) {
// TODO: implementation
return ResponseEntity.ok().build();
}

@GetMapping("/event/studyGroup/{studyGroupId}/from/{from}/to/{to}")
public ResponseEntity<?> getEventsForStudyGroup(Principal principal, @PathVariable Long studyGroupId, @PathVariable Long from, @PathVariable Long to) {
// TODO: implementation
return ResponseEntity.ok().build();
}

@Autowired
public void setEventService(EventService eventService) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ public EventEntity createEventForStudyGroups(Principal principal, CreateEventFor
return eventEntity;
}

// TODO: implementation

@Override
public EventEntity modifyEvent(Principal principal, ModifyEventRequest request) {
// TODO: check permission
Expand Down

0 comments on commit 599212e

Please sign in to comment.