private void buildRouterOperation(List<RouterOperation> routerOperationList, ResourceMetadata resourceMetadata, DataRestRepository dataRestRepository,
			OpenAPI openAPI, String path, String subPath, ControllerType controllerType, MethodResourceMapping methodResourceMapping, RequestMappingInfo requestMappingInfo,
			HandlerMethod handlerMethod, Set<RequestMethod> requestMethodsCollection, ResourceType collection) {
		if (!CollectionUtils.isEmpty(requestMethodsCollection))
			for (RequestMethod requestMethod : requestMethodsCollection) {
				if (!UNDOCUMENTED_REQUEST_METHODS.contains(requestMethod)) {
					Set<String> patterns = getActivePatterns(requestMappingInfo);
					if (!CollectionUtils.isEmpty(patterns)) {
						Map<String, String> regexMap = new LinkedHashMap<>();
						String relationName = dataRestRepository.getRelationName();
						String operationPath = calculateOperationPath(path, subPath, patterns, regexMap, controllerType, relationName, collection);
						if (operationPath != null)
							buildRouterOperation(routerOperationList, dataRestRepository, openAPI, methodResourceMapping,
									handlerMethod, requestMethod, resourceMetadata, operationPath, controllerType);
					}
				}
			}
	}
Build router operation.

@param routerOperationList      the router operation list
@param resourceMetadata         the resource metadata
@param dataRestRepository       the data rest repository
@param openAPI                  the open api
@param path                     the path
@param subPath                  the sub path
@param controllerType           the controller type
@param methodResourceMapping    the method resource mapping
@param requestMappingInfo       the request mapping info
@param handlerMethod            the handler method
@param requestMethodsCollection the request methods collection
@param collection               the collection
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/data/DataRestRouterOperationService.java