noms-digital-studio/csra-mocks

Name: csra-mocks

Owner: NOMS Digital Studio

Description: Mock REST endpoints used by the CSRA application

Created: 2017-06-30 10:55:15.0

Updated: 2017-06-30 10:55:15.0

Pushed: 2017-12-20 13:57:28.0

Homepage: null

Size: 110

Language: null

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Installing Dependencies

You will need to have JDK (Java SE Development Kit) installed on your system http://www.oracle.com/technetwork/java/javase/downloads/index.html or

 cask install java

You will also need Gradle installed on your system

 install gradle

To build and run the fat JAR

adlew clean shadowJar
 -jar build/libs/csra-mocks-all.jar --root-dir src/main/resources --port 9090

To run via Gradle

adlew clean run

To view default mappings

 http://localhost:9090/__admin/

Example defaults

 -H "API-Key:valid-subscription-key" http://localhost:9090/offender/J1234LO/viper
 -H "API-Key:valid-subscription-key" http://localhost:9090/offender/NOTFOUND/viper

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.