code: public static Route registerEndpoint(String method_uri, Class<? extends RestApiHandler> handler_clz) {
      try {
        RestApiHandler handler = handler_clz.newInstance();
        return registerEndpoint(handler.name(), method_uri, handler_clz, null, handler.help());
      } catch (Exception e) {
        throw H2O.fail(e.getMessage());
      }
    }
docs: Register an HTTP request handler for the given URL pattern.
  
  @param method_uri combined method/url pattern of the endpoint, for
  example: {@code "GET /3/Jobs/{job_id}"}
  @param handler_clz class of the handler (should inherit from
  {@link RestApiHandler}).