public class GenericResponseBuilder extends Object
Constructor and Description |
---|
GenericResponseBuilder(OperationBuilder operationBuilder,
List<ReturnTypeParser> returnTypeParsers,
SpringDocConfigProperties springDocConfigProperties,
PropertyResolverUtils propertyResolverUtils) |
Modifier and Type | Method and Description |
---|---|
io.swagger.v3.oas.models.responses.ApiResponses |
build(io.swagger.v3.oas.models.Components components,
org.springframework.web.method.HandlerMethod handlerMethod,
io.swagger.v3.oas.models.Operation operation,
MethodAttributes methodAttributes) |
static void |
buildContentFromDoc(io.swagger.v3.oas.models.Components components,
io.swagger.v3.oas.models.responses.ApiResponses apiResponsesOp,
MethodAttributes methodAttributes,
io.swagger.v3.oas.annotations.responses.ApiResponse apiResponseAnnotations,
io.swagger.v3.oas.models.responses.ApiResponse apiResponse) |
void |
buildGenericResponse(io.swagger.v3.oas.models.Components components,
Map<String,Object> findControllerAdvice) |
io.swagger.v3.oas.models.media.Schema |
calculateSchema(io.swagger.v3.oas.models.Components components,
Type returnType,
com.fasterxml.jackson.annotation.JsonView jsonView) |
static void |
setDescription(String httpCode,
io.swagger.v3.oas.models.responses.ApiResponse apiResponse) |
public GenericResponseBuilder(OperationBuilder operationBuilder, List<ReturnTypeParser> returnTypeParsers, SpringDocConfigProperties springDocConfigProperties, PropertyResolverUtils propertyResolverUtils)
public io.swagger.v3.oas.models.responses.ApiResponses build(io.swagger.v3.oas.models.Components components, org.springframework.web.method.HandlerMethod handlerMethod, io.swagger.v3.oas.models.Operation operation, MethodAttributes methodAttributes)
public void buildGenericResponse(io.swagger.v3.oas.models.Components components, Map<String,Object> findControllerAdvice)
public static void buildContentFromDoc(io.swagger.v3.oas.models.Components components, io.swagger.v3.oas.models.responses.ApiResponses apiResponsesOp, MethodAttributes methodAttributes, io.swagger.v3.oas.annotations.responses.ApiResponse apiResponseAnnotations, io.swagger.v3.oas.models.responses.ApiResponse apiResponse)
public io.swagger.v3.oas.models.media.Schema calculateSchema(io.swagger.v3.oas.models.Components components, Type returnType, com.fasterxml.jackson.annotation.JsonView jsonView)
public static void setDescription(String httpCode, io.swagger.v3.oas.models.responses.ApiResponse apiResponse)
Copyright © 2020. All rights reserved.