Update publish-to-azure-api-management-using-vs.md (#21332)
The Title is what determines the name on the API Managementpull/21372/head
parent
97c1162674
commit
8f8e7317bc
|
@ -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"
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue