zoukankan      html  css  js  c++  java
  • ASP.NET Web API

    WCF Web API is now ASP.NET Web API!

    We are happy to announce that ASP.NET Web API has now shipped withASP.NET MVC 4 Beta!

    ASP.NET Web API represents the joint efforts of the WCF and ASP.NET teams to create an integrated web API framework. You canget the bits and find articles, tutorials, samples and videos on the newASP.NET Web API home page. We have also setup aWeb API forum on the ASP.NET site where we will monitor customer questions and discussions.

    Some history

    For several years now the WCF team has been working on adding support for REST. This resulted in several flavors of REST support in WCF: WCF WebHTTP, WCF REST Starter Kit, and then finally WCF Web API. In parallel the ASP.NET MVC team shipped support for building basic web APIs by returning JSON data from a controller. Having multiple ways to do REST at Microsoft was confusing and forced our customers to choose between two partial solutions. So, several months ago the WCF and ASP.NET teams were merged together and tasked with creating a single integrated web API framework. The result is ASP.NET Web API.

    What is ASP.NET Web API?

    ASP.NET Web API is a framework for building and consuming HTTP services that can reach a broad range of clients including browsers and mobile devices. It’s also a great platform for building RESTful services. ASP.NET Web API takes the best features from WCF Web API and merges them with the best features from MVC.

    The integrated stack supports the following features:

    • Modern HTTP programming model
    • Full support for ASP.NET Routing
    • Content negotiation and custom formatters
    • Model binding and validation
    • Filters
    • Query composition
    • Easy to unit test
    • Improved Inversion of Control (IoC) via DependencyResolver
    • Code-based configuration
    • Self-host

    What does this mean for WCF Web API?

    ASP.NET Web API is effectively the next version of WCF Web API. There will not be a separate release for WCF Web API and we will retire all WCF Web API content by the end of the year. Please post all future discussions to the newASP.NET Web API forum.

    Why change the name?

    Web APIs have a foot in two worlds: the world of service orientation and the World Wide Web. We decided to align ASP.NET Web API with the rest of the Microsoft web platform, so we went with the brand that communicates this alignment. From a technical perspective we also decided to go with a new HTTP specific dispatcher instead of trying to carry forward the WCF dispatcher, so there is virtually no WCF code in the new stack.

    Does this mean I have to host my web APIs in IIS?

    You can continue to self-host your web APIs in your own processes just like you could with WCF. ASP.NET Web API is at its core a light-weightHTTP message handler pipeline that is host independent. Our current self-host support is actually based on the WCF HTTP transport, but you can host ASP.NET Web API on any HTTP host of your choosing.

    How do I migrate to my WCF Web API code to ASP.NET Web API?

    We have started putting together some migration guidance here and we will flesh out the guidance in the upcoming weeks.

    Is ASP.NET Web API on NuGet?

    Yes, you can find our new NuGet Packages here:

    Will ASP.NET Web API support a test client and help page generation?

    For the ASP.NET Web API Beta we focused on getting the right framework runtime in place. Unfortunately, this meant that we weren’t able to get the test client and help page support ported onto the new stack in time for Beta. We are working on these features and we expect to ship them before the final ASP.NET Web API release.

    Will the source code be made available?

    We will publish the source code in the upcoming weeks.

    Thank you for your support and please let us know if you have any questions or concerns!

     

    Last edited Feb 18 at 4:26 AM by danroth27, version 3

  • 相关阅读:
    语句的输入和输出 数据类型 运算符
    第一章 进制转换
    1. JDK 、 JRE 、JVM有什么区别和联系?
    office toolkit怎么用(以激活office professional 2013为例)
    PHP代码审计4-漏洞挖掘思路
    PHP代码审计3-SQL注入,CSRF,动态函数执行与匿名函数执行,unserialize 反序列化漏洞,变量覆盖,文件管理,文件上传
    PHP代码审计2-常用超全局变量,常用命令注入,常用XSS漏洞审计,文件包含
    PHP代码审计1-审计环境与调试函数
    小白日记54:kali渗透测试之Web渗透-补充概念(AJAX,WEB Service)
    小白日记53:kali渗透测试之Web渗透-SSL、TLS中间人攻击(SSLsplit,Mitmproxy,SSLstrip),拒绝服务攻击
  • 原文地址:https://www.cnblogs.com/AriLee/p/2701133.html
Copyright © 2011-2022 走看看