[ ] There is an API endpoint POST /api/driverAvailability/new for creating a new driver availability submission with the current user as the requester, given that the user has ROLE_DRIVER.
[ ] There is an endpoint GET /api/driverAvailability that gets all availability submissions for the current user.
[ ] GET /api/driverAvailability?id=123 that gets an availability submission if owned by the current user.
[ ] PUT /api/driverAvailability that edits an availability if owned by current user.
[ ] DELETE /api/driverAvailability that deletes an availability if owned by current user.
For admins:
[ ] GET /api/driverAvailability/admin/all that gets all driver availabilities.
[ ] GET /api/driverAvailability/admin?id=123 that gets a specific driver availability.
2nd issue: DriverAvailabilityController
POST /api/driverAvailability/new
for creating a new driver availability submission with the current user as the requester, given that the user hasROLE_DRIVER
.GET /api/driverAvailability
that gets all availability submissions for the current user.GET /api/driverAvailability?id=123
that gets an availability submission if owned by the current user.PUT /api/driverAvailability
that edits an availability if owned by current user.DELETE /api/driverAvailability
that deletes an availability if owned by current user.For admins:
GET /api/driverAvailability/admin/all
that gets all driver availabilities.GET /api/driverAvailability/admin?id=123
that gets a specific driver availability.