@GetMapping("/getDocMenus")
    public ShenyuAdminResult getAllDoc() {
        Collection<DocInfo> docInfos = docManager.listAll();
        List<MenuProjectVO> menuProjectList = docInfos.stream()
            .map(getMenuAndDocInfo())
            .collect(Collectors.toList());
        DocVO docVO = new DocVO();
        docVO.setMenuProjects(menuProjectList);
        List<ShenyuDictVO> dictVOList = shenyuDictService.list(AdminConstants.DICT_TYPE_API_DOC_ENV);
        List<DocVO.EnvConfig> envConfigs = dictVOList.stream()
            .filter(ShenyuDictVO::getEnabled)
            .map(dictVO -> {
                DocVO.EnvConfig envConfig = new DocVO.EnvConfig();
                envConfig.setEnvLabel(dictVO.getDictName());
                envConfig.setAddressUrl(dictVO.getDictValue());
                envConfig.setEnvDesc(dictVO.getDesc());
                return envConfig;
            })
            .collect(Collectors.toList());
        docVO.setEnvProps(envConfigs);
        if (CollectionUtils.isNotEmpty(envConfigs)) {
            docVO.setGatewayUrl(envConfigs.get(0).getAddressUrl());
        }
        return ShenyuAdminResult.success(docVO);
    }
Menu list of documents.

@return ShenyuAdminResult
shenyu-admin/src/main/java/org/apache/shenyu/admin/controller/ApiDocController.java