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.
Returns a basic Product class and includes triple-slash /// comments that appear in Swagger.
- You'll need to install .NET
- From a command line run "dotnet run" or run from Visual Studio
- Products Controller List: http://localhost:5000/api/Products
- Products Controller by ID: http://localhost:5000/api/Products/1
- Products Swagger: http://localhost:5000/swagger/v1/swagger.json
- Swagger test page: http://localhost:5000/swagger/
- Values Controller (built-in): http://localhost:5000/api/values