Listify/Lambdas/Lists/ItemSearch
2020-12-04 12:25:14 -05:00
..
src Use plain table search history 2020-11-14 12:05:50 -05:00
test Ready for presentation 2020-12-04 12:25:14 -05:00
README.md Spelling fix 2020-12-03 21:06:28 -05:00

ItemSearch Module

Deals with retrieving aggregate product information meeting certain naming criterion from among that populated by the scripts at https://github.com/ClaytonWWilson/Listify/blob/master/Lambdas/APIs and https://github.com/ClaytonWWilson/Listify/tree/master/Lambdas/Scraping.

ItemGET

Expected request body:

N/A

Expected query parameters:

  • id
    • Used for specifying a substing of the product name that returned items should match
    • Valid values: {any_string}

Inputs and outputs:

  • id = {any string}: Returns an ItemSearch object, which is basically an array of productIDs, for products whose name fits the regex criterion name = ".*" + id + ".*"
    • Results are limited to the first 100 entries from the database (by earliest add time)