~/talk

Never RESTing – RESTful API Best Practices using ASP.NET Web API

Talkat NDC London 2017 · 2017-01-16..01-20· [api-design, dotnet]
slides:none on file

Practical rules and concrete tooling: APIs use ASP.NET Web API and C# with DTOs, AutoMapper and Mediator to keep controllers thin, FluentValidation for separate validators, Swagger for docs, OData for filtering/sorting/paging, and SSL via Let’s Encrypt. Prefer URL versioning, use a small set of HTTP status codes (200/201/400/401/403/404), return structured error arrays with per-field codes and docs links, avoid leaking implementation details, run integration tests before deploys, and prefer OAuth tokens over basic auth.

AI-written summary · about

  1. 0:00Introduction
  2. 0:53Why create a good API
  3. 1:53API consumption
  4. 3:28User experience for devs
  5. 6:10Simplicity and philosophy
  6. 7:18What is REST
  7. 12:03Defining restful APIs
  8. 13:09Pragmatism in design
  9. 15:29Design principles
  10. 17:41Using status codes
  11. 19:09Avoiding common pitfalls
  12. 21:34Context and clarity
  13. 23:30Consistency and verbs
  14. 26:08Resource relationships
  15. 29:29Sorting, filtering, paging
  16. 34:11Versioning strategies
  17. 36:18Error handling
  18. 39:13Security best practices
  19. 42:33ASP.NET implementation
  20. 45:43Validation techniques
  21. 48:28Documentation importance
  22. 50:08Maintenance and testing
  23. 52:32Q&A and conclusion
~/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.