Skip to content

Contains reusable code that can be used by microservices within HTBHF

License

Notifications You must be signed in to change notification settings

DepartmentOfHealth-htbhf/htbhf-java-common

Repository files navigation

htbhf-java-common

Contains reusable code that can be used by microservices within HTBHF. To use this repository, add the following to your build.gradle file:

repositories {
    maven {
        url  "https://dl.bintray.com/departmentofhealth-htbhf/maven" 
    }
}

To publish to your local maven repository, run

./gradlew clean build publishToMavenLocal

Then to use the locally published version from another project, simply replace latest.release with the actual release number.

Common Rest Module

Provides formatted error responses and adds the request id and session id to the MDC for logging purposes. Includes the Request Context Module.

To use this module, add the following to your build.gradle file (replacing n.n.n with the latest version):

implementation 'uk.gov.dhsc.htbhf:htbhf-common-rest:n.n.n'

See README for more information

Request Context Module

Provides rest template with request context headers

See README for more information

Common Test Module

Contains common test utilities which include:

  • The ability to test and download Swagger for a project
  • Common assertions for checking validation ConstraintViolations.

Common Database Module

Provides a database configuration used when deployed to cloud foundry.

See README for more information

DWP API Module

Provides common request and response objects for making requests to DWP.

See README for more information

DWP API Test Module

Provides common test data factory objects for testing the DWP API.

See README for more information

About

Contains reusable code that can be used by microservices within HTBHF

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages