Submission Status API is a database wrapper for file upload services
In order to run the service you will need the following dependencies
- .NET 6
In order to restore and build the source code for this project, access to the epr-packaging-common
package store will need to have been setup.
- Login to Azure DevOps
- Navigate to Personal Access Tokens
- Create a new token
- Enable the
Packaging (Read)
scope Add the following to yoursrc/Nuget.Config
- Enable the
<packageSourceCredentials>
<epr-packaging-common>
<add key="Username" value="<email address>" />
<add key="ClearTextPassword" value="<personal access token>" />
</epr-packaging-common>
</packageSourceCredentials>
Clone the epr_common repository and add it as a project to the solution you wish to use it in. By default the repository will reference the files as if they are coming from the NuGet package. You simply need to update the references to make them point to the newly added project.
- Complete
appsettings.json
file (orappsettings.Development.json
if exists) with correct details - On
EPR.SubmissionMicroservice.API
directory, execute:
dotnet run
Generate Personal Access Token. Then run in terminal at the solution src root (epr_pom_api_submission_status/src
)
docker build -t submissionmicroservice -f EPR.SubmissionMicroservice.API/Dockerfile --build-arg PAT={YOUR PAT HERE} .
Then after that command has completed run
docker run -p 5167:3000 --name submissionmicroservicecontainer submissionmicroservice
Do a GET Request to http://localhost:5167/admin/health
to confirm that the service is running
On root directory, execute
dotnet test
N/A
N/A
Use debugging tools in your chosen IDE
The structure of the appsettings.json
file can be found in the repository.
Example configurations for the different environments can be found in
epr-app-config-settings.
Variable Name | Description |
---|---|
Database__AccountKey | The database account key |
Database__ConnectionString | The database connection string |
Database__Name | The database name |
Database__MaxRetryCount | The database maximum number of retry attempts |
Database__MaxRetryDelayInMilliseconds | The database maximum delay between retries in milliseconds |
LoggingApi__BaseUrl | The base URL for the Logging API WebApp |
ADR-021: Registration Data Upload
N/A
N/A
Health check - {environment}/admin/health
src/EPR.SubmissionMicroservice.API
- API .NET source filessrc/EPR.SubmissionMicroservice.API.IntegrationTests
- API .NET integration test filessrc/EPR.SubmissionMicroservice.API.UnitTests
- API .NET unit test filessrc/EPR.SubmissionMicroservice.Application
- Application .NET source filessrc/EPR.SubmissionMicroservice.Application.UnitTests
- Application .NET unit test filessrc/EPR.SubmissionMicroservice.Data
- Data .NET source filessrc/EPR.SubmissionMicroservice.Data.UnitTests
- Data .NET unit test filessrc/TestSupport
- .NET test support files
Please read the contribution guidelines before submitting a pull request.