Creating an API Controller
An API controller derives from ControllerBase, is marked [ApiController], and gets its address from [Route]. It asks for its DAO through an interface registered in Program.cs, and its actions return data that ASP.NET Core sends as JSON.
Updated

- Category
- ASP.NET Core
- Level
- Journeyman
- Tags
- [ApiController], aspnet-core, Controller, OpenAPI (rest-api), rest-api