You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Endpoint
GET /api/users/search (refactor this existing endpoint)
Background
As shown in the attached wireframe, user could search for volunteers by combination of:
Keyword
Skills
Current Implementation
Currently, this endpoint searches users with keyword in userName, firstName or lastName. It accepts three input parameters.
Requirement: Refactor Search Project Endpoint
Input Parameters
Keyword: this is a string, this is optional
Skills list: this is a list, this is optional
Business Logic
Search users that satisfy Both criteria of Keyword and Skill List, if they are provided in the input parameters
If neither keyword nor skills list is provided, return all users.
Keyword criteria: search in userName, firstName, lastName, title, introduction, skills
Skills criteria: search is skills (user_skill table)
Sort the result by userName in ascending order.
Documentation
Add the following comments to the endpoint operation:
notes = Returns a list of users who has the keyword in user name / first name / last name / title / introduction / skills, AND, who has the skills. The search result is sorted by user name in ascending order.
Wireframe
The text was updated successfully, but these errors were encountered:
Endpoint
GET /api/users/search (refactor this existing endpoint)
Background
As shown in the attached wireframe, user could search for volunteers by combination of:
Keyword
Skills
Current Implementation
Currently, this endpoint searches users with keyword in userName, firstName or lastName. It accepts three input parameters.
Requirement: Refactor Search Project Endpoint
Input Parameters
Keyword: this is a string, this is optional
Skills list: this is a list, this is optional
Business Logic
Documentation
Add the following comments to the endpoint operation:
notes =
Returns a list of users who has the keyword in user name / first name / last name / title / introduction / skills, AND, who has the skills. The search result is sorted by user name in ascending order.
Wireframe
![image](https://cloud.githubusercontent.com/assets/24813620/24838847/ab59c628-1d15-11e7-9a41-ae1235a1807c.png)
The text was updated successfully, but these errors were encountered: