public interface ToolsResource
@Path(value="echo") ApiEcho echo(String message)
message - The message to echo back@Path(value="echoError") ApiEcho echoError(String message)
{
"message": "An error message",
"causes": [ "A list of causes", "Potentially null" ]
}
The message field contains a description of the error. The causes field, if not null, contains a list of causes for the error.
Note that this never returns an echoMessage. Instead, the result (and all error results) has the above structure.
message - The error message to echoCopyright © Cloudera, Inc. Released under Apache License, Version 2.0.