Configure ASP.NET for the API to work #7
@ -102,7 +102,7 @@ public class Program
|
|||||||
{
|
{
|
||||||
var provider = app.Services.GetService<IApiVersionDescriptionProvider>();
|
var provider = app.Services.GetService<IApiVersionDescriptionProvider>();
|
||||||
|
|
||||||
foreach (var description in provider.ApiVersionDescriptions)
|
foreach (var description in provider!.ApiVersionDescriptions)
|
||||||
{
|
{
|
||||||
var url = $"/swagger/{description.GroupName}/swagger.json";
|
var url = $"/swagger/{description.GroupName}/swagger.json";
|
||||||
var name = description.GroupName.ToUpperInvariant();
|
var name = description.GroupName.ToUpperInvariant();
|
||||||
|
Loading…
Reference in New Issue
Block a user