I have one endpoint defined with the following route:
/api/{id}
This interferes with the standard swagger.json path, that ends up being
/api/swagger.json
I wan to configure all swagger URLS so they don’t have the /api prefix, alternatively have /docs instead of /api.
I have tried:
Servers = new List<OpenApiServer>() {new OpenApiServer()
{
Url = "https://localhost:7071/docs",
Description = "Localhost"
}
as well as proxies.json and local.settings.json settings. Nothing seems to bite.
Running .net 8 out of process azure function with C#