./gradlew clean shadowJar
java -jar build/libs/hpa-mocks-all.jar --root-dir src/main/resources --port 9090
./gradlew clean run
curl http://localhost:9090/__admin/
curl -H "Authorization: token" http://localhost:9090/api/v2/prisoners?firstName=john&lastName=smith
Must include the Authorization header (any value):
- GET lastName=surnamea > one match
- GET lastName=sunameb > one match
- GET lastName=sunamec > gives 401 the first time, then a match the second time, repeat
- GET lastName=sur > the above two matches
- GET lastName=unauth > 401 response
- GET anything else > 0 results response
Without the Authorization header
- GET /api/info/health > 200 OK response
- GET anything else > 401 response
- POST /api/users/login > access token response