title: C# owin web api route index page
body: <p><code>http://localhost:2000/api/{Controller}</code></p>
  
  <p>I need to create index page.</p>
  
  <p>URI : <code>http://localhost:2000/api</code></p>
  
  <pre><code>config.MapHttpAttributeRoutes();
  config.Routes.MapHttpRoute(
  name: "api",
  routeTemplate: "api"
  );
  </code></pre>
  
  <p>And the api</p>
  
  <pre><code>[RoutePrefix("api")]
  public class Api
  {
      [HttpGet]
      public HttpResponseMessage Get()
      {
          var result = new HttpResponseMessage(HttpStatusCode.OK);
          result.Content = new ByteArrayContent(Encoding.ASCII.GetBytes("API"));
          return result;
      }
  }
  </code></pre>
  
  <p>But when I open <code>http://localhost:2000/api</code>, it's not working.</p>
  
  <p>No HTTP resource was found that matches the request URI <code>http://localhost:2000/api</code>.</p>