rename RESTHandler to Endpoint