What is Swagger UI?
Swagger UI is an API documentation tool that helps us to visualize our API resources and with visual documentation, it is easier for consuming and implementing APIs.
As our backend app grows managing APIs become difficult. So it is highly advisable to create API documentation. But generating and maintaining our own API documentation is a painful task this is where Swagger UI comes into the play. The swagger UI does the hard work of generating and maintaining our API docs, making sure our documentation stays up-to-date as our API evolves.
As we know that we have to register all our services in Startup.cs file.
Note: This using namespace has to be added to use OpenApiInfo class.
Now, we don't have to configure anything else. As we keep adding more APIs it will start to appear in this Documentation automatically.
Thanks for reading.
Please share and ❤️ if this was helpful.