Provides and API to manage the locations inside a prison.
This is straight-forward as authentication is delegated down to the calling services in dev
environment.
Environment variables to be set are as follows:
API_BASE_URL_OAUTH=https://sign-in-dev.hmpps.service.justice.gov.uk/auth
API_BASE_URL_PRISON=https://prison-api-dev.prison.service.justice.gov.uk
LOCATIONS_INSIDE_PRISON_API_CLIENT_ID=[choose a suitable hmpps-auth client]
LOCATIONS_INSIDE_PRISON_API_CLIENT_SECRET=
Start the database and other required services via docker-compose with:
docker compose up
Then run the API.
docker compose --profile include-api up --build
Architecture decision records start here
Run:
./gradlew koverHtmlReport
Then view output file for coverage report.