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

jersey2-v3template.DelegateService.mustache Maven / Gradle / Ivy

Go to download

jersey2 generator from openapi 3.x spec files. Changing to openapitools dependencies.

There is a newer version: 6.6
Show newest version
package {{package}};

import cd.connect.openapi.support.ApiClient;
import cd.connect.openapi.support.ApiResponse;
import cd.connect.openapi.support.Pair;
import javax.ws.rs.BadRequestException;

import javax.ws.rs.core.GenericType;
import java.io.InputStream;

import javax.ws.rs.core.Response;
import javax.ws.rs.core.SecurityContext;

{{#imports}}import {{import}};
{{/imports}}

{{^fullJavaUtil}}
  import java.util.ArrayList;
  import java.util.HashMap;
  import java.util.List;
  import java.util.Map;
{{/fullJavaUtil}}

{{>generatedAnnotation}}
{{#operations}}
  public interface {{{classname}}}Delegate {

  {{#operation}}

    {{#vendorExtensions.x-has-delegator-holder}}
      static class {{{vendorExtensions.x-class-delegator-holder}}} {
      {{#vendorExtensions.x-delegator-holder-params}}
        public {{{dataType}}} {{paramName}};
      {{/vendorExtensions.x-delegator-holder-params}}
      }
    {{/vendorExtensions.x-has-delegator-holder}}


    /**
    * {{summary}}
    * {{notes}}
    * @see {{{classname}}}#{{{operationId}}}
    {{#isDeprecated}}
      * @deprecated
    {{/isDeprecated}}
    {{#externalDocs}}
      * {{description}}
      * @see {{summary}} Documentation
    {{/externalDocs}}
    */
    public {{#returnType}}{{{returnType}}} {{/returnType}}{{^returnType}}Response {{/returnType}}{{operationId}}(
      {{#vendorExtensions.x-has-java-params}}
        {{{vendorExtensions.x-java-params-plus-types}}}
      {{/vendorExtensions.x-has-java-params}}
      {{#vendorExtensions.x-has-delegator-holder}}
        {{#vendorExtensions.x-has-java-params}},{{/vendorExtensions.x-has-java-params}}
        {{{vendorExtensions.x-class-delegator-holder}}} holder
      {{/vendorExtensions.x-has-delegator-holder}}
    {{#authMethods}}{{#hasParams}}, {{/hasParams}}SecurityContext securityContext{{/authMethods}});
  {{/operation}}
  }
{{/operations}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy