~/talk

An Opinionated, Maintainable REST API Architecture for ASP.NET Core

Talkat NDC Oslo 2017 · 2017-06-14..06-16· [dotnet, api-design]
slides:none on file

Argues for a concrete REST pattern: controllers only route, requests use distinct DTOs not entities, validation moves to FluentValidation, business logic lives in request handlers wired via MediatR, mapping uses AutoMapper, and dependency injection (Autofac suggested) registers handlers and validators in Startup.cs. Shows a Create flow that returns the new ID, describes a BaseService that runs validators, and emphasizes unit tests and separate versioned assemblies. Applies to ASP.NET Core and legacy Web API and claims improved maintainability and testability.

AI-written summary · about

  1. 0:00Introduction
  2. 2:01Scaffolding in ASP.NET Core
  3. 5:37Understanding project setup
  4. 10:04The scaffolded controller
  5. 14:48The pitfalls of scaffolding
  6. 19:11Refactoring data models
  7. 23:36Implementing validation
  8. 28:32Mediator pattern
  9. 35:15Dependency injection
  10. 39:27Controller refactoring
  11. 42:34Conclusion and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.