justinmauldin7 / Play_BE

0 stars 1 forks source link

Build API Route to return artist's track list #7

Open justinmauldin7 opened 5 years ago

justinmauldin7 commented 5 years ago

In the backend repo, create a route to GET an artist's tracklist.

The route should hit: http://api.musixmatch.com/ws/1.1/track.search?

Query Params to pass with your request are: -"apikey" -"q_artist" -"s_track_rating"

Example call: http://api.musixmatch.com/ws/1.1/track.search?apikey=b24629931e9a581edb617d6b39e5563f&q_artist=Queen&s_track_rating=desc

Response format should contain: -Track ID -Track Name -Album ID -Album Name -Artist ID -Artist Name

Example Response: "track": { "track_id": 31184528, "track_name": "Bohemian Rhapsody", "album_id": 13785654, "album_name": "A Night At the Opera", "artist_id": 118, "artist_name": "Queen" }