Chapter 5. Mapping URLs to methods using conventional routing
This chapter covers
- Mapping URLs to action methods using conventions
- Using constraints and default values to match URLs
- Generating URLs from route parameters
In chapter 4, you learned about the MVC design pattern, and how ASP.NET Core uses it to generate the UI for an application. Whether you’re building a traditional HTML web application or creating a Web API for a mobile application, you can use the MvcMiddleware to generate a response. This is typically placed at the end of the middleware pipeline and handles requests after all the other middleware in the pipeline have executed.
In ASP.NET Core, you build MVC applications by creating controller classes that contain action methods. ...
Get ASP.NET Core in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.