Tag: ApiController

  • How to quickly make an API controller for a data object in C#

    How to quickly make an API controller for a data object in C#

    If you need a quick API controller, first make sure you are using Microsoft.AspNetCore.Mvc, then inherit the base class. I am going to do it for locations here: You’ll note this part: The first part defines the route for your api. [controller] will be replaced with the name of the class -Controller. In other words,… Read more