Skip to content

jesperancinha/rockstars-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Rockstars Manager


Twitter URL Generic badge GitHub License

RSM Build on PR

Codacy Badge

Codacy Badge Coverage Status codecov

GitHub language count GitHub top language GitHub top language


---- Under Construction ----

This application is a Rockstars manager

RESTfull requests

GET Requests

  • 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 requests

  • 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 requests

  • 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 requests

  • Delete artist
curl -X DELETE http://localhost:8080/rockstars/artists/200
  • Delete
curl -X DELETE http://localhost:8080/rockstars/songs/1901

OAUTH

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

Running everything

Please have docker desktop running. Finally run:

./build.sh

References

Buy me a coffee

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!

Buy me a coffee

About me πŸ‘¨πŸ½β€πŸ’»πŸš€πŸ³οΈβ€πŸŒˆ

alt text GitHub followers Twitter Follow alt text | 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 | Generic badge Generic badge Generic badge