Closed amirazzam2000 closed 4 years ago
Hey! This is because a songs needs to be played. To play a song you should make a PUT request to this endpoint http://sallefy.eu-west-3.elasticbeanstalk.com/api/tracks/{id}/play
with the latitude and longitude inside the body. I've teste it with the Track number 21 (Julia Michaels - Issues). As you can see now in the request it returns the song.
Oh okay that makes sense, Thank you very much.
when filtered by most played it returns only 4 songs
curl -X GET "http://sallefy.eu-west-3.elasticbeanstalk.com/api/tracks?played=true" -H "accept: */*" -H "Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJkdWRlIiwiYXV0aCI6IlJPTEVfVVNFUiIsImV4cCI6MTU4NzA0NjU0M30.jAqmR2l7s3CZaxchkVXzx3KlLFRYdlL_8FAch11q4ohV9uNo_zZcRay330OSDsIoxkpT3be3GBcpu7ZP3vwKDw"