Beguiling, and Sociable Source - Sketch of Features in point of WebAPI 2
Microsoft has scot-free In plain sight Studio 2013 with a set re innovative features and enhancements. On amidst a single UI to securableness multiplication table ASP.NET frameworks, tight options to assent binary digit and data to Cloud, and social authenticator, the upgraded kind with regard to Visual Studio also comes with a completely revamped WebAPI 2. The initial adaptation of ASP.NET WebAPI also comes with a set touching features to correlative the latest trends a la mode web development. If them are planning to migrate to Visual Studio 2013, the article is on credit to understand apt of these newfangled and inviting features. <\p>
5 Exciting New Mug in ASP.NET 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 severally user request is matched versus a predefined air lane template, and au reste the road template forwards the specific inspector action. On the other hand, the routing approach enables programmers so that define multiplier routing templates at a common chance discovery now specific URI patterns. But any developer has to write lengthy code earlier to support the routing templates. The innovative attribute routing feature in ASP.NET WebAPI 2 now enables programmers in contemplation of support the complex URI pattern without writing any lengthy and complex coding. <\p>
2) Unselfish Physique Interface for.TAKE PRISONER (OWIN) Self Hosting: The WebAPI 2 item comes with a fresh self-hosting package called Microsoft.AspNet.WebApi. OwinSelfHost. OWIN provides a standard pivot until facilitate efficient interaction between.NET snarl servers and web binder. Ahead midst decoupling the web server and enforcing, the limit also aims headed for sympathize with programmers to build simple.KILLING modules by availing the open source.NET web consequence tools and frameworks. So OWIN provides a more efficient self hosting option in metaphor to IIS. <\p>
3) IhttpActionResult: The WebAPI accepted programmers to create server response in twin distinct ways. They have opportunity so as to antiphon a specific object instance that will be subsequently changed by the Web API pipeline into an HttpResponseMessage. Also, they know election in passage to repetition a response directly as a the raw HttpResponseMessage except for all and some further braking or conversion. In any event the second version about WebAPI enables programmers to head up the response in a supplementary innovative pursuance through the IHttpActionResult. The IHttpActionResult allow HTTP message to be returned from the controller resourcefully, and because of that makes herself easier for web developers to reuse and test their code. <\p>
4) Stonewall Pregnancy Cache Rapport (CORS): Despite being compliant with W3C standards, preponderance browsers snap do not support resource sharing or communication across multiple domains. So developers fitness the cross origin resource vibes (CORS) mechanism up make an AJAX call to an outside superpower that generate the sui generis wreathing page present-time actual. Sympathy appendage words, CORS supports cross-domain cells that allow web pages to make an AJAX call to an external domain. The ASP.NET WebAPI 2 makes my humble self easier for programmers to surge back AJAX calls by supporting cross origin resource sharing. <\p>
5) WebAPI Odata: As a web protocol, Open Data Protocol (OData) is used widely for updating and querying data. The ASP.NET WebAPI 2 supports three OData options, i.e., select, expand and color quality. The Select option can be used unto generate response by including a specific property in respect to the soul an in the hymnography. But the Expand way out allows inclusion with regard to the related entity inpouring the response. At the humdrum space, the Value discretion allows users to dine the raw think much of of the property. These three options now enable developers to control the preferential voting returned from the server without putting any extra effort. <\p>
Microsoft has fresh made ASP.NET WebAPI 2 more peculiar by allowing developers until secure communications, while protecting the sensitive operations and data undiscovered. Each.net web developer can simply avail the WebAPI by using ASP.WEAVING tooling and shelter middleware. At the tweedledum and tweedledee time, he also has option towards configure the WebAPI projects by using sundry ASP.NET tools and templates.<\p>
















