title: The route template separator character '/' cannot appear consecutively when adding action to default route
body: <p>I have a Web API 2 project hosted through an OWIN middleware. Everything worked perfectly fine and I am able to call my APIs as expected. But, my WebApiConfig defines the default route as follows:</p>
  
  <pre><code>config.Routes.MapHttpRoute(
      name: "DefaultApi",
      routeTemplate: "api/{controller}/{action}/{id}",
      defaults: new { id = RouteParameter.Optional }
  );
  </code></pre>
  
  <p>Accordingly, I have to call my APIs using URLs similar to: <code>/api/values/dosomething</code></p>
  
  <p>This worked for me until I decided to document my API. For that, I first tried using the <a href="https://www.nuget.org/packages/Microsoft.AspNet.WebApi.HelpPage/" rel="nofollow">WebAPI Help Page package</a> which did not work. Then I thought I should try <a href="https://github.com/domaindrivendev/Swashbuckle" rel="nofollow">Swashbuckle Swagger</a> and see if that helps me avoid the problem altogether, but unfortunately, in both cases I got the same error:</p>
  
  <blockquote>
    <p>The route template separator character '/' cannot appear
    consecutively. It must be separated by either a parameter or a literal
    value. Parameter name: routeTemplate</p>
  </blockquote>
  
  <p>After trying a few things, it turned out that when change the route template and remove the <code>{action}</code> part, the error is gone. But, I cannot really do that because the whole project assumes that URLs include the action method name in them.</p>
  
  <p>So anyway, I would like to know the following:</p>
  
  <ol>
  <li>Why is this happening in the first place?</li>
  <li>Is there a way to modify this behavior?</li>
  </ol>
  
  <p>Thanks in advance!</p>