-
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 by id endpoint for driver availability #57
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
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.
Looks good to me!
e6c850f
to
c93527e
Compare
} | ||
|
||
@Operation(summary = "Get a single availability by id, if user owns it") | ||
@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.
Same thing as last PR, user wont be able to get anything, better to just be ROLE_DRIVER even if just user is not dangerous
c93527e
to
1307aed
Compare
In this pr, I added the get by id endpoint for driver availability controller
DriverAvailabilityController
GET /api/driverAvailability?id=123
that gets an availability submission if owned by the current user.close #45