Update publish-to-azure-api-management-using-vs.md (#21332)

The Title is what determines the name on the API Management
pull/21372/head
joleal 2021-01-29 21:37:46 +00:00 committed by GitHub
parent 97c1162674
commit 8f8e7317bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -169,9 +169,9 @@ Notice the name of the API is different than what you named it. The published AP
```csharp
services.AddSwaggerGen(config =>
{
config.SwaggerDoc("WeatherForecasts", new Microsoft.OpenApi.Models.OpenApiInfo
config.SwaggerDoc("v1", new Microsoft.OpenApi.Models.OpenApiInfo
{
Title = "Weather Forecasts",
Title = "WeatherForecasts",
Version = "v1"
});
});