InterviewSolution
Saved Bookmarks
| 1. |
What Is Web Api Routing? |
|
Answer» ROUTING is nothing but PATTERN matching LIKE in MVC. All routes will get registered in Route TABLES. Example : Routes.MapHttpRoute( Name: "SampleWebAPIRoute", routeTemplate: “API/{controller}/{id} defaults: new { id = RouteParameter.Optional} }; Routing is nothing but pattern matching like in MVC. All routes will get registered in Route Tables. Example : Routes.MapHttpRoute( Name: "SampleWebAPIRoute", routeTemplate: “api/{controller}/{id} defaults: new { id = RouteParameter.Optional} }; |
|