The 1st route works.
e.g. api/Shelves/SpaceTypes/1
api/Shelves/SpaceTypes/1
The 2nd route doesn\'t work. I get multiple actions error.
e.g api/Shelves/1<
api/Shelves/1<
@Kristof is almost right. You should make your second route:
config.Routes.MapHttpRoute( "DefaultApiWithId", "api/{controller}/{id}", new { action = "Get" }, new { id = @"\d+ } );