The Stub API is a .NET service designed to simulate responses from different services within the IPAFFS domain.
You can either run the application directly on your local machine or via Docker.
Setting the environment variable ASPNETCORE_ENVIRONMENT
to Development
will use an in-memory database.
Setting the environment variable ASPNETCORE_ENVIRONMENT
to anything other than Development
will use a SQL Database.
The app setting ConnectionStrings__StubApiDatabase
will need set with a SQL Database connection string.
If not already installed, you will need Docker Desktop.
- Open terminal and
cd
into the root of the repository - Run
docker-compose build
- Run
docker-compose up
Following the completion of the steps above, the application should now be running on port 6000
.
If not already installed, you will need:
- .NET 8 Runtime and SDK - Microsofts .NET 8 Downloads
- Open terminal and
cd
into thesrc/STW.StubApi.Presentation
directory - Run
dotnet run
Following the completion of the steps above, the application should now be running on the port specified in the console output.
THIS INFORMATION IS LICENSED UNDER THE CONDITIONS OF THE OPEN GOVERNMENT LICENCE found at:
http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3
The following attribution statement MUST be cited in your products and applications when using this information.
Contains public sector information licensed under the Open Government licence v3
The Open Government Licence (OGL) was developed by the Controller of Her Majesty's Stationery Office (HMSO) to enable information providers in the public sector to license the use and re-use of their information under a common open licence.
It is designed to encourage use and re-use of information freely and flexibly, with only a few conditions.