Closed hannesdatta closed 1 year ago
Please "imitate" the Last.fm API in terms of which endpoints to implement.
user.getInfo
user.getRecentTracks
user.getTopArtists
user.getTopTracks
user.getWeeklyTrackChart
user.getWeeklyArtistChart
user.getRecentlyActive
(NEW ENDPOINT, that shows you a random selection of recently active users)
artist.getInfo
artist.getTopTracks
artist.search
artists.featured
(@hannesdatta tags "featured" artists, you randomly serve x artists from that list)
chart.getTopTracks
(for a given week, the charts)
chart.getTopArtists
chart.getTopGenres
Views on the site:
artists.featured
)chart.getTopTracks
with played tracks in last 24 hourschart.getTopTracks
with 15 tracks played in last 24x7 hourschart.getTopGenres
artist.getInfo
and artist.getTopTracks
user.getRecentlyActive
user.getInfo
+ user.getWeeklyTrackChart
@hannesdatta we still have the following issues that need to be tackled before I can add the remaining 3 endpoints:
If the tasks above are done, please give me a sign so that I can complete the API endpoints.
artists.getInfo
: number of tracks, number of plays in last week, number of plays since the beginning, dictionary with top songs: dictionary with list with top x song names (e.g., top 5 songs), including their all-time plays,
artists.featured
: a dictionary with five or ten artists randomly drawn from the list of featured artists in our database (column: featured)
Let's drop genres for now
I have updated the data, it now contains song and artist files as well. Rerun simulations.R
, please.
Is this all done, @thierrylahaije - please close then.
All FastAPI endpoints now have been fixed and are working. I only need to update artist.getInfo to include all necessary data. When I fixed this, the API endpoints can be checked to see if they are complete.
All FastAPI endpoints are now completed (including artist.getInfo). @hannesdatta if you could check if everything is now complete, I can finish up and close this issue.
Background:
We've built an API so anyone can learn how to scrape our site using that API. Yet, we're missing a tutorial.
The purpose of this issue is to develop a Python tutorial for retrieving data from our site. This one is a good example. Remember, this is NOT yet for my oDCM class, so the audience is broad.
Deliverables:
Next steps: