public Operation buildOperation(HandlerMethod handlerMethod, DataRestRepository dataRestRepository,
			OpenAPI openAPI, RequestMethod requestMethod, String operationPath, MethodAttributes methodAttributes,
			ResourceMetadata resourceMetadata, MethodResourceMapping methodResourceMapping, ControllerType controllerType) {
		Operation operation = null;
		if (ControllerType.ENTITY.equals(controllerType)
				|| ControllerType.PROPERTY.equals(controllerType)
				|| ControllerType.SCHEMA.equals(controllerType) || ControllerType.GENERAL.equals(controllerType)) {
			operation = buildEntityOperation(handlerMethod, dataRestRepository,
					openAPI, requestMethod, operationPath, methodAttributes, resourceMetadata);
		}
		else if (ControllerType.SEARCH.equals(controllerType)) {
			operation = buildSearchOperation(handlerMethod, dataRestRepository, openAPI, requestMethod,
					methodAttributes, methodResourceMapping, resourceMetadata);
		}
		return operation;
	}
Build operation.

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