anchor.diff:      }
       // TODO: change this to correct OAuth class for console
       sink.write("\n  ${capitalize(_name)}([oauth2.OAuth2Console auth]) : super(auth) {\n");
  -    sink.write("    basePath = \"${_json["basePath"]}\";\n");
  -    var uri = Uri.parse(_json["rootUrl"]);
  -    sink.write("    rootUrl = \"${uri.origin}/\";\n");
       if (_json.containsKey("resources")) {
         _json["resources"].forEach((key, resource) {
           var subClassName = "${capitalize(key)}Resource_";
  
positive.code:  * Base class for all API clients, offering generic methods for HTTP Requests to the API
   */
  abstract class Client {
    core.String basePath;
    core.String rootUrl;
    core.bool makeAuthRequests;
    core.Map params;
  
    static const _boundary = "-------314159265358979323846";
    static const _delimiter = "\\r\\n--\$_boundary\\r\\n";
    static const _closeDelim = "\\r\\n--\$_boundary--";
  
    Client() {
      params = new core.Map();
      makeAuthRequests = false;
    }
  
    /**
     * Sends a HTTPRequest using [method] (usually GET or POST) to [requestUrl] using the specified [urlParams] and [queryParams]. Optionally include a [body] in the request.
  
negative.code:     }
    }
  
    String get _rootUriOrigin => Uri.parse(_json['rootUrl']).origin;
  
    String get _createClientClass => """
  part of $_libraryName;
  
  