Advertisement

URL Routing: Part I

  • Adam Freeman
Chapter

Abstract

In Chapter 19, I explained that URL routing is integrated into the Web API dispatch process by one of the built-in message handlers. In this chapter, I explain how URL routing works in a Web API application and demonstrate how to create convention-based routes, where routes are defined in a single place and used to match requests to controllers and actions throughout the application, known as convention-based routing. In Chapter 21, I continue on the topic of URL routing and show you a different approach that defines routes through attributes applied to controller classes and action methods, known as direct or attribute-based routing. Table 20-1 summarizes this chapter.

Keywords

Action Method Controller Class Variable Segment Route Data Custom Route 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Adam Freeman 2014

Authors and Affiliations

  • Adam Freeman
    • 1
  1. 1.Milton KeynesUnited Kingdom

Personalised recommendations