Q:

ServicesApiController in referenced project/DLL

I'm trying to create some web APIs in a new class library outside of my main website project (still in the same solution). In this library I've added the following API Controller:
namespace My.Custom.Namespace
{
    [ServicesController("mycustomnamespace.customapi")]
    public class CustomApi : ServicesApiController
    {
        public HttpResponseMessage TestMethod()
        {
            return Request.CreateResponse(HttpStatusCode.Accepted);
        }
    }
}

I then add this class library as a reference to my main website project, and try to call the API on this URL:
http://localhost/sitecore/api/ssc/mycustomnamespace/customapi/1/TestMethod
But I'm only receiving a 404: No HTTP resource was found that matches the request URI
How can I get a ServicesApiController to work from a referenced project/DLL?
Sitecore 8.2 Update 5

A:

You should follow MVC naming conventions for Controllers and rename your controller from CustomApi to CustomApiController. 
Happy I could help you and that this did the trick.

