public void buildEntityResponse(Operation operation, HandlerMethod handlerMethod, OpenAPI openAPI, RequestMethod requestMethod,
			String operationPath, MethodAttributes methodAttributes, DataRestRepository dataRestRepository, ResourceMetadata resourceMetadata) {
		MethodParameter methodParameterReturn = handlerMethod.getReturnType();
		Type returnType = getType(methodParameterReturn, requestMethod, dataRestRepository, resourceMetadata);
		ApiResponses apiResponses = new ApiResponses();
		ApiResponse apiResponse = new ApiResponse();
		Content content = genericResponseService.buildContent(openAPI.getComponents(), methodParameterReturn.getParameterAnnotations(), methodAttributes.getMethodProduces(), null, returnType);
		springDocDataRestUtils.buildTextUriContent(content);
		apiResponse.setContent(content);
		addResponse(requestMethod, operationPath, apiResponses, apiResponse);
		operation.setResponses(apiResponses);
	}
Build entity response.

@param operation          the operation
@param handlerMethod      the handler method
@param openAPI            the open api
@param requestMethod      the request method
@param operationPath      the operation path
@param methodAttributes   the method attributes
@param dataRestRepository the data rest repository
@param resourceMetadata   the resource metadata
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/data/DataRestResponseService.java