Just a barebones API used as an backend for a similarly simple web-based music player UI/UX study project, which can be found here.
/api/albums
- returns the full album object, including artist, track list, genre, etc./api/albums/?limit={limit_value}
- returns the requested number of albums from a pool of album objects, randomized./api/albums/?search={search_value}
- queries the database for a matching property -- currentlyalbum title
orsong title
-- and returns the full album object for parsing, as JSON./api/albums/trending
- returns albums that are trending, as well as where they are trending (local, region, global)./api/album/:albumId
- returns a specific album from the database, using the URL param for albumID.
/api/album/:albumId
- used by the front-end client to update album objects; client sends a POST request JSON object containing a prop to update and the value to update it with.