ubclaunchpad / bounce

🏀 Bringing people with common interests together
MIT License
3 stars 4 forks source link

Users search feature #99

Closed ginsstaahh closed 6 years ago

ginsstaahh commented 6 years ago

:tickets: Ticket(s): Closes #89


:construction_worker: Changes

Added search feature for users table. Same functionality as the search feature for clubs table

Briefly describe the changes you made and why you made them in bulleted form. Added a search method in db/user.py Added a SearchUsersEndpoint in api/users.py to route to users/search. You can use three params when using this endpoint: query, size, and page. Page and size also integrates pagination functionality when searching for users Added jsonschemas in resource/user.py for search requests and responses Added tests in test_endpoints.py for pagination and searching users

:traffic_light: Concerns

If there is anything you want reviewers to pay special attention to, put it here.

:mag: Testing Instructions

Explain how to test your changes, if applicable.