Allowing to override the endpoint method for entities