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

Rest API - User - Search - Due 4/23 #64

Closed
Code4SocialGood opened this issue Mar 24, 2017 · 1 comment
Closed

Rest API - User - Search - Due 4/23 #64

Code4SocialGood opened this issue Mar 24, 2017 · 1 comment
Assignees

Comments

@Code4SocialGood
Copy link
Owner

Code4SocialGood commented Mar 24, 2017

  • 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

  1. Search users that satisfy Both criteria of Keyword and Skill List, if they are provided in the input parameters
  2. If neither keyword nor skills list is provided, return all users.
  3. Keyword criteria: search in userName, firstName, lastName, title, introduction, skills
  4. Skills criteria: search is skills (user_skill table)
  5. 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
    image

@Code4SocialGood Code4SocialGood added this to the Rest API - User milestone Mar 24, 2017
@TsepelevV TsepelevV self-assigned this Mar 24, 2017
@Code4SocialGood Code4SocialGood changed the title Rest API - User - Search by Keyword Rest API - User - Search Apr 9, 2017
@Code4SocialGood Code4SocialGood changed the title Rest API - User - Search Rest API - User - Search - Due 4/23 Apr 16, 2017
Code4SocialGood added a commit that referenced this issue Apr 19, 2017
Refactor Rest API - User - Search - Due 4/23 #64
@Code4SocialGood
Copy link
Owner Author

Closed with PR

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

No branches or pull requests

3 participants