A Restful API that facilitates the functioning of the doc-assembly web component, by proxying calls to external services, and aggregating backend calls
git clone https://github.com/hmcts/dg-docassembly-api.git
cd dg-docassembly-api/
./gradlew clean
./gradlew build
VPN connection is required For local setup only, there is a need to set the port in main/resources/application.yaml to 8080 to avoid conflicting with CFTLib
Requires docker desktop running.
You need to be logged in to Azure and have access to the ACR registry to pull the necessary containers for the application to run.
If you are not logged in, you can do so by running az login in your terminal.
Followed by az acr login --name hmctsprod to log in to the ACR registry
./gradlew bootWithCCD
You can run contract or pact tests as follows:
./gradlew clean
./gradlew contract
To run the provider pact tests, first comment the broker configuration in the BaseProviderTest and uncomment the pact folder configuration, then run the below command to execute the provider pact tests locally.
./gradlew providerContractTests
To view our REST API go to http://{HOST}/swagger-ui/index.html On local machine with server up and running, link to swagger is as below
http://localhost:8080/swagger-ui/index.html if running on AAT, replace localhost with ingressHost data inside values.yaml class in the necessary component, making sure port number is also removed.
A list of our endpoints can be found here