/
Returns all items and categories as a JSON object:
{
"items": [{}, {}],
"categories": ["", ""]
}
/items
Returns all items as an array: [{}, {}]
.
If none found, returns empty array []
.
/items?category[]=<a>&category[]=<b>
Returns all items that match at least one of the categories received as an array.
If none found, returns empty array []
.
/items?search=<query>
Returns all items with titles that match a search query as an array.
If none found, returns empty array []
.
/item/<ID>
Returns one item that has the ID specified.
If not found, returns nothing.
/categories
Returns all categories as an array of strings.
- Install using
$ yarn
$ yarn start
- Make requests to
http://localhost:2428