Skip to Content
Mastering ASP.NET Web API
book

Mastering ASP.NET Web API

by Mithun Pattankar, Malendra Hurbuns
August 2017
Intermediate to advanced
330 pages
7h 26m
English
Packt Publishing
Content preview from Mastering ASP.NET Web API

Routing best practices

ASP.NET Core provides a lightweight, completely configurable Routing mechanism in the form of middleware, Convention-based routing, direct or Attribute Routing, constraints, and so on. Proper usage of these routing features is necessary for optimal performance of the application.

Some of the best practices that need to be considered are summarized next; these practices will evolve as more applications are built with various use cases. These lists may or may not apply to your application depending on your application's needs:

  • Use the inbuilt UseMvc middleware which sits on top of the Routing middleware for achieving Routing strategy.
  • Conventional routing is sufficient a CRUD style of web API is being developed. It reduces ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical ASP.NET Web API

Practical ASP.NET Web API

Badrinarayanan Lakshmiraghavan
Pro ASP.NET Web API: HTTP Web Services in ASP.NET

Pro ASP.NET Web API: HTTP Web Services in ASP.NET

Tugberk Ugurlu, Alexander Zeitler, Ali Kheyrollahi

Publisher Resources

ISBN: 9781786463951Supplemental Content