aggie-coding-club / GrocerEZ

GrocerEZ is a mobile app that uses a combination of web-scraping and crowd-sourcing to determine which store could fulfill your grocery list for the cheapest total
8 stars 0 forks source link

Add /items/search route #46

Open firejake308 opened 3 years ago

firejake308 commented 3 years ago

We need an API route in the style of /items/search?q=<query>, where the query represents what the user has typed so far. Upon receipt of this GET request, the backend should look up items whose names match the query, and return those items as a JSON list. We should be able to use something like Item.name.like(query) to search the database