Skip to content

This micro-service provides API for PIP html solution to submit PIP2 form as a PDF to DRS.

License

Notifications You must be signed in to change notification settings

dwp/ms-doc-submission-manager

Repository files navigation

Strategic pip-apply ms-documentId-submission-manager

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.

REST API Spec

The version 1 API spec can be found at openapi-spec-v1.yaml

API Endpoints

  • 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

Message listener

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

To build and run

mvn clean verify 
mvn spring-boot:run

Run in a docker container

docker-compose up --scale api-test=0

will build and run the application with other dependent services stubbed

Running the Component Tests

Running Locally

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

Running in Docker

Run the following command to launch the api component tests within the docker environment

docker-compose up 

About

This micro-service provides API for PIP html solution to submit PIP2 form as a PDF to DRS.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages