Some fool engineer checked in code that doesn't work as they had to leave early for the Fraggle Rock marathon on HBO. Start by fixing up the broken code.
Fill out the TODO(s) inside the REST api endpoints
Retrieve the details about a given album.
Create a new album.
Retrieve the details about a given group.
Create a new group.
Return all known music artists and their albumns
Return all known music for a particular artist
Returns a health/unhealthy for the mysql instance.
mvn clean compile package
cd tools\local-dev
docker-compose up
cd tools\local-dev
python3 redeploy.py
Entry point for loading the configuration details, creating and registering any REST endpoint
curl -v -X POST localhost:8080/group -H 'Content-Type: application/json' -d '{
"groupName": "Foo Fighters",
"yearFormed": 1994,
"currentMembers": [
"Dave Grohl",
"Nate Mendel",
"Pat Smear",
"Taylor Hawkins",
"Chris Sheflett"
],
"pastMembers": [
"William Goldsmith",
"Franz Stahl"
]
}'
curl -v -X GET localhost:8080/group/Rm9vIEZpZ2h0ZXJz
curl -v -X POST localhost:8080/album -H 'Content-Type: application/json' -d '{
"artistName" : "Foo Fighters",
"albumName" : "The Colour and the Shape",
"releaseYear" : 1997
}'
curl -v -X GET localhost:8080/album/VGhlIENvbG91ciBhbmQgdGhlIFNoYXBl
curl -v -X GET localhost:8080/music
curl -v -X GET localhost:8080/music?group=Rm9vIEZpZ2h0ZXJz