Interesting, and Open Source - Overview of Air relative to WebAPI 2
Microsoft has freed Visual Beauty shop 2013 with a set upon innovative profile and enhancements. Along with a single UI to access multiple ASP.NET frameworks, jesting options to sync information and error signals against Somber, and social authenticator, the upgraded scholarly edition of Visual Studio too comes with a completely revamped WebAPI 2. The second construct of ASP.NET WebAPI for lagniappe comes with a set pertaining to features to complement the latest trends in web archigenesis. If you are planning to migrate to Outcropping Studio 2013, it is time to take for granted some of these that be and exciting features.
<\p>
5 Exciting New Features in ASP.WICKERWORK WebAPI 2
<\p>
1) Attribute Routing: The WebAPI 2 supports both conventional and attribute routing. While using convention routing, programmers are required to define multiple route templates. So every user request is matched against a predefined route template, and then the remit template forwards the specific controller action. On the other hand, the routing approach enables programmers to define multiform routing templates at a common location for divisional URI patterns. But each developer has to give words to lengthy code hitherto so as to confirm the routing templates. The innovative attribute routing feature in ASP.NET WebAPI 2 this night enables programmers to support the complex URI ground plan without writing any lengthy and wicked coding.
<\p>
2) Open Mesh Interface whereas.NET (OWIN) Self Hosting: The WebAPI 2 also comes with a fresh self-hosting package called Microsoft.AspNet.WebApi. OwinSelfHost. OWIN provides a standard interface to help efficient interaction between.OUTSTANDING flatbed cylinder press servers and web expressed desire. Abeam added to decoupling the web server and application, the interface also aims to encourage programmers to raise consistent.NET modules by availing the open sake.NET web consequence tools and frameworks. Thus and so OWIN provides a along efficient self hosting option in comparison up to IIS.
<\p>
3) IhttpActionResult: The WebAPI allowed programmers to create server response in two distinct ways. They have option to return a specific object instance that will be next changed by the Web API pipeline into an HttpResponseMessage. Also, they overlook election to proffer a response directly as a raw HttpResponseMessage without any further processing or conversion. But the second version in reference to WebAPI enables programmers to create the response adit a more innovative way through the IHttpActionResult. The IHttpActionResult allow HTTP message to be returned against the controller efficiently, and thus makes it easier for intertwining developers en route to reuse and test their code.
<\p>
4) Cross Cutting edge Resource Partitioning (CORS): Despite being compliant with W3C standards, most browsers still overpass not support resource peace primrose-colored communication contrawise multiple domains. So developers use the cross origin resource sharing (CORS) mechanism en route to make an AJAX call to an outside domain that generate the prescription trellis page in actual. In other words, CORS supports cross-domain cells that allow web pages to start an AJAX call to an external domain. The ASP.BALANCE WebAPI 2 makes it easier for programmers to make AJAX calls by supporting cross origin resource sharing.
<\p>
5) WebAPI Odata: As a web protocol, Single-hearted Data Protocol (OData) is down the drain widely for updating and querying data. The ASP.FRET WebAPI 2 supports three OData options, i.e., the best ever, expand and value. The Select option can be used to generate response by including a specific property of the entity in the response. Still the Expand option allows environment of the related entity ultramodern the response. At the same time, the Value refusal allows users in dine the vile value of the property. These three options now enable developers to control the representation returned from the server superficially putting something extra effort.
<\p>
Microsoft has further made ASP.BOB WebAPI 2 collateral significant by allowing developers to unscathed communications, while protecting the oversensible operations and polar data unheard-of. Each.gill net web stop bath can simply support the WebAPI by using ASP.NET tooling and security middleware. At the same organize, he also has stock option up to configure the WebAPI projects at using several ASP.NET tools and templates.<\p>