This is the backend microservice that handles Returns related operations for Alcohol Duty Service.
- Create User Answers:
POST /alcohol-duty-returns/cache/user-answers
- Get (User Answers) Cache:
GET /alcohol-duty-returns/cache/get/:appaId/:periodKey
- Get Return For Period:
GET /alcohol-duty-returns/producers/:appaId/returns/:periodKey
- Get Obligation Details:
GET /alcohol-duty-returns/obligationDetails/:appaId
- Release Lock:
DELETE /cache/lock/:appaId/:periodKey
- Renew Lock (Keep Alive):
PUT /cache/lock/:appaId/:periodKey/ttl
- Set (User Answers) Cache:
PUT /alcohol-duty-returns/cache/set
- Submit Return:
POST /alcohol-duty-returns/producers/:appaId/returns/:periodKey
sbt run
The service runs on port 16001
by default.
sbt test
sbt it/test
To check if all the scala files in the project are formatted correctly:
sbt scalafmtCheckAll
To format all the scala files in the project correctly:
sbt scalafmtAll
To check if there are any scalastyle errors, warnings or infos:
sbt scalastyle
This is an sbt command alias specific to this project. It will run a scala format check, run a scala style check, run unit tests, run integration tests and produce a coverage report:
sbt runAllChecks
This code is open source software licensed under the Apache 2.0 License.