Skip to content

hmrc/agent-registration-risking

Repository files navigation

agent-registration-risking

This service handles the risking element of an agent registration made through agent-registration-frontend.

API

Task Supported Methods Description
/agent-registration-risking/submit-for-risking POST Submit a completed applicaton for risking. More...
/agent-registration-risking/application/:applicationReference GET Get the application for the given reference. More...
/agent-registration-risking/individual/:personReference GET Get the individual for the given reference. More...
/agent-registration-risking/application-status/:applicationReference GET Get the application risking status for the given reference. More...

Running the Service

To start the service, use the following commands:

  • sbt runTestOnly - this enables extra test endpoints
  • sbt run to launch the service normally.

Ensure that all dependent applications, including MongoDB and other microservices, are also running. See https://github.com/hmrc/agent-registration-frontend for that.

Project Setup in IntelliJ

When importing a project into IntelliJ IDEA, it is recommended to configure your setup as follows to optimize the development process:

  1. SBT Shell Integration: Utilize the sbt shell for project reloads and builds. This integration automates project discovery and reduces issues when running individual tests from the IDE.

  2. Enable Debugging: Ensure that the "Enable debugging" option is selected. This allows you to set breakpoints and use the debugger to troubleshoot and fine-tune your code.

  3. Library and SBT Sources: For those working on SBT project definitions, make sure to include "library sources" and "sbt sources." These settings enhance code navigation and comprehension by providing access to the underlying SBT and library code.

Here is a visual guide to assist you in setting up: img.png

Project specific sbt commands

Turn off strict building

In sbt command in intellij:

sbt> relax

This will turn off strict building for this sbt session. When you restart it, or you build on jenkins, this will be turned on.

Run with test only endpoints

sbt> runTestOnly

Run tests before check in

sbt> clean test

License

This code is open source software licensed under the Apache 2.0 License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages