Back to Practical Aspnetcore

Map to JsonResult

projects/minimal-api/map/README.md

latest241 B
Original Source

Map to JsonResult

This is a new functionality in ASP.NET Core to enable creating API without using Controller.

In this example we create two endpoints, / and /about.

IEndpointConventionBuilder.Map responds to all HTTP Verbs.