---- Under Construction ----
This application is a Rockstars manager
- 0.0.1 - 4ecb6333713e31c30e195a2c9b5ea033d785f198 - ?
- 0.0.2 - 73e941a8634e69abaf73a001af970e060192fd03 - JDK 17 / Mockito / Java / JUnit assertion
- 1.0.0 - 27b82491eecc13b6044ecb6207aeaae23386d3bd - JDK 19 / Kotlin 1.8.0 / Kotest / Spring Mockk / Spring Boot 3.0.1
- Get artist by name
curl http://localhost:8080/rockstars/artists/200
curl http://localhost:8080/rockstars/artists/filter/name/3 Doors Down
- Get song by name
curl http://localhost:8080/rockstars/songs/1901
curl http://localhost:8080/rockstars/songs/filter/name/666
- Post artist
curl -H "Content-Type: application/json" -X POST --data "{\"Name\": \"Ariana Grande\"}" http://localhost:8080/rockstars/artists
- Post song
curl -H "Content-Type: application/json" -X POST --data "{\"Name\": \"God is a woman\",\"Year\": 2018,\"Artist\": \"Ariana Grande\", \"Shortname\": \"godisawoman\",\"Bpm\": 145,\"Duration\": 197000,\"Genre\": \"Pop\",\"Album\": \"Sweetener\"}" http://localhost:8080/rockstars/artists
- Put artist
curl -H "Content-Type: application/json" -X PUT --data "{\"Name\": \"Ariana Grande\"}" http://localhost:8080/rockstars/artists/200
- Put song
curl -H "Content-Type: application/json" -X PUT --data "{\"Name\": \"God is a woman\",\"Year\": 2018,\"Artist\": \"Ariana Grande\", \"Shortname\": \"godisawoman\",\"Bpm\": 145,\"Duration\": 197000,\"Genre\": \"Pop\",\"Album\": \"Sweetener\"}" http://localhost:8080/rockstars/songs/1901
- Delete artist
curl -X DELETE http://localhost:8080/rockstars/artists/200
- Delete
curl -X DELETE http://localhost:8080/rockstars/songs/1901
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=password&[email protected]&password=123&client_id=rockstars-client&client_secret=rockstars&scope=read&redirect_uri=http://localhost:8080/oauth" http://localhost:8080/rockstars/oauth/token
curl -H "Authorization: Bearer TOKEN" http://localhost:8080/rockstars/artists/200
Please have docker desktop running. Finally run:
./build.sh