Open
Description
Curerntly, 4 UI-related endpoints are not exposed to the OpenAPI document:
/swagger/ui
/swagger.{extension}
/openapi/{version}.{extension}
/oauth2-redirect.html
There are cases that devs want to expose those endpoints through Azure APIM. In that case, they have to manually add them. To reduce this manual efforts, this feature would be useful:
- Add the environment variable
OpenApi__ExposeUI
– its value will befalse
by default. If it's set totrue
, all four UI-related endpoints should be accessible through APIM. - Add the querystring parameter
exposeui
– itsvalue will befalse
by default. If it's set totrue
, all four UI-related endpoints should be accessible through APIM. In addition to that, this querystring parameter should take precedense to the environment variable.
Update: 2022-03-29
There have already been options – OpenApi__HideSwaggerUI
and OpenApi__HideDocument
that are applicable on the function app levels. To avoid providing dev with misleading information, the environment variable names might be changed.