The Import Control Entry Declaration Outcome responsibilities:
- receive and persist outcomes/decisions, and make them available to authenticated users. Message Types:
- Accepted Amendment <CC304> / IE304
- Rejected Amendment <CC305> / IE305
- Accepted Declaration <CC328> / IE328
- Rejected Declaration <CC316> / IE316
- MongoDB instance
- Run locally:
sbt run
which runs on port9815
by default - Run with test end points:
sbt 'run -Dplay.http.router=testOnlyDoNotUseInAppConf.Routes'
- Run Unit Tests:
sbt test
- Run Integration Tests:
sbt it:test
Path | Supported Methods | Type | Description |
---|---|---|---|
/ |
GET | External | Endpoint for users to list unacknowledged decisions. |
/:correlationId |
GET | External | Endpoint for users to fetch an unacknowledged decision based on correlation Id. |
/:correlationId |
DELETE | External | Endpoint for users to acknowledge an unacknowledged decision based on correlation Id. |
/outcome |
POST | Internal | Endpoint for Decision microservice to save a decision to the database. |
/import-control/housekeeping/status |
GET | Internal | Endpoint to get housekeeping status. |
/import-control/housekeeping/status |
PUT | Internal | Endpoint to set housekeeping status. |
/import-control/housekeeping/submissionid/:submissionId |
PUT | Internal | Endpoint to set a short ttl on a specified record. |
/import-control/housekeeping/eoriandcorrelationid/:eori/:correlationId |
PUT | Internal | Endpoint to set a short ttl on a specified record. |
/import-control/test-only/outcomes/:submissionId |
GET | Test | Endpoint to get decision XML by submission Id. |
/import-control/test-only/fulloutcome/:eori/:correlationId |
GET | Test | Endpoint to get the full stored outcome JSON by EORI and correlationId. |
For more information on external API endpoints see the YAML at Developer Hub or using the endpoint below
Path | Supported Methods | Description |
---|---|---|
/api/conf/:version/*file |
GET | /api/conf/1.0/application.yaml |
This code is open source software licensed under the Apache 2.0 License