arnaugarcia / sallefy

Sallefy - A music platform
https://www.jhipster.tech/development/
GNU General Public License v3.0
11 stars 8 forks source link

show tracks (/api/tracks) Get request #152

Closed amirazzam2000 closed 4 years ago

amirazzam2000 commented 4 years ago

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"

arnaugarcia commented 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.

amirazzam2000 commented 4 years ago

Oh okay that makes sense, Thank you very much.