Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 1.55 KB

README.md

File metadata and controls

22 lines (15 loc) · 1.55 KB

microservice-baseline

A typical simple baseline for building good microservices

GitHub tag (latest SemVer) Build Status - Project Status: Active – The project has reached a stable, usable state and is being actively developed. Known Vulnerabilities

Documentation

Quick build and verify

mvn clean install
java -jar target/microservice-baseline-0.1-SNAPSHOT.jar
wget http://localhost:8086/microservice-baseline/health
wget "http://localhost:8086/microservice-baseline/token?grant_type=client_credentials&grant_type=client_credentials&client_id=CLIENT_ID&client_secret=CLIENT_SECRET"
curl -X POST "http://localhost:8086/microservice-baseline/token?grant_type=client_credentials&grant_type=client_credentials&client_id=CLIENT_ID&client_secret=CLIENT_SECRET"
curl -X POST "http://localhost:8086/microservice-baseline/token?grant_type=authorization_code&code=mycode&redirect_uri=http://ocalhost:8086/microservice-baseline/oauth2&client_id=CLIENT_ID&client_secret=CLIENT_SECRET"
curl -i -H "Authorization: Bearer AsT5OjbzRn430zqMLgV3Ia" http://localhost:8086/microservice-baseline/verify