Closed pconrad closed 3 years ago
There is an existing endpoint:
@GetMapping(value = "/api/public/officeHours", produces = "application/json") public ResponseEntity<String> getOfficeHours() throws JsonProcessingException { List<OnlineOfficeHours> officeHourList = officeHoursRepository.findAll(); ObjectMapper mapper = new ObjectMapper(); String body = mapper.writeValueAsString(officeHourList); return ResponseEntity.ok().body(body); }
In this issue, we add a new version of this with just one difference: Instead of using:
officeHoursRepository.findAll();
We:
This can be used to populate the office hours in a OfficeHoursSelector component on the TutorNotesForm for entering new office hours.
OfficeHoursSelector
TutorNotesForm
There is an existing endpoint:
In this issue, we add a new version of this with just one difference: Instead of using:
We:
This can be used to populate the office hours in a
OfficeHoursSelector
component on theTutorNotesForm
for entering new office hours.