swagger2markup/src/main/java/io/github/swagger2markup/internal/utils/PathUtils.java
/**
     * Converts the Swagger paths into a list of PathOperations.
     *
     * @param paths      the Swagger paths
     * @param host       the host of all paths
     * @param basePath   the basePath of all paths
     * @param comparator the comparator to use.
     * @return the path operations
     */
Converts the Swagger paths into a list of PathOperations.
@param paths      the Swagger paths
@param host       the host of all paths
@param basePath   the basePath of all paths
@param comparator the comparator to use.
@return the path operations
Converts the Swagger paths into a list of PathOperations . @param paths the Swagger paths @param host the host of all paths @param basePath the basePath of all paths @param comparator the comparator to use . @return the path operations
public static List<SwaggerPathOperation> toPathOperationsList(Map<String, Path> paths,
                                                                  String host,
                                                                  String basePath,
                                                                  Comparator<PathOperation> comparator) {
        List<SwaggerPathOperation> pathOperations = new ArrayList<>();
        paths.forEach((relativePath, path) ->
                pathOperations.addAll(toPathOperationsList(host + basePath + relativePath, path)));
        if (comparator != null) {
            pathOperations.sort(comparator);
        }
        return pathOperations;
    }
public static List < SwaggerPathOperation > toPathOperationsList ( Map < String , Path > paths , String host , String basePath , Comparator < PathOperation > comparator ) { List < SwaggerPathOperation > pathOperations = new ArrayList < > ( ) ; paths . forEach ( ( relativePath , path ) -> pathOperations . addAll ( toPathOperationsList ( host + basePath + relativePath , path ) ) ) ; if ( comparator != null ) { pathOperations . sort ( comparator ) ; } return pathOperations ; }
Converts the Swagger paths into a list of PathOperations.
Converts the Swagger paths into a list of PathOperations .