I added OpenApi support to an Azure functions application (v3), using .ConfigureOpenApi()
in Program.Main()
. I use function decorations for the specific functions but how can I control the general API name, version etc, shown on ~/api/swagger/ui ?
Here is my Program.Main()
code:
public static void Main()
{
var host = new HostBuilder()
.ConfigureFunctionsWorkerDefaults(worker => worker.UseNewtonsoftJson())
.ConfigureOpenApi()
.ConfigureServices(services =>
{
services.AddLogging();
}
)
.Build();
host.Run();
}
}