Whilst I am a big fan of ServiceStack for building REST APIs, it switched last year from a free open-source tool to a licensed business model. For small open source projects without a commercial backer, it means that we have to take a second look at ASP.NET Web API, Microsoft’s own offering. If you are developing…
How to handle file uploads in our APIs?! In today’s post, I show the solution available in ASP.net Web API (part of ASP.net MVC 4). Uploading files using ASP.net Web API “DEV Elemar In Portuguese, but a very nice example of using IISExpress.Automation to run integration Web API testing.
Single parameters work fine in either of these RPC scenarios and that’s to be expected. ModelBinding always works against a single object because it maps a model. But what happens when you want to pass multiple parameters? Consider an API Controller method that has a signature like the following:
public string PostAlbum(Album album, string userToken)
Here I am asking to…