arnaugarcia / sallefy

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

Following user information get method #170

Open MSaula opened 4 years ago

MSaula commented 4 years ago

Currently, if a user wants to know which users is he following, it has to get the list of all users, and then make a GET for every user to check if he is following them or not.

It would be great to have the boolean that indicates if the specific user is being followed or not inside the User objects of the list returned when asked for all Users. As it is done in the Playlist objects.

arnaugarcia commented 4 years ago

Hi Miquel! to know the users that the current user isn't following you can make the next request: http://sallefy.eu-west-3.elasticbeanstalk.com/api/users?notFollowing=true. It's true that it'll be nice to have a "followed" attribute inside the User object so... I'll keep this open and I'll try to do this in the next Sprint :D

Thanks for your enhancement!