This is a client library for interacting with the ccd-case-document-am-api application. The two main responsibilities are:
- upload the case document
- download the case document
- update the case document
- delete the case document
- patch the case document
The API Documentation provided at the top of this README point to the Swagger documentation for the Case Document API.
Just include the library as your dependency and you will be ready to use the client class. Health check for case-document-am-api is provided as well.
Components provided by this library will get automatically configured in a Spring context if ccd_case_document_am_api.url
configuration property is defined and does not equal false
.
To enable/disable the Health Check endpoint made available by this client, you need to set the following property in your application.properties
or application.yaml
Spring property file:
management.health.case-document-am-api.enabled=false
By setting the value to false, you are disabling the Health Check endpoint exposed by the client.
To enable the endpoint, simply set the value to true:
management.health.case-document-am-api.enabled=true
The project uses Gradle as a build tool but you don't have install it locally since there is a
./gradlew
wrapper script.
To build project please execute the following command:
./gradlew build
To run all checks (including unit tests) please execute the following command:
./gradlew check
We use SemVer for versioning. For the versions available, see the tags on this repository.
To release a new version add a tag with the version number and push this up to the origin repository. This will then build and publish the release to maven.
This project is licensed under the MIT License - see the LICENSE file for details.