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

apex.client.mustache Maven / Gradle / Ivy

There is a newer version: 3.0.0-rc1
Show newest version
public class {{classPrefix}}Client extends Swagger.ApiClient {
{{#hasAuthMethods}}
    public {{classPrefix}}Client() {
        basePath = '{{basePath}}';
        calloutName = '{{calloutName}}';
  {{#authMethods}}
    {{#isApiKey}}
      {{#isKeyInQuery}}
        authentications.put('{{name}}', new Swagger.ApiKeyQueryAuth('{{keyParamName}}'));
      {{/isKeyInQuery}}
      {{^isKeyInQuery}}
        authentications.put('{{name}}', new Swagger.ApiKeyHeaderAuth('{{keyParamName}}'));
      {{/isKeyInQuery}}
    {{/isApiKey}}
  {{/authMethods}}
    }
{{/hasAuthMethods}}
{{^hasAuthMethods}}
    public {{classPrefix}}Client() {
        basePath = '{{basePath}}';
        calloutName = '{{calloutName}}';
    }
{{/hasAuthMethods}}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy