title: How to structure Web API code such that the link will support api/values/{id}/name
body: <p>I am new to learning Web API code in C# and was wondering how to create the following link that gets the name for a specific value ID.</p>
  
  <p>The provided code below does not work as I want it to with the "/name" behind it.</p>
  
  <pre><code>// GET api/values/{id}/name
  public string Get(int id)
  {
      return getNameValue(id);
  }
  </code></pre>