---- Under Construction ----
This application is a Rockstars manager
- 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
I hope you enjoyed this repository. If you did, you can optionally please buy me a coffee, which supports me in constantly improve and make new free content regularly for everyone. Thank you so much!
| Sessionize | Spotify | Medium | Buy me a coffee | Credly Badges | Google Apps | Sonatype Search Repos | Docker Images | Stack Overflow Profile | Reddit | Dev.TO | Hackernoon | Code Project | BitBucket | GitLab | Coursera | FreeCodeCamp | HackerRank | LeetCode | Codebyte | CodeWars | Code Pen | Hacker Earth | Khan Academy | Hacker News | InfoQ | LinkedIn | Xing | Tumblr | Pinterest | Quora | VMware Spring Professional 2021 | Oracle Certified Professional, Java SE 11 Programmer | Oracle Certified Professional, JEE7 Developer | IBM Cybersecurity Analyst Professional | Certified Advanced JavaScript Developer | Certified Neo4j Professional | Deep Learning |