Skip to content
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

11 expose api #27

Merged
merged 15 commits into from
Jul 7, 2024
Merged

11 expose api #27

merged 15 commits into from
Jul 7, 2024

Conversation

mikeheft
Copy link
Owner

@mikeheft mikeheft commented Jul 7, 2024

  • Add endpoints for viewing drivers, /drivers
  • Add endpoint for viewing available rides for a given driver, /drivers/:driver_id/selectable_rides
    • Scopes the available rides to those within a given radius for a driver
    • Ranks rides according to (ride earnings) / (commute duration + ride duration)
    • Returns a paginated list of POJOs
      • This is done to where, when the Driver selects a ride, we will then update it with the duration, distance, commute, and earnings amount.

@mikeheft mikeheft linked an issue Jul 7, 2024 that may be closed by this pull request
@mikeheft mikeheft merged commit 4834f53 into main Jul 7, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose API
1 participant