Name: new-nomis-api
Owner: NOMS Digital Studio
Description: Spring Boot API over the Nomis data model
Created: 2018-03-05 13:41:20.0
Updated: 2018-05-23 16:43:32.0
Pushed: 2018-05-23 16:43:31.0
Homepage: null
Size: 4207
Language: Java
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
New Tech Nomis: Offender API.
The service provides REST access to the Nomis Oracle DB offender information.
https://circleci.com/gh/noms-digital-studio/new-nomis-api
adlew build
adlew assemble
This makes the JAR executable by including a manifest.
This profile starts the application additional configuration this mode uses an in memory H2 (empty) database and is populated with a sample data set
NG_PROFILES_ACTIVE=dev java -jar build/libs/new-nomis-api.jar
NG_PROFILES_ACTIVE=oracle SPRING_DATASOURCE_URL=jdbc:oracle:thin:@<VM Oracle IP address>:1521:<sid> java -jar build/libs/new-nomis-api.jar
The application is conigured with conventional Spring parameters. The Spring documentation can be found here:
https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
Starts the application on port '8080'. To override, set server.port (eg SERVER_PORT=8099 java -jar etc etc)
http://localhost:8080/api/swagger-ui.html
-X GET http://localhost:8080/offenders'
-X GET http://localhost:8080/info
-X GET http://localhost:8080/health