title: How to loop through all register api routes?
body: <p>I have this function:</p>
  
  <pre><code> protected void Application_Start()
      {
          Database.SetInitializer(new PersonDbInitializer());
  
          GlobalConfiguration.Configure(WebApiConfig.Register);
  
          RouteConfig.RegisterRoutes(RouteTable.Routes);
      }
  </code></pre>
  
  <p>The WebApiConfig is:</p>
  
  <pre><code>public static class WebApiConfig
  {
      public static void Register(HttpConfiguration config)
      {
          // Web API configuration and services
  
          // Web API routes
          config.MapHttpAttributeRoutes();
  
          config.Routes.MapHttpRoute(
              name: "DefaultApi",
              routeTemplate: "api/{controller}/{id}", 
              defaults: new { id = RouteParameter.Optional }
          );
      }
  }
  </code></pre>
  
  <p>At some point in the code I want to loop through all register api routes.
  Any idea how can i do it?</p>