Mid REST API

How should you structure your API endpoints?

  • Use nouns, not verbs → GET /users (not /getUsers).
  • Use plural form → /users, /orders.
  • Nested resources for relationships → /users/1/orders.
  • Consistent naming conventions.
  • Avoid exposing internal DB structure.

More from ASP.NET Core Web API Tutorial

All questions for this course