Skip to content

ministryofjustice/hmpps-nomis-prisoner-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,754 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

HMPPS NOMIS Synchronisation Prisoner API

Ministry of Justice Repository Compliance Badge Docker Repository on ghcr API docs

This is a private API for synchronising data between NOMIS and DPS services that hold data outside of NOMIS. It is part of a suite of services to support migration away from NOMIS and should only be used for synchronisation by the following services:

  • hmpps-prisoner-from-nomis-migration
  • hmpps-prisoner-to-nomis-update

Building

./gradlew build

Running

Various methods to run the application locally are detailed below.

Once up the application should be available on port 8101 - see the health page at http://localhost:8101/health.

Also try http://localhost:8101/swagger-ui/configUrl=/v3/api-docs to see the API specification.

Running the application against dev (t3) database

Steps are:

  1. Create a tunnel to the database
ssh -f -D 1086 -N -Snone hmppgw1 -L1521:t3nomis-b.test.nomis.service.justice.gov.uk:1521

For the tunnel to work you will need host information for hmppgw1 in your ~/.ssh/config. Please see confluence for more information.

  1. Start Nomis Prisoner API with the following VM options
-Doracle.jdbc.J2EE13Compliant=true -Xmx1024m -Xms1024m

and with profiles

oracle,stdout

and the following environment variables

API_BASE_URL_OAUTH=https://sign-in-dev.hmpps.service.justice.gov.uk/auth
DB_USERNAME=<your t3 user> 
DB_PASSWORD=<your t3 password>
JDBC_URL=jdbc:oracle:thin:@//localhost:1521/NOMIS_TAF

About

A backend application for managing prisoners in NOMIS

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors