Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

customers: search endpoint #99

Closed
adamdecaf opened this issue Jul 29, 2020 · 4 comments · Fixed by #135
Closed

customers: search endpoint #99

adamdecaf opened this issue Jul 29, 2020 · 4 comments · Fixed by #135
Assignees
Labels
enhancement New feature or request

Comments

@adamdecaf
Copy link
Member

We need to support searching all Customer records stored in the database. This allows the UI and other programs to find records. Creating transfers can occur well after the initial creation and UI's / services will need to relocate the correct customerID to use.

Initially I'm thinking of the following endpoint with a bunch of query params.
GET /customers

  • ?name=<string> (optional) used and split across first/last names, returns fuzzy results
  • ?email=<string> (optional) exact match (with .'s removed)
  • ?type=<string> (optional) individual and business filter

Thoughts @InfernoJJ and @joshsadler ?

@adamdecaf adamdecaf added the enhancement New feature or request label Jul 29, 2020
@InfernoJJ
Copy link
Member

Those query params work for me.

@tgunnoe
Copy link

tgunnoe commented Jul 29, 2020

yes, exactly. the query parameters would work great.

@adamdecaf
Copy link
Member Author

@jmbrown412 Have we included a filter on type to handle individual / business? I think that's all this issue has left.

@adamdecaf adamdecaf assigned jmbrown412 and unassigned adamdecaf Sep 9, 2020
@jmbrown412
Copy link

@jmbrown412 Have we included a filter on type to handle individual / business? I think that's all this issue has left.

@adamdecaf Yep, we have.

@jmbrown412 jmbrown412 linked a pull request Sep 22, 2020 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants