title: Unable to make v2 version of API as default route c#
body: <p>So I have two versions for a controller (and its GET action), lets call it <code>v1</code> and <code>v2</code>. </p>
  
  <p><code>.../Controller/v1/MyController.cs</code> looks like</p>
  
  <pre><code>[ApiVersion("1")]
  [Route("api/[controller]")]
  [Route("api/v{version:apiVersion}/[controller]")]
  public class MyController : Controller
  {
  ..
  [HttpGet]
          public async Task&lt;IActionResult&gt; GetAsync()
          {
          ..
          }
  }
  </code></pre>
  
  <p>Notice that this controller has the <code>[Route("api/[controller]")]</code> default attribute so that I can access it via <code>localhost:5000/v1/my</code> and <code>localhost:5000/my</code>.</p>
  
  <p><code>.../Controller/v2/MyController.cs</code> looks like</p>
  
  <pre><code>[ApiVersion("2")]
  [Route("api/v{version:apiVersion}/[controller]")]
  public class MyController : Controller
  {
  ..
  [HttpGet]
          public async Task&lt;IActionResult&gt; GetAsync()
          {
          ..
          }
  }
  </code></pre>
  
  <p>This API is currently accessed by <code>localhost:5000/v2/my</code>.</p>
  
  <p>Now, <strong>I want to make the v2 as default API instead of v1</strong>. </p>
  
  <p>So I tried to add <code>[Route("api/[controller]")]</code> attribute so my <code>v2 controller</code> looks like :</p>
  
  <pre><code>[ApiVersion("2")]
  [Route("api/[controller]")]
  [Route("api/v{version:apiVersion}/[controller]")]
  public class MyController : Controller
  {
  ..
  [HttpGet]
          public async Task&lt;IActionResult&gt; GetAsync()
          {
          ..
          }
  }
  </code></pre>
  
  <p>Now, when I am trying to run and execute below error on POSTMAN:</p>
  
  <pre><code>{
      "Error": {
          "Code": "UnsupportedApiVersion",
          "Message": "The HTTP resource that matches the request URI 'http://localhost:5000/api/my' does not support the API version '1.0'."
      }
  }
  </code></pre>
  
  <p>However, the default route works for the v1 version when it is set. 
  I am not sure why is the cause of this. Is it because of the namespace? The location of the controller class contains a v2 in the namespace.</p>
  
  <p>Any leads would be helpful.</p>