| | |
- fetchItem(store)
- Fetch an item from given store that matches request arguments
- fetchItems(store)
- Fetch all items from a given store
- fetchStore(key=None)
- Fetch a store with the given key. If no key is provided, fetch store based on location data in request arguments
- get()
- Returns store based on request arguments. If no arguments are provided, returns all stores in database
- getImage()
- Returns store image based on image key provided in request arguments
- post()
- Adds a store or item to the database depending on request arguments
- put()
- Updates item or store picture depending on request arguments
- search()
- Returns items matching query string in searchable radius (currently 50mi/80km)
- updateCheapest(item, store)
- Compare price of current item to other items in the given store and update store's cheapest item if this item is cheaper than the others
|