Announcing ASP.NET Web API Recipes - StrathWeb


May 21st, 2014

Announcing ASP.NET Web API Recipes

81iUYKuTehL._SL1500_It is my pleasure to announce that this summer my ASP.NET Web API book will be released. It’s entitled "ASP.NET Web API Recipes", and will be published by Apress.

While the publication date is not set in stone yet (probably early August), you can already pre-order at:

The idea behind the book is quite simple – to discuss and dissect some of the most common problems and issues you might encounter in your work with Web API solutions.

There is going to be a total of 12 chapters with about 10 recipes per chapter (the number varies obviously). You will also get a full VS project with source code per each recipe.


The table of contents is as follows:

  • – Chapter 1: ASP.NET Web API in ASP.NET
  • – Chapter 2: Hosting ASP.NET Web API outside of IIS
  • – Chapter 3: Routing
  • – Chapter 4: Content Negotiation and Media Types
  • – Chapter 5: Configuration and Customization
  • – Chapter 6: Embracing HTTP with ASP.NET Web API
  • – Chapter 7: Exceptions, Troubleshooting and Documenting
  • – Chapter 8: Cross Domain and Push Communication
  • – Chapter 9: Dependency Injection
  • – Chapter 10: Securing an ASP.NET Web API Service
  • – Chapter 11: Testing Your ASP.NET Web API
  • – Chapter 12: OData

Each recipe contains 4 sections:

  • Problem – short definition of a problem/issue that will be addressed in the recipe
  • Solution – quick summary of how it can be resolved/implemented in Web API
  • How It Works – a look behind the scenes – into Web API source code, into source of some external library that might be used or even into an RFC that defines a relevant standard
  • The Code – a dive into the code needed to solve your problem

and takes more or less 3-4 pages. Below are some sample recipes, just to give you a taste of what’s coming:

  • – Recipe 3-11 Localize Routes
  • – Recipe 5-1 Throttling ASP.NET Web API
  • – Recipe 6-8 Versioning With Attribute Routing
  • – Recipe 8-4 Support Streaming and Push from Web API
  • – Recipe 9-5 Write a Custom DI Adapter
  • – Recipe 11-5 Simplify Tests with IHttpActionResult

If you are used to the blog format, and enjoy the style used here, I am sure (or, well, I hope) you will find the book enjoyable too.

Also, this is by no means an attempt to create an A-Z compendium/reference of ASP.NET Web API – there are other great books that have done that already. Instead I focus on this very readable, no-nonsense, straight-to-the-point, problem-solution format which will allow us (me, and you the reader) to explore specific scenarios directly.

Apress offers an Alpha program so you can already get an ebook with some of the draft/early versions of a number of chapters.


Be Sociable, Share!

  • Vitalii Biliienko

    Great news! Is it a book I would grab if I haven’t worked with Web API before or should I go and learn stuff first? I have enough experience with ASP.NET MVC though

  • Pingback: Dew Drop – May 22, 2014 (#1782) | Morning Dew

  • Tugberk Ugurlu


  • Simon Cowie

    Nice one. This has been a really helpful blog so imagine the book will be great.

  • Cecil L. Phillip

    I’m sold!!

  • Lars Michael

    Sounds good. How will your book place itself compared to RESTFul Web Services Cookbook ( Except from being more technology (ASP.NET) specific.

  • Abhishek jain

    Congrats Filip!

  • Imar Spaanjaars

    Hi there,

    Does the book come with the source code as mentioned in this post? It’s not available on the Apress website yet. Maybe they are still working on the upload?

    BTW: great book with lots of useful insights. It has helped me a lot.



    • Filip W

      thanks! I’ve put all the source code here on Github as well

      • Imar Spaanjaars

        Hi Filip,

        Excellent, thanks. Searched high and low for this the other day but couldn’t find it. Thanks for the speedy reply.