Member-only story
Top Tools for API Documentation in .NET 9.0: Beyond Swagger🚀
3 min readApr 10, 2025
In .NET 9.0, you can use alternatives to Swagger for API documentation and testing, such as:
- NSwag: A Swagger/OpenAPI toolchain for .NET, NSwag allows you to generate Swagger specifications, client code, and server code from existing APIs.
- Swashbuckle: Although it is essentially a Swagger implementation, it is widely used in .NET projects to generate API documentation.
- OpenAPI.NET: A library that provides a way to read, write, and manipulate OpenAPI documents in .NET applications.
- ReDoc: A tool for generating rich API documentation from OpenAPI specifications.
- GraphQL: If you’re considering a different approach to API design, GraphQL can be an alternative to RESTful APIs, providing a different way to query and interact with your APIs.
Here’s a simple example of an ASP.NET Web API project using .NET 9.0:
Step 1: Create a New ASP.NET Web API Project
Open a terminal or command prompt.
dotnet new webapi -n MyApiProject
Run the following command to create a new ASP.NET Web API project:
cd MyApiProject