This API provides the capability for DWP to send Universal Credit Liability notifications for a given individual on NPS (National Insurance & PAYE Service).
Endpoint: POST /misc/universal-credit/liability/notification
Description: Provides the capability to insert and terminate Universal Credit Liability details for a given individual.
Compile the project with:
sbt clean compile updateRun the project locally with:
sbt runBy default, the service runs on port 16107.
Use Service Manager to start all the services required to run and test Universal Credit Liability service locally.
Start the UNIVERSAL_CREDIT_LIABILITY_ALL profile, responsible for starting up all the services required, with:
sm2 --start UNIVERSAL_CREDIT_LIABILITY_ALLRun unit tests with:
sbt testRun integration tests with:
sbt it/testCheck code coverage with:
sbt clean coverage test it/test coverageReportTo preview the OpenAPI Specification (OAS) locally, start the DEVHUB_PREVIEW_OPENAPI service with Service Manager:
sm2 --start DEVHUB_PREVIEW_OPENAPIIf the service is running on the Service Manager, stop it:
sm2 --stop UNIVERSAL_CREDIT_LIABILITY_APIand run the service locally:
sbt runGo to the local preview page at http://localhost:9680/api-documentation/docs/openapi/preview
In the URL field enter the URL of the OpenAPI Specification (OAS) file:
http://localhost:16107/api/conf/1.0/application.yaml
and click "Submit".
These aliases let you run multiple sbt tasks with a single command.
Checks against the Scalafmt and Scalafix rules. This command is part of the PR Builder Jenkins job and fails the PR if the code is not formatted:
sbt prePrChecksChecks code coverage (includes both unit and integration tests):
sbt checkCodeCoverageFormats all project code. Applies Scalafix and Scalafmt rules:
sbt lintCodeCheck all project files are formatted as expected as follows:
sbt scalafmtCheckAll scalafmtCheckFormat *.sbt and project/*.scala files as follows:
sbt scalafmtSbtFormat all project files as follows:
sbt scalafmtAllThis code is open source software licensed under the Apache 2.0 License.