Feature/migrate to minimal api (#662)

* migrate from classic controller to minimal api

* fix all PublicApi integration test

* update all nuget package add forget project

* fix pay now

* Adapt readme use in memory database

* undo AuthenticateEndpoint to use EndpointBaseAsync

* Update README.md

Co-authored-by: Steve Smith <steve@kentsmiths.com>

Co-authored-by: Steve Smith <steve@kentsmiths.com>
This commit is contained in:
Cédric Michel
2022-01-21 16:13:31 +01:00
committed by GitHub
parent 02b509711b
commit 1e13733d3d
63 changed files with 842 additions and 630 deletions

View File

@@ -55,18 +55,13 @@ You can also run the samples in Docker (see below).
### Configuring the sample to use SQL Server
1. Update `Startup.cs`'s `ConfigureDevelopmentServices` method as follows:
1. By default, the project uses a real database. If you want an in memory database, you can add in `appsettings.json`
```csharp
public void ConfigureDevelopmentServices(IServiceCollection services)
{
// use in-memory database
//ConfigureTestingServices(services);
```json
{
"UseOnlyInMemoryDatabase": true
}
// use real database
ConfigureProductionServices(services);
}
```
1. Ensure your connection strings in `appsettings.json` point to a local SQL Server instance.