WebAPI Archives - FMT

Search Archive
Beyond WebAPI Conventions, Migrating to WebAPI 2
Trending @Microsoft: Routing, by Convention, is how ASP.NET WebAPI matches a URI String to an action. WebAPI 2 supports a new type of routing, which leverages attributes. As the name implies, attribute routing uses attributes to define routes rather than Parametrized Strings, as in WebAPI. Attribute routing provides more control over the URIs and scale of a web API. This implies… Support for Hierarchical URI schemes Eliminating magic route templates Intuitive route constraints HTTP Method attributes Route prefixes …And WebAPI 2 now provides the attributes to easily support application modeling. WebAPI and WebAPI 2 are complementing technologies and can be mixed and matched within the same API; let's look at the similarities, strengths, and weakness of the WebAPI versions… WebAPI by convention… Routing tables Routing templates Routing actions HTTP Methods OData query MapHttpRoute WebAPI 2 by attribute… Routing tables Routing attributes Routing actions HTTP attributes OData query MapHttpAttributeRoute Migrating from […]
©
2024
 FMT Consultants
|
Privacy Policy
|
Your Privacy Choices
X
FMT

Contact Us

X
FMT

Newsletter Sign-up

menu linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram