Open MassimoC opened 5 years ago
The idea of this is great but the implementation is not there yet imo.
For example it has no support for OpenAPI so it will not work with gateways
Actually in the first simple implementation I've explicitly excluded the Health check controller from the Open API generation ([ApiExplorerSettings(IgnoreApi = true)]) I thought was better to hide all those technical operations ... I don't have a clear opinion on this.
My vision on this is that it should be include to improve discovery. Restricted access is up to the gateway or app
But it's up to you
Add this as guidance on the maturity level2
I can pick this up if you want
consider to use the health check middleware (ASPNET core 2.2) https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/health-checks?view=aspnetcore-2.2