title: Display ASP.net WebAPI Documentation in different MVC application
body: <p>In my solution, I've two projects. One ASP.Net WebAPI with several controllers and actions and another an MVC5 application. When navigating to /Help route of WebAPI project itself, the documentation is rendering fine.</p>
  
  <p>The goal is to show the same documentation from the MVC application (MVC is the front-end and WebAPI is UI-less).</p>
  
  <p>I've referenced API assembly and added namespace of it to the <code>RouteCollection</code> in the MVC application; and, copied the necessary views to MVC application. The Help controller itself is showing fine.</p>
  
  <p>The issue is, <code>Configuration.Services.GetApiExplorer().ApiDescriptions</code> collection is empty. My guess, ApiExplorer is searching in the MVC assembly and not in the API assembly.</p>
  
  <p>I tried defining my own <code>IAssembliesResolver</code> as follows:</p>
  
  <pre><code>public class ApiAssemblyResolver : DefaultAssembliesResolver
  {
      /// &lt;summary&gt;
      /// 
      /// &lt;/summary&gt;
      /// &lt;returns&gt;&lt;/returns&gt;
      public override ICollection&lt;Assembly&gt; GetAssemblies()
      {
          var controllersAssembly = Assembly.GetExecutingAssembly();
          return new [] { controllersAssembly };
      }
  }
  </code></pre>
  
  <p>and then tried to set it in the <code>HelpController(HttpConfiguration config)</code> controller (in API assembly) as follows:</p>
  
  <pre><code>public HelpController(HttpConfiguration config)
  {
      config.Services.Replace(typeof(IAssembliesResolver), new ApiAssemblyResolver());
      Configuration = config;
  }
  </code></pre>
  
  <p>ApiDescriptions collection is empty.</p>
  
  <p>First of all, is what I'm trying to do even possible? If yes, how should I go about achieving this?</p>
  
  <p><strong>Update</strong>
  The trouble seems to be in <code>HttpConfiguration</code>. <code>ApiExplorer</code> goes off of <code>_config.Routes</code> which is empty when starting from MVC application.</p>