Node.js and express based API to serve filter data for lolibrary.org search API.
Hosted on Heroku. Base URL: https://lovelace-db-api.herokuapp.com
Currently a WIP!
While the lolibrary search API is public, the list of filter values for each filter parameter is locked behind a password protected private API. I wanted to avoid having users log in to use the mobile lolibrary search app that I'm building, so I decided to create my own database and filter API instead.
Returns an object containing arrays for all filters. Arrays may contain strings or numbers as described below.
{
"brand" : ["string",...],
"category" : ["string",...],
"colorway" : ["string",...],
"features" : ["string",...],
"tags" : ["string",...],
"year" : [1998, 1999, ...]
}
Returns an object containing all possible values for the brand filter (an array of strings).
{
"brand" : ["string",...],
}
Returns an object containing all possible values for the category filter (an array of strings).
{
"category" : ["string",...],
}
Returns an object containing all possible values for the category filter (an array of strings).
{
"colorway" : ["string", ...],
}
Returns an object containing all possible values for the features filter (an array of strings).
{
"features" : ["string",...],
}
Returns an object containing all possible values for the tags filter (an array of strings).
{
"tags" : ["string",...],
}
Returns an object containing all possible values for the year filter (an array of numbers).
{
"year" : [1998, 1999,...],
}
Accepts a JSON payload as input and inserts values into the connected database. This endpoint requires bearer token authorization (fullfilled by auth0 auth server).