/aspnet-swagger

Basic demo showing complex types and triple-slash comments for swagger

Primary LanguageC#MIT LicenseMIT

aspnet-swagger

Basic demo showing complex types and triple-slash comments for swagger based on the ASP.NET Swagger tutorial

This uses the XML Documentation Comments, configured in csproj, to populate Swagger.

ProductController

Returns a basic Product class and includes triple-slash /// comments that appear in Swagger.

Setup

  • You'll need to install .NET
  • From a command line run "dotnet run" or run from Visual Studio

URLs