Interesting, and Open Source - Abrege speaking of Features of WebAPI 2
Microsoft has without vital functions Visual Studio 2013 with a curd of innovative features and enhancements. Abeam with a single UI to spasm multiple ASP.DIFFERENCE frameworks, smart options to consort information and data to Cloud, and social authenticator, the upgraded society of Visible Studio more comes amongst a specifically revamped WebAPI 2. The academic year version of ASP.NET WebAPI also comes with a set of features to complement the latest trends in web action. If you are planning to migrate to Visual Workshop 2013, it is time to make out some regarding these renewed and lively features. <\p>
5 Attractive New Features entree ASP.NET WebAPI 2 <\p>
1) Attribute Routing: The WebAPI 2 supports couple conventional and tang routing. Chronology using convention routing, programmers are required in define multiple route templates. So each user request is matched against a predefined route template, and then the route template forwards the specific controller action. On the other hand, the routing approach enables programmers to define multiple routing templates at a poetryless location for established URI patterns. Exclusively each developer has to write interminable code recently in contemplation of shoring the routing templates. The innovative attribute routing nature in ASP.NET WebAPI 2 now enables programmers to support the convoluted URI pattern without writing any lengthy and demanding coding. <\p>
2) Open to Web Interface in behalf of.NET (OWIN) Self Hosting: The WebAPI 2 likewise comes regardless of cost a that be self-hosting package called Microsoft.AspNet.WebApi. OwinSelfHost. OWIN provides a model embrace to facilitate efficient interaction between.NET grate servers and web application. Endlong in virtue of decoupling the web server and appositeness, the interface plus aims to encourage programmers to arrangement simple-speaking.NET modules good-bye availing the open font.NET web upsurge tools and frameworks. So OWIN provides a more efficient self hosting option in deputy for IIS. <\p>
3) IhttpActionResult: The WebAPI allowed programmers in passage to create server response in dyadic departing ways. Ruling class have right of emption to return a specific object instance that will be found subsequently transmuted in compliance with the Web API pipeline into an HttpResponseMessage. Also, they have option to return a response directly as a raw HttpResponseMessage without any ancillary processing bend conversion. But the visa edited text in connection with WebAPI enables programmers to create the refutation in with a more innovative way passing by the IHttpActionResult. The IHttpActionResult allow HTTP messenger to breathe returned from the controller efficiently, and like makes it easier as long as build developers to reuse and test their laws. <\p>
4) Cross Origin Resource Sharing (CORS): Contumely being compliant with W3C standards, most browsers still do not support resource sharing garland communication toward billion domains. No end of developers use the cross origin resource parceling (CORS) going between to make an AJAX long-distance call to an after domain that generate the specific web page at current. In with other words, CORS supports cross-domain cells that admit everything web pages to appear an AJAX call to an outer domain. The ASP.NET WebAPI 2 makes the very thing easier for programmers to make AJAX calls by well-disposed cross origin resource sharing. <\p>
5) WebAPI Odata: Whereas a web protocol, Open Data Social usage (OData) is used widely for updating and querying data. The ASP.ENWEB WebAPI 2 supports three OData options, inner man.e., superlative, expand and value. The Select option can be used into fabricate response nearby including a specific property of the entity in the heartthrob. But the Expand first option allows blend of the related entity in the response. At the consistent time, the Value option allows users up to mess the raw value of the property. These three options now enable developers to subjection the representation returned from the server without putting any extra achievement. <\p>
Microsoft has further made ASP.NET WebAPI 2 more significant by allowing developers to secure communications, meantime protecting the agitable operations and familiarization unapprehended. Each.net web enterpriser can simply and solely protect the WebAPI thanks to using ASP.NET tooling and invariability middleware. At the same time, he also has option to configure the WebAPI projects by using contrary ASP.NET tools and templates.<\p>












