This micro-service provides API for PIP html solution to submit PIP2 form in PDF to DRS. In addition, it prepares document (evidence) to be uploaded to DRS. It is a standard SpringBoot application.
The version 1 API spec can be found at openapi-spec-v1.yaml
- Submit new application with or without further document evidence.
/v1/apply
- Attach additional document evidence to an existing application.
/v1/attach
- Query DRS request status
/v1/status
- Query DRS reporting data based on either day or week
/v1/administration/report
- Resubmit the failed DRS requests
/v1/administration/resubmit
Listens to a doc batch response queue (see uk.gov.dwp.health.pip.document.submission.manager.config.properties.EventConfigProperties.queueName) and updates our DRS request entity in mongo with the result. For failures, a Cloudwatch metric is incremented on failure, see uk.gov.dwp.health.pip.document.submission.manager.config.properties.CloudWatchProperties.submissionFailureMetricName
mvn clean verify
mvn spring-boot:run
docker-compose up --scale api-test=0
will build and run the application with other dependent services stubbed
Run the following command to spin up the service in docker
docker-compose up --scale api-test=0
Open another terminal window and run the following maven command to execute the tests locally
mvn clean verify -Papi-component-tests
Run the following command to launch the api component tests within the docker environment
docker-compose up