Ycode.RestApi 1.1.0

dotnet new install Ycode.RestApi::1.1.0                
This package contains a .NET Template Package you can call from the shell/command line.

Project Template of ASP.NET Core Web API with API Documentation

This is a C# project template for the .NET Core Template Engine. It contains a simple ASP.NET Core Web API with API documentation by NSwag.

Installation

You can install this template via NuGet package.

dotnet new -i Ycode.RestApi

After the installation completes, this command will show a list of templates. You can find restapi in it.

How to use template

You can create a working ASP.NET Core Web API project using this template.

mkdir Example
cd Example
dotnet new restapi --swaggerTitle="My API"
dotnet run

Now, open https://localhost:62182/swagger in your browser, then you will see Swagger UI of your new Web API.

You can try running the API via this web UI. Expand Example and GET /api/v1/Example, and click on Try it out button and Execute button, then you will see the response from the API.

API Document Web UI

  • .NETCoreApp 3.1

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0 2,500 6/13/2020
1.0.0 512 5/25/2020