title: How does ASP.NET Core Web API build URLs?
body: <p>I have the following code:</p>
  
  <pre><code>[Produces("application/json")]
  [Route("api/[controller]")]
  public class MarketReportInstancesTableController : BaseController
  {
      internal readonly MyIRIntegrationDbContext Context;
  
      public MarketReportInstancesTableController(ILogger&lt;MarketReportInstancesTableController&gt; logger,
          MyIRIntegrationDbContext context) : base(logger)
      {
          Context = context;
      }
  
      [HttpGet (Name ="PageData")]
      public IActionResult PageData([FromQuery] IDataTablesRequest request)
      {
      .... methd body in here
      }
  </code></pre>
  
  <p>And I try to access with a URL like:</p>
  
  <pre class="lang-none prettyprint-override"><code>http://somehost/pca/api/MarketReportInstancesTable/pagedata
  </code></pre>
  
  <p>Which DOES NOT work, but</p>
  
  <pre class="lang-none prettyprint-override"><code>http://somehost/pca/api/MarketReportInstancesTable/
  </code></pre>
  
  <p>DOES WORK.</p>
  
  <p>My question would be, why does the route do that? I want to have many paths in the same WebAPI controller. </p>
  
  <p>Am I approaching it wrong?</p>