title: Can I replace the attribute routing with traditional route patterns for the web api controllers?
body: <p>I have web api ValuesController (marked with <code>[ApiController]</code>) and the method [HttpPost] GetValue inside.</p>
  <pre><code>[Route(&quot;api/[controller]&quot;)]
  [ApiController]
  public class ValuesController : ControllerBase
  {
      [HttpGet]
      public IEnumerable&lt;string&gt; GetValue()
      {
          return new string[] { &quot;value1&quot;, &quot;value2&quot; };
      }
  }
  </code></pre>
  <p>I have modifeid e Startup.cs</p>
  <pre><code>        app.UseEndpoints(endpoints =&gt;
          {
              endpoints.MapRazorPages();
              endpoints.MapControllerRoute(&quot;default&quot;, &quot;{controller}/{action}&quot;); // added
          });
  </code></pre>
  <p>Now I expect that route to the method should  be <code>/api/Values/GetValue</code> when it is the <code>/api/Values</code> - means the <code>{action}</code> is ignored?</p>
  <p>Can the default routing be configured to include {action} to the uri? Now I'm forcing to attribute actions with the <code>[HttpGet(nameof(GetValue))]</code> what look verbose.</p>
  <p>I understand that controller marked with ApiController is specific thing, but should it &quot;react&quot; to the MapControllerRoute ? I can't find it in the documentation.</p>