The Event createFromForm should have the following changes made to it:
- [ ] Rename the method to "add" This form of overloading isn't supported by SpringBoot in a convenient way.
[x] Change the signature, parameters, to consider a description field
[x] The clubLeaderID field can be replaced by clubID
[ ] The method should only call the save methods for a Location, Appointment, and Event.
[ ] It should be able to return any appointment conflict errors if they are present without continuing it's execution
[ ] If an appointment conflict occurs, then the location that was just added to the DB should be deleted
[x] It's possible the startTime and endTime fields can be of type LocalDateTime instead of String
This will need to be tested first.
Research needs to be done with regards to handling exceptions: specifically how can we return an http error json object without changing the return type of the createFromForm method
The Event
createFromForm
should have the following changes made to it:- [ ] Rename the method to "add"This form of overloading isn't supported by SpringBoot in a convenient way.description
fieldclubLeaderID
field can be replaced byclubID
startTime
andendTime
fields can be of typeLocalDateTime
instead of StringcreateFromForm
method(Additional points may need to be added)