Back to Practical Aspnetcore

OpenAPI Document Generator

projects/net9/open-api-3/README.md

latest392 B
Original Source

OpenAPI Document Generator

This example shows how to use the built in support for generating OpenAPI document. In the previous version of ASP.NET Core you have to rely third party packages such as NSwag to do so.

You can see that we use .ExcludeFromDescription(); to exclude MapGet("\") from being described in the generated OpenAPI document.