thingaha / thingaha-web

Web Application for Thingaha Donation Management
9 stars 27 forks source link

Add search api endpoints for each resource #128

Open dreamingblackcat opened 3 years ago

dreamingblackcat commented 3 years ago

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:

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.

khinezarthwe commented 3 years ago

Currently we have the following endpoint, we will update the donations soon.