Skip to content
HTTP verb & action name hybrid dispatcher for Web API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Strathweb.HybridApiActionSelector.SelfHost
Strathweb.HybridApiActionSelector.WebHost
Strathweb.HybridApiActionSelector
packages
.gitattributes
.gitignore
License.txt
README.md
Strathweb.HybridApiActionSelector.sln

README.md

HybridApiActionSelector

HTTP verb and action name hybrid dispatcher for Web API

Usage:

  1. Reference the Strathweb.HybridApiActionSelector project (or dll)

  2. Replace the default action selector in your API with the new one: config.Services.Replace(typeof(IHttpActionSelector), new HybridActionSelector());

You can read the introduction post on the blog: http://www.strathweb.com/2013/01/magical-web-api-action-selector-http-verb-and-action-name-dispatching-in-a-single-controller/

The code itself is adapted from the Web API core DefaultApiActionSelector (from System.Web.Http) https://github.com/ASP-NET-MVC/aspnetwebstack/blob/master/src/System.Web.Http/Controllers/ApiControllerActionSelector.cs

You can’t perform that action at this time.