Mike has wrote this really good blog on writing a custom HttpParameterBinding at
http://blogs.msdn.com/b/jmstall/archive/2012/05/11/webapi-parameter-binding-under-the-hood.aspx
My blog just want to add a little bit complex example where you might want to have an action which looks like the following:
Then the TestItem object can sometimes come from query like /?Name=Hongmei or coming from body. {Name:Hongmei}. It will be easy to write a custom parameter binding to do that.
Step 1: Write a custom FromUriOrFromBodyParameterBinding
Step 2: Wire the FromUriOrFromBodyParameterBinding to the configuration