mvn spring-boot:run
mvn package
java -Dspring.profiles.active=prod -jar jbeatnik.jar
curl -i http://localhost:9000/manage/health
curl -i -XPOST -H "Content-Type: application/json" -d '{"username":"test","password":"test","email":"[email protected]"}' http://localhost:9000/api/register
curl -vu jbeatnikapp:myOAuthSecret 'http://localhost:9000/oauth/token?username=admin&password=admin&grant_type=password'
curl -vu jbeatnikapp:myOAuthSecret 'http://localhost:9000/oauth/token?grant_type=refresh_token&refresh_token=<refresh_token>'
curl -i -H "Authorization: Bearer <access_token>" http://localhost:9000/api/profile
curl -i -H "Authorization: Bearer <access_token>" http://localhost:9000/manage/metrics
curl -i -H "Authorization: Bearer <access_token>" http://localhost:9000/oauth/logout
sudo python -m smtpd -n -c DebuggingServer localhost:25
curl -i -XPOST -H "Content-Type: application/json" -d '{"email":"[email protected]"}' http://localhost:9000/api/lostpassword
curl -i -XPOST -H "Content-Type: application/json" -d '{"email": "[email protected]","password":"toto","resetPasswordKey":"2de8b058-16ae-483c-a2a1-c26c94b93992"}' http://localhost:9000/api/resetpassword