title: Web API URL gives 404 error
body: <p>I've searched around on Google and found lots of answers which I've tried testing out on my own project to get this API working. However, no luck!</p>
  
  <p>In my Global file, I have:</p>
  
  <pre><code> protected void Application_Start()
      {
          AreaRegistration.RegisterAllAreas();
          FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
          BundleConfig.RegisterBundles(BundleTable.Bundles);
          RouteConfig.RegisterRoutes(RouteTable.Routes);
      }
  </code></pre>
  
  <p>In my WebApiConfig file, I have: </p>
  
  <pre><code>public static class WebApiConfig
  {
      public static void Register(HttpConfiguration config)
      {
          config.MapHttpAttributeRoutes();
  
          config.Routes.MapHttpRoute(
              name: "DefaultApi",
              routeTemplate: "api/{controller}/{id}",
              defaults: new { id = RouteParameter.Optional }
          );
      }
  }   
  </code></pre>
  
  <p>The BackupController contains:</p>
  
  <pre><code>public class BackupController : ApiController
  {
      public IEnumerable&lt;string&gt; Backup()
      {
          return new string[] { "value1", "value2" };
      }
  
      // GET: api/Backup/5
      public string Get(int id)
      {
          return "value";
      }
  }
  </code></pre>
  
  <p>Yet when I try to use the API using <a href="http://localhost:909/api/Backup" rel="nofollow noreferrer">http://localhost:909/api/Backup</a> I get a 404 error. Does anyone know why?</p>