All Downloads are FREE. Search and download functionalities are using the official Maven repository.

apex.client.mustache Maven / Gradle / Ivy

public class {{classPrefix}}Client extends OAS.ApiClient {
{{#hasAuthMethods}}
    public {{classPrefix}}Client() {
        basePath = '{{basePath}}';
        calloutName = '{{calloutName}}';
  {{#authMethods}}
    {{#isApiKey}}
      {{#isKeyInQuery}}
        authentications.put('{{name}}', new OAS.ApiKeyQueryAuth('{{keyParamName}}'));
      {{/isKeyInQuery}}
      {{^isKeyInQuery}}
        authentications.put('{{name}}', new OAS.ApiKeyHeaderAuth('{{keyParamName}}'));
      {{/isKeyInQuery}}
    {{/isApiKey}}
  {{/authMethods}}
    }
{{/hasAuthMethods}}
{{^hasAuthMethods}}
    public {{classPrefix}}Client() {
        basePath = '{{basePath}}';
        calloutName = '{{calloutName}}';
    }
{{/hasAuthMethods}}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy