Skip to content

jnonce/WebApiTemplate

Repository files navigation

WebApiTemplate

This is a template project for WebApi services. It includes the basic structure for a RESTful Api service.

Current features:

  • Http hosting via Microsoft Owin and HttpListener. Run the service as an executable without relying on IIS.
  • Routing, model serialization, and binding by WebApi
  • Versioned Api routing. Api's change over time; keep the old Api available when adding or changing things.
  • Logging via Serilog
    • Each incoming request
    • Errors or warnings seen by WebApi or Owin
  • Validation via FluentValidation
  • Dependency Injection via Autofac
  • API schema info via Swashbuckle - Swagger style
  • Tests via mstest
  • Mocking via Moq

About

Template project for WebApi services

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages