Skip to content

aleksejboot/nothingspecial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

README

Running with maven

mvn spring-boot:run

Test scenario

Create user 'one' and 'two'

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 artist by term

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"

Set user favorite artist

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"

Set user favorite artist top 5 albums

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"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages