aspnetcore-openapi

A demonstration of different ways to add OpenAPI (Swagger) support to ASP.NET Core applications

APACHE-2.0 License

Stars
6
Committers
2

ASP.NET Core 🤝 OpenAPI

Introduction

This sample project demonstrates three different ways that you can expose OpenAPI specifications for ASP.NET Core applications:

  1. ASP.NET Core OpenAPI
  2. NSwag
  3. Swasbuckle.AspNetCore

The sample application is a simple Todo list application that allows you to create, read, update, and delete Todo items. The application is implemented using ASP.NET Core 9.0 with Minimal APIs and Razor Pages.

Building and Testing

Compiling the application yourself requires Git and the .NET SDK to be installed.

To build and test the application locally from a terminal/command-line, run the following set of commands:

git clone https://github.com/martincostello/aspnetcore-openapi.git
cd aspnetcore-openapi
./build.ps1

Feedback

Any feedback or issues can be added to the issues for this project in GitHub.

Repository

The repository is hosted in GitHub: https://github.com/martincostello/aspnetcore-openapi.git

License

This project is licensed under the Apache 2.0 license.