code: public String getBaseURL(API.Format format, String prefix, API.RequestType type, String name, boolean proxy) {
  		String apiPath = format.name() + "/" + prefix + "/" + type.name() + "/" + name + "/";
  		if (!RequestType.view.equals(type)) {
  			return getBaseURL(proxy) + apiPath + "?" + API_NONCE_PARAM + "=" + this.getOneTimeNonce("/" + apiPath) + "&";
  		}
  		return getBaseURL(proxy) + apiPath;
  	}
docs: Returns a URI for the specified parameters.
  <p>
  An {@link #getOneTimeNonce(String) one time nonce query parameter} is added to the resulting URL, if required (that is,
  not a view). In this case the URL is ended with an ampersand (for example,
  {@code https://zap/format/prefix/action/name/?apinonce=xyz&}), otherwise it has a trailing slash (for example,
  {@code http://zap/format/prefix/view/name/}).
  
  @param format the format of the API response
  @param prefix the prefix of the API implementor
  @param type the request type
  @param name the name of the endpoint
  @param proxy if true then the URI returned will only work if proxying via ZAP, ie it will start with http://zap/..
  @return the URL to access the defined endpoint
  @see #getBaseURL(boolean)