NetNinja.REST.Api.Template 1.0.3

dotnet new install NetNinja.REST.Api.Template::1.0.3                
This package contains a .NET Template Package you can call from the shell/command line.

.Net Core Api Template

A .Net Core API template for REST projects.

Install and use this Template

Prequisition

  • .Net Core 2.2

Installation from nuget.org

  1. Open the windows console
  2. Install the template
dotnet new -i NetNinja.Api.Template
  1. Create a new folder with the name of the new project
mkdir MyWebApiProject
cd MyWebApiProject
  1. Create a new project based on this template
dotnet new coreapi -api REST 

Available Parameter

Longname Shortname Description
--api-project -api Choose the kind of WebAPI project, Options: rest, graphql and both.
--port-graphql -pg Optional. A Port for HTTP endpoint in launchSettings.json. Default is a random generated port.
--port-rest -pr Optional. A Port for HTTP endpoint in launchSettings.json. Default is a random generated port.

Live Demo

Swagger UI of the REST project

Swagger Demo

Graphql UI of the graphql project

Graphql Demo

Develop a new .Net Core Template

Howto create a nuget package

Get started with template generation

This template uses following samples

This template uses official samples

Contributing

If you want to contribute to this project and make it better, your help is very welcome.

  1. Fork this repository
  2. Clone the repository
  3. Create a branch
  4. Make necessary changes and commit those changes
  5. Push changes to GitHub
  6. Submit your changes for review

https://github.com/firstcontributions/first-contributions

This package has 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.0.3 3,267 7/1/2019