package water.automl;

import water.api.AbstractRegister;
import water.api.RequestServer;
import water.automl.api.AutoMLBuilderHandler;
import water.automl.api.AutoMLHandler;
import water.automl.api.AutoMLJSONSchemaHandler;

public class Register extends AbstractRegister{
  @Override public void register(String relativeResourcePath) throws ClassNotFoundException {
    // H2O.register("POST /3/AutoMLBuilder", AutoMLBuilderHandler.class, "POST", "automl", "automatically build models");
    // H2O.register("GET /3/AutoML/{automl_id}", AutoMLHandler.class,"refresh", "GET", "refresh the model key");
    // H2O.register("GET /3/AutoMLJSONSchemaHandler", AutoMLJSONSchemaHandler.class, "GET", "getJSONSchema", "Get the json schema for the AutoML input fields.");

    RequestServer.registerEndpoint("automl_build",
            "POST /3/AutoMLBuilder", AutoMLBuilderHandler.class, "build",
            "Start an AutoML build process.");
    RequestServer.registerEndpoint("automl_refresh",
            "GET /3/AutoML/{automl_id}", AutoMLHandler.class, "refresh",
            "Refresh the model key.");
    RequestServer.registerEndpoint("automl_schema",
            "GET /3/AutoMLJSONSchemaHandler", AutoMLJSONSchemaHandler.class, "getJSONSchema",
            "Get the json schema for the AutoML input fields.");

  }
}

@@ -216,16 +216,39 @@
 Handler;
+%0Aimport water.util.Log;
 %0A%0Apublic
@@ -1324,20 +1324,68 @@
 t fields.%22);
+%0A    Log.info(%22H2O AutoML extensions enabled.%22);
 %0A%0A  %7D%0A%7D%0A

Make it really obvious in the logs if AutoML is enabled.