-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Driver Availability: Add controller GET all endpoint for driver availability and tests #56
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
3cca951
to
943ffb9
Compare
@@ -102,5 +101,15 @@ public Object deleteDriverAvailability( | |||
|
|||
return genericMessage("DriverAvailability with id %s deleted".formatted(id)); | |||
} | |||
|
|||
@Operation(summary = "List all availabilities of current user") | |||
@PreAuthorize("hasRole('ROLE_USER')") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically user will never be able to get anything since they cant create one in the first place, not dangerous but its better if we just do has role driver
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
4e25c36
to
cc7be1a
Compare
In this pr, I added get all endpoint for driver availabilities controller.
DriverAvailabilityController
GET /api/driverAvailability
that gets all availability submissions for the current user.close #46