Giter Site home page Giter Site logo

wigo4it / template-webapi-nswag Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 372 KB

.NET Core template for webapi's with nswag toolchain for openapi swagger

License: GNU General Public License v3.0

C# 87.19% Batchfile 2.47% Dockerfile 6.44% Shell 3.90%
dotnet core webapi swagger nswag rdoc pub sub pubsub metrics

template-webapi-nswag's Introduction

OpenAPI Templates

ASP.NET Core Web API Template with Swagger toolchain

This is the master repository, and contains the minimal set of functionality. The feature branches are following the forward integration branching strategy but doe not reverse integrate back to master. This way you can pick and choose which feature you want.

Available Features

Entity Famework Web API integrated EF, OData endpoints and Performance Metrics.
Entity Framework Rebus like Entity Framework but added with Rebus the (Pub/Sub) lean service bus.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Install template

nuget pack Wigo4It.WebApiNSwagTemplate.CSharp.nuspec
dotnet new -i Wigo4It.WebApiNSwagTemplate.CSharp.1.0.0.nupkg

The template W4WebAPiNSwag should now appear in the .NET core template list

Templates Short Name Language Tags
Console Application console [C#], F#, VB Common/Console
Class library classlib [C#], F#, VB Common/Library
....... ....... ....... ......
WIGO4IT NSwag OpenAPI W4WebApiNSwag [C#] WebAPI/OpenAPI/Swagger
ASP . NET Core with Angular angular [C#] Web/MVC/SPA
....... ....... ....... ......

You can also run the build-template.bat file from the command line.

Uninstall template

dotnet new -u Wigo4It.WebApiNSwagTemplate.CSharp

Using the template

Create a folder that reflects the name of your api i.e. MyApi (and your namespace). From within the folder execute the following command:

dotnet new W4WebApiNSwag

MyApi.csproj should now have been created, and the namespace should also reflect MyAPI in the source code files.

Building Docker Images

The docker compose yaml will automatically reflect your namespaces/projectname.

docker-compose up --build -d

The API should now be reachable from:

  • SWAGGER - Swagger API documentation page
  • REDOC - Redoc API documentation page

swagger screenshot redoc screenshot

Built With

  • VSCODE - The IDE used
  • DOCKER - Build, Ship, and Run Any App, Anywhere

Contributing

Pull requests are accepted

Authors

  • Sjef van Leeuwen - Initial work - github

License

This project is licensed under the GPL-V3 License - see the LICENSE.md file for details

template-webapi-nswag's People

Contributors

sjefvanleeuwen avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

sjefvanleeuwen

template-webapi-nswag's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.