❔ IHealthCheck and Swagger
Hello. I'm experimenting with the interface
I used to have a endpoint that would just return
I followed the documentation (https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/health-checks?view=aspnetcore-7.0) and it kinda works, except Swagger complains a lot.
This is what my Controller looks like (the health check part):
In
When I run the program, I get this message from Swagger: (attached image)
IHealthCheck in my Web Service.I used to have a endpoint that would just return
200OK called /health, but I discovered that there was a Interface for this, and with many functionalities, so I want to try get it working.I followed the documentation (https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/health-checks?view=aspnetcore-7.0) and it kinda works, except Swagger complains a lot.
This is what my Controller looks like (the health check part):
In
Program.cs I have the following code:When I run the program, I get this message from Swagger: (attached image)
