title: How to handle hierarchical routes in ASP.NET Web API?
body: <p>Currently I have two controllers </p>
  
  <p>1 - Parent Controller</p>
  
  <p>2 - Child Controller</p>
  
  <p>I access my Parent Controller like this</p>
  
  <pre><code>someurl\parentcontroller
  </code></pre>
  
  <p>Now I want to access my children controller like this</p>
  
  <pre><code>someurl\parentcontroller\1\childcontroller
  </code></pre>
  
  <p>This last url should return all the children of a particular parent. </p>
  
  <p>I have this route currently in my global.asax file </p>
  
  <p><code>routes.MapHttpRoute ("Route1", "{controller}/{id}", new { id = RouteParameter.Optional });</code></p>
  
  <p>I am not sure how can I achieve my <code>parent\id\child</code> hierarchy.. How should I configure my routes to achieve this? Ideas? </p>