public RestApi(String name){
  if (name.startsWith("/")) {
    name=name.substring(1);
  }
  url=new StringBuilder();
  url.append(GWT.getHostPageBaseURL());
  url.append(name);
}

public RestApi ( String name ) { if ( name . startsWith ( "/" ) ) { name = name . substring ( 1 ) ; } url = new StringBuilder ( ) ; url . append ( GWT . getHostPageBaseURL ( ) ) ; url . append ( name ) ; }
initialize a new api call . < p > by default the json format will be selected by including an http accept header in the request .
