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 search api endpoints for each resource #128

Open
dreamingblackcat opened this issue May 8, 2021 · 1 comment
Open

Add search api endpoints for each resource #128

dreamingblackcat opened this issue May 8, 2021 · 1 comment

Comments

@dreamingblackcat
Copy link
Member

dreamingblackcat commented May 8, 2021

Now that we have normal CRUD functionality for individual admin pages.

We need a basic name based search endpoint for each of the following admin pages:

  • Users
  • Students
  • Schools
  • Donations

The url should be GET /<resource name>/search?q=yoursearchtermhere.

For users, it should search try to search the term in both username and display_name.
For students, it should search by name.
For schools, it should search by name.
For donations, it should search by donator's username and display_name as well as student's name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants