Skip to content

uktrade/trade-remedies-api

Repository files navigation

Trade Remedies API

image GitHub license GitHub open-pull-requests Generic badge Generic badge codecov

API Service for the Trade Remedies Service, a trade dispute case management system. This service is a Django Rest Framework based application and provides endpoints to support an internally facing "Caseworker" portal for DIT Investigators and a customer facing "Public" portal for organisation members and their collaborators.

Getting started

Copy local.env.example to local.env. Most of the settings work out of the box, however you will need to ask a live services team colleague for S3, AV, GOV Notify and Companies House keys (alternatively refer to the dev PaaS environment setup in Vault).

All other local setup and usage should be performed using the TRS Orchestration Project, clone the repo and follow the README instructions to get instances of the API, Caseworker and Public services running locally.

Interacting with Django

Most interactions can be performed using the makefile targets described in the TRS Orchestration Project.

Alternatively, in the orchestration project repo:

make bash service=api
./manage.py

will list all the management commands available. Some pertinent ones are listed below.

Organisation branding

"Branding" is orchestrated through the environment variables ORGANISATION_NAME and ORGANISATION_INITIALISM. However, some database objects also need to be updated to reflect any new branding. Use the following commands to complete rebranding:

python manage.py rebrand_organisation

Revert to old branding (defined in the management command):

python manage.py rebrand_organisation --revert

Testing

Tests (including BDD testing) should be invoked from the orchestration project repo.

Fitness Functions

Current fitness metrics for TRSV2

About

Back end API to support the Trade Remedies service.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages