code: function setApi() {
              self.api = {};
              if(process && process.env && process.env.APPVEYOR_API_URL) {
                  var fullUrl = process.env.APPVEYOR_API_URL;
  
                  var urlParts = fullUrl.split("/")[2].split(":");
                  self.api = {
                      host: urlParts[0],
                      port: urlParts[1],
                      endpoint: "/api/tests/batch"
                  };
              }
              else {
                  throw Error("Not running in AppVeyor environment");
              }
          }
docs: set API host information