Tabnine Logo
Response.headers
Code IndexAdd Tabnine to your IDE (free)

How to use
headers
method
in
io.swagger.models.Response

Best Java code snippets using io.swagger.models.Response.headers (Showing top 17 results out of 315)

origin: kongchen/swagger-maven-plugin

Response response = new Response()
    .description(apiResponse.message())
    .headers(responseHeaders);
origin: kongchen/swagger-maven-plugin

    .description("successful operation")
    .schema(responseProperty)
    .headers(defaultResponseHeaders));
    .description("successful operation")
    .schema(p)
    .headers(defaultResponseHeaders));
    .description("successful operation")
    .schema(responseProperty)
    .headers(defaultResponseHeaders));
swagger.model(key, models.get(key));
origin: kongchen/swagger-maven-plugin

    .description("successful operation")
    .schema(responseProperty)
    .headers(defaultResponseHeaders));
    .description("successful operation")
    .schema(pp)
    .headers(defaultResponseHeaders));
    .description("successful operation")
    .schema(responseProperty)
    .headers(defaultResponseHeaders));
swagger.model(key, models.get(key));
origin: io.swagger/swagger-parser

output.headers(headers);
origin: buremba/netty-rest

    .description("Successful request")
    .schema(responseProperty)
    .headers(defaultResponseHeaders));
    .description("Successful request")
    .schema(p)
    .headers(defaultResponseHeaders));
    .description("Successful operation")
    .schema(responseProperty)
    .headers(defaultResponseHeaders));
swagger.model(name, model);
  .description(apiResponse.message())
  .schema(errorProperty)
  .headers(responseHeaders);
origin: yangfuhai/jboot

    .description(SUCCESSFUL_OPERATION)
    .schema(responseProperty)
    .headers(defaultResponseHeaders);
result.put(responseCode, response);
appendModels(swagger, responseType);
    .headers(responseHeaders);
origin: noboomu/proteus

final int responseCode = (apiOperation == null) ? 200 : apiOperation.code();
operation.response(responseCode, new Response().description(SUCCESSFUL_OPERATION).schema(responseProperty)
    .headers(defaultResponseHeaders));
appendModels(responseType);
origin: Sayi/swagger-dubbo

    : parseResponseHeaders(context, apiOperation.responseHeaders());
final Response response = new Response().description(SUCCESSFUL_OPERATION)
    .schema(responseProperty).headers(defaultResponseHeaders);
result.put(responseCode, response);
appendModels(context.getSwagger(), responseType);
    .headers(responseHeaders);
origin: wso2/msf4j

operation.response(responseCode,
          new Response().description(SUCCESSFUL_OPERATION).schema(responseProperty)
                 .headers(defaultResponseHeaders));
appendModels(responseType);
origin: org.wso2.msf4j/msf4j-swagger

operation.response(responseCode,
          new Response().description(SUCCESSFUL_OPERATION).schema(responseProperty)
                 .headers(defaultResponseHeaders));
appendModels(responseType);
origin: io.swagger/swagger-jaxrs

final int responseCode = (apiOperation == null) ? 200 : apiOperation.code();
operation.response(responseCode, new Response().description(SUCCESSFUL_OPERATION).schema(responseProperty)
    .headers(defaultResponseHeaders));
appendModelsWithJsonView(responseType, jsonViewAnnotation);
origin: javagossip/dorado

final int responseCode = (apiOperation == null) ? 200 : apiOperation.code();
operation.response(responseCode, new Response().description(SUCCESSFUL_OPERATION)
    .schema(responseProperty).headers(defaultResponseHeaders));
appendModelsWithJsonView(responseType, jsonViewAnnotation);
origin: wso2/msf4j

private void addResponse(Operation operation, ApiResponse apiResponse) {
  Map<String, Property> responseHeaders = parseResponseHeaders(apiResponse.responseHeaders());
  Response response = new Response().description(apiResponse.message()).headers(responseHeaders);
  if (apiResponse.code() == 0) {
    operation.defaultResponse(response);
  } else {
    operation.response(apiResponse.code(), response);
  }
  if (StringUtils.isNotEmpty(apiResponse.reference())) {
    response.schema(new RefProperty(apiResponse.reference()));
  } else if (!isVoid(apiResponse.response())) {
    Type responseType = apiResponse.response();
    final Property property = ModelConverters.getInstance().readAsProperty(responseType);
    if (property != null) {
      response.schema(ContainerWrapper.wrapContainer(apiResponse.responseContainer(), property));
      appendModels(responseType);
    }
  }
}
origin: org.wso2.msf4j/msf4j-swagger

private void addResponse(Operation operation, ApiResponse apiResponse) {
  Map<String, Property> responseHeaders = parseResponseHeaders(apiResponse.responseHeaders());
  Response response = new Response().description(apiResponse.message()).headers(responseHeaders);
  if (apiResponse.code() == 0) {
    operation.defaultResponse(response);
  } else {
    operation.response(apiResponse.code(), response);
  }
  if (StringUtils.isNotEmpty(apiResponse.reference())) {
    response.schema(new RefProperty(apiResponse.reference()));
  } else if (!isVoid(apiResponse.response())) {
    Type responseType = apiResponse.response();
    final Property property = ModelConverters.getInstance().readAsProperty(responseType);
    if (property != null) {
      response.schema(ContainerWrapper.wrapContainer(apiResponse.responseContainer(), property));
      appendModels(responseType);
    }
  }
}
origin: noboomu/proteus

private void addResponse(Operation operation, ApiResponse apiResponse) {
  Map<String, Property> responseHeaders = parseResponseHeaders(apiResponse.responseHeaders());
  Response response = new Response().description(apiResponse.message()).headers(responseHeaders);
  if (apiResponse.code() == 0) {
    operation.defaultResponse(response);
  } else {
    operation.response(apiResponse.code(), response);
  }
  if (StringUtils.isNotEmpty(apiResponse.reference())) {
    response.schema(new RefProperty(apiResponse.reference()));
  } else if (!isVoid(apiResponse.response())) {
    Type responseType = apiResponse.response();
    final Property property = ModelConverters.getInstance().readAsProperty(responseType);
    if (property != null) {
      response.schema(ContainerWrapper.wrapContainer(apiResponse.responseContainer(), property));
      appendModels(responseType);
    }
  }
}
origin: io.swagger/swagger-jaxrs

private void addResponse(Operation operation, ApiResponse apiResponse, JsonView jsonView) {
  Map<String, Property> responseHeaders = parseResponseHeaders(apiResponse.responseHeaders(), jsonView);
  Map<String, Object> examples = parseExamples(apiResponse.examples());
  Response response = new Response()
      .description(apiResponse.message())
      .headers(responseHeaders);
  response.setExamples(examples);
  if (apiResponse.code() == 0) {
    operation.defaultResponse(response);
  } else {
    operation.response(apiResponse.code(), response);
  }
  if (StringUtils.isNotEmpty(apiResponse.reference())) {
    response.schema(new RefProperty(apiResponse.reference()));
  } else if (!isVoid(apiResponse.response())) {
    Type responseType = apiResponse.response();
    final Property property = ModelConverters.getInstance().readAsProperty(responseType, jsonView);
    if (property != null) {
      response.schema(ContainerWrapper.wrapContainer(apiResponse.responseContainer(), property));
      appendModels(responseType);
    }
  }
}
origin: javagossip/dorado

@SuppressWarnings("deprecation")
private void addResponse(Operation operation, ApiResponse apiResponse, JsonView jsonView) {
  Map<String, Property> responseHeaders = parseResponseHeaders(apiResponse.responseHeaders(), jsonView);
  Map<String, Object> examples = parseExamples(apiResponse.examples());
  Response response = new Response().description(apiResponse.message()).headers(responseHeaders);
  response.setExamples(examples);
  if (apiResponse.code() == 0) {
    operation.defaultResponse(response);
  } else {
    operation.response(apiResponse.code(), response);
  }
  if (StringUtils.isNotEmpty(apiResponse.reference())) {
    response.schema(new RefProperty(apiResponse.reference()));
  } else if (!isVoid(apiResponse.response())) {
    Type responseType = apiResponse.response();
    final Property property = ModelConverters.getInstance().readAsProperty(responseType, jsonView);
    if (property != null) {
      response.schema(ContainerWrapper.wrapContainer(apiResponse.responseContainer(), property));
      appendModels(responseType);
    }
  }
}
io.swagger.modelsResponseheaders

Popular methods of Response

  • <init>
  • getSchema
  • description
  • getHeaders
  • schema
  • getDescription
  • getResponseSchema
  • getExamples
  • setDescription
  • setSchema
  • setResponseSchema
  • getVendorExtensions
  • setResponseSchema,
  • getVendorExtensions,
  • setExamples,
  • setHeaders,
  • addHeader,
  • responseSchema,
  • setVendorExtension,
  • example,
  • setVendorExtensions

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • getSystemService (Context)
  • setRequestProperty (URLConnection)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JTextField (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now