ASP.NET team shipped the beta version of ASP.NET Web API which has been known as WCF Web API for more than a year. It has seen 6 preview versions and we have now nearly the final bits and pieces. The beta version of the product has been merged with ASP.NET MVC so that we won’t feel ourselves in a fork in the road in order to create REST APIs.
In my opinion, ASP.NET Web API is really exciting because it offers a simple and pluggable way to expose your data to the World. The one of the best parts is that you don’t have to just expose it as XML or JSON. You have the XML and JSON support out of the box but the format of the data is really up to you. Since nearly all of the devices out there today know how to communicate through HTTP, your data has the best possible reach.
One of the other great features of ASP.NET Web API is that everything has been built asynchrony in mind. So, you can scale out very easily. On the other hand, don’t act prejudicial that it is ASP.NET based and cannot run anywhere other than IIS. It has a self hosting capability as well (I honestly don’t know how it works at the background but it looks promising).
It has been not much since the product beta version has shipped but there are pretty good blog posts and articles about ASP.NET Web API out there. Instead of writing one, I would like to point you those resources.
Note
The follwing set of blog posts have been wtitten based on the beta release of ASP.NET Web API. It is highly likely that there will be some sort of conflicts if you are playing with a later version of the product.
Getting Started
- ASP.NET Web API (Part 1)
- One ASP.NET - Making JSON Web APIs with ASP.NET MVC 4 Beta and ASP.NET Web API
- ASP.NET MVC 4 Beta Released!
- Introduction to the ASP.NET Web API
- Introducing ASP.NET MVC 4 Beta with Web APIs
- Your First ASP.NET Web API (C#)
- WebAPI for the MVC Guy
- ASP.NET MVC 4, ASP.NET Web API and ASP.NET Web Pages v2 (Razor) now all open source with contributions
Routing
Validation, Data Annotations & Model Binding
Message Handlers, Filters & Formatters
- HTTP Message Handlers
- ASP.NET Web API and ELMAH Integration
- Using JSON.NET with ASP.NET Web API
- Disabling the xml formatter in ASP.NET Web API–The easy way
- Handling exceptions in your ASP.NET Web API
- ASP.NET Web API MediaTypeFormatters With MediaTypeMappings
- ASP.NET Web API Custom RouteDataMapping (MediaTypeMapping)
- API Key Authorization Through Query String In ASP.NET Web API AuthorizationFilterAttribute
- Implementing [RequireHttps] with ASP.NET Web API
- Creating Custom CSVMediaTypeFormatter In ASP.NET Web API for Comma-Separated Values (CSV) Format
HttpClient
- HttpClient is Here!
- ASP.NET Web API and HttpClient Available on NuGet
- HttpClient: Downloading to a Local File
- Push and Pull Streams using HttpClient
- Extending HttpClient with OAuth to Access Twitter
Dependency Injection & Unit Testing
- Using the Web API Dependency Resolver
- WebAPI and Ninject
- Autofac and ASP.NET Web API System.Web.Http.Services.IDependencyResolver Integration
- Introducing the Unity.WebAPI NuGet Package
- Web Api - Testing with HttpClient
- Autofac ASP.NET Web API (Beta) Integration
Self Hosting
Uncategorized
- Creating a Web API that Supports CRUD Operations
- Integrating Backbone.js with ASP.NET Web API
- Using ASP.NET Web API with ASP.NET Web Forms
- Implementing CORS support in ASP.NET Web APIs
- Implementing CORS support in ASP.NET Web APIs – take 2
- Async Streaming in ASP.NET Web API
- Asynchronous File Upload using ASP.NET Web API
- Task-base Asynchronous Programming in C# 5.0 and ASP.NET MVC Web Applications
- Resolve 404 in IIS Express for PUT and DELETE Verbs
Samples
- Contact Manager Web API
- ASP.NET Web API JavaScript Scenarios - Comments
- Implementing CORS support in ASP.NET Web APIs
- ASPNETWebAPISamples
- Thinktecture.Web.Http - Extensions for ASP.NET Web API
- Authentication Framework and Claims-based Identity for ASP.NET WebApi
- WebAPIContrib - Community Contributions for ASP.NET Web API
Also, there are some great videos done by @jongalloway on ASP.NET web site as well as some other videos:
ASP.NET Web API Video Series
- ASP.NET Web API, Part 1: Your First Web API
- ASP.NET Web API, Part 2: Getting Data
- ASP.NET Web API, Part 3: Delete and Update
- ASP.NET Web API, Part 4: Paging and Querying
- ASP.NET Web API, Part 5: Custom Validation
- ASP.NET Web API, Part 6: Authorization
ASP.NET Web API Videos of Mine On NedirTv (In Turkish)
Some Other Great Talks, Webcasts and Other Type of Visuals
- Building HTTP services with ASP.NET Web API in MVC 4 Beta
- Dan Roth on the new ASP.NET Web API
- Building Single Page Apps for desktop, mobile and tablet with ASP.NET MVC 4
- A look at ASP.NET MVC 4
After-Beta Resources
The following blog posts target the features and changes which will be available for the next release of the product after beta.
- ASP.NET Web API Content Negotiation and Accept-Charset
- Recent ASP.NET Web API Updates – April 24
- ASP.NET Web API Updates – April 27
- ASP.NET Web API Updates – May 3
Some Other Great Talks, Webcasts and Other Type of Visuals
If you have any other related blog post, tutorial, sample or whatever related to ASP.NET Web API, please comment and I will add them to this list. I will also add new things to this list that I come across. Enjoy:)
No comments:
Post a Comment