mvn spring-boot:run
Note: body data is not needed here, beacuse only email is used, and it is passed as query parameter
curl -H "Content-Type: application/json" -X POST --data '{"email":"one@mycompany.com"}' http://localhost:8080/users
curl -H "Content-Type: application/json" -X POST --data '{"email":"two@mycompany.com"}' http://localhost:8080/users
Search for "prodigy"
curl -X GET "http://localhost:8080/artists/search?term=prodigy"
Search for "aha"
curl -X GET "http://localhost:8080/artists/search?term=aha"
For user 'one' to 'prodigy'
curl -X POST "http://localhost:8080/users/1/favorite-artist?artistId=26871"
For user 'two' to 'aha'
curl -X POST "http://localhost:8080/users/2/favorite-artist?artistId=3491"
For user 1
curl -X GET "http://localhost:8080/users/1/favorite-artist-top-albums"
For user 2
curl -X GET "http://localhost:8080/users/2/favorite-artist-top-albums"