What needs to be changed
Update the GetUsers endpoint to perform user search based on first name, last name, or both, instead of email.
Why this is needed
The GetUsers endpoint is used in both the student and teacher search views. To improve the search functionality and make it more intuitive, the endpoint should match users based on their names rather than email addresses.
How to implement
Modify the logic in the GetUsers endpoint to:
- Match users by first name, last name, or a combination of both
- Ensure the search is case-insensitive
- Remove or ignore any email-based filtering in the search
What needs to be changed
Update the
GetUsersendpoint to perform user search based on first name, last name, or both, instead of email.Why this is needed
The
GetUsersendpoint is used in both the student and teacher search views. To improve the search functionality and make it more intuitive, the endpoint should match users based on their names rather than email addresses.How to implement
Modify the logic in the
GetUsersendpoint to: