Implement system where the user can choose what type of object they search for
enhancement, question
Is your feature request related to a problem? Please describe.
When making search calls in the Spotify api we can choose what type of object we are searching for. In the current implementation, we always search for Tracks. This allows us to access the track information (and their artists but it is a little convoluted)
Describe the solution you'd like
My suggestion is that when the user searches for something such as a Track or Artist or another User, we make them specify what object they are looking for, so that we can make the appropriate search call to the api or to our user dao to check if the user exists. So for example, If they search "Drake" they should have a button to choose that they are searching for the artist and not a track with the same name.
Describe alternatives you've considered
An alternative is to leave the api call as it is, at the cost of a little extra work when making these calls. In this case, we will probably need to add another interface for adding friends, rather than adding that onto the search use case as well.
Is your feature request related to a problem? Please describe. When making search calls in the Spotify api we can choose what type of object we are searching for. In the current implementation, we always search for Tracks. This allows us to access the track information (and their artists but it is a little convoluted)
Describe the solution you'd like My suggestion is that when the user searches for something such as a Track or Artist or another User, we make them specify what object they are looking for, so that we can make the appropriate search call to the api or to our user dao to check if the user exists. So for example, If they search "Drake" they should have a button to choose that they are searching for the artist and not a track with the same name.
Describe alternatives you've considered An alternative is to leave the api call as it is, at the cost of a little extra work when making these calls. In this case, we will probably need to add another interface for adding friends, rather than adding that onto the search use case as well.