title: Is it OK for multiple REST API methods to share same controller class?
body: <p>Is it best practice to put each distinct <code>Get</code> method in its own controller class, or is it perfectly fine to have multiple (related and non-related) API methods in the same class, if the methods are very simple and uncomplicated.</p>
  
  <p>E.g. these two API methods work fine in the same controller class, but would they be better off in their own class?  </p>
  
  <p>If so why?</p>
  
  <pre><code>public class TestController : ApiController
  {
      [HttpGet]
      [Route("api/test/ping")]
      public IHttpActionResult Ping()
      {
          try
          {
              return Ok("HELLO");
          }
          catch (Exception ex)
          {
              return Content(HttpStatusCode.InternalServerError, ex.Message);
          }
      }
  
      [HttpGet]
      [Route("api/test/echo/{message}")]
      public IHttpActionResult Echo(string message)
      {
          try
          {
              return Ok(message);
          }
          catch (Exception ex)
          {
              return Content(HttpStatusCode.InternalServerError, ex.Message);
          }
      }
  }
  </code></pre>