Skip to content

MirzaMerdovic/DotNetCore-WebApiStarter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASPNet Core Api Template

Build status CodeFactor FOSSA Status

Introduction

A thin template that should give you benefit of having the common stuff setup and couple of extra things that might be useful to people who are learning.

Where can I get it?

The template is available on Visual Studio Marketplace

Why do I need it?

In all honesty you don't it's just a template after all, but in case you are frequently building Web APIs you may found it useful, or may found parts that you can re-use to build one for yourself.

In case you are still reading this is what template brings on the table:

  • Configuration setup which includes appsettings.{env}.json transformation and reading the data using the Options pattern
  • CORS that is configure to allow everyhting, but it should be very easy to configure it for a real world scenario.
  • Response caching
  • Health check implementation using readiness and liveness probes
  • Swagger
  • FooController - a simple API controller:
    • Routing
    • HTTP response messages using IActionResult
    • File upload example that support complex models so that you can have metadata around IFormFile property that carries the file content
  • Custom middleware example

Feedback

If you have any issues or suggestion that you believe might make the template better please don't hestitate to let me know and if it's not a big bother please use one of the templates: bug/new feature

Releases

No releases published

Packages

No packages published

Languages