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

Add Family Param to /api/pairing #103

Open
rainrivas opened this issue Jan 29, 2018 · 1 comment
Open

Add Family Param to /api/pairing #103

rainrivas opened this issue Jan 29, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@rainrivas
Copy link
Contributor

Currently /api/pairing only expects budget as mandatory.
Proposal:

  • Add family param as optional
    • If only family is present, read the budget from wishlistTotalCost
  • Set budget param as option
    • If only budget is present, return all donors that match budget (working right now)
  • Require 1 of the 2 params to be present
    • If either is missing, send 400
@rainrivas rainrivas added this to the Sprint 2 milestone Jan 29, 2018
@rainrivas rainrivas self-assigned this Jan 29, 2018
@rainrivas
Copy link
Contributor Author

Adding family param to api/pairing might be invalid now that I've split things up as follows

  • /api/pairing/budget -- Calculates the donors that match a budget
  • /api/pairing/:familyId -- Takes family ID, grabs total wishlist cost and makes a call to /api/pairing/budget to find the list of donors that can afford the list

@rainrivas rainrivas modified the milestones: Sprint 2, Sprint 3 Feb 12, 2018
@rainrivas rainrivas modified the milestones: Sprint 3, Sprint 4 Feb 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant