This micro-service provides a set of APIs to manage case access.
TODO: add more description / architecture diagram etc
The project uses Gradle as a build tool. It already contains
./gradlew
wrapper script, so there's no need to install gradle.
To build the project execute the following command:
./gradlew build
Run the application by executing:
./gradlew bootRun
This image is available in the HMCTS azure container registry. Image url is: hmctspublic.azurecr.io/aac/manage-case-assignment
See required config in: docker-compose.yml
API documentation is provided with Swagger.
You can view the json spec here: http://localhost:4454/v2/api-docs
Swagger UI is available here: http://localhost:4454/swagger-ui.html
To run all unit tests execute the following command:
./gradlew test
To run all integration tests execute the following command:
./gradlew integration
These are the tests run against an environment. For example if you would like to test your local
environment you'll need to export variables on your .bash_profile
script.
Details of the relevant environment variables can be found in the aca-docker/README.md
Note: For details of the emails and passwords to use in a local environment see the Create users and roles steps in ccd-docker project.
These tests can be run using:
./gradlew functional
We use checkstyle and PMD.
To run all checks execute the following command:
./gradlew clean checkstyleMain checkstyleTest checkstyleIntegrationTest pmdMain pmdTest pmdIntegrationTest
Create docker image:
docker-compose build
Run the distribution by executing the following command:
docker-compose up
This will start the API container exposing the application's port 4454.
By default, docker-compose.yml is pointing to AAT urls of all downstream dependencies. So, you need to enable hmcts proxy.
You can spin-up full aca docker stack locally. Instructions are available under aca-docker/README.md
.
This project is licensed under the MIT License - see the LICENSE file for details.