@Override
    public ApiVO findById(final String id) {
        return Optional.ofNullable(apiMapper.selectByPrimaryKey(id)).map(item -> {
            List<TagRelationDO> tagRelations = tagRelationMapper.selectByQuery(TagRelationQuery.builder().apiId(item.getId()).build());
            List<String> tagIds = tagRelations.stream().map(TagRelationDO::getTagId).collect(Collectors.toList());
            List<TagVO> tagVOs = Lists.newArrayList();
            if (CollectionUtils.isNotEmpty(tagIds)) {
                List<TagDO> tagDOS = tagMapper.selectByIds(tagIds);
                tagVOs = tagDOS.stream().map(TagVO::buildTagVO).collect(Collectors.toList());
            }
            ApiVO apiVO = ApiVO.buildApiVO(item, tagVOs);
            if (apiVO.getApiSource().equals(ApiSourceEnum.SWAGGER.getValue())) {
                DocItem docItem = JsonUtils.jsonToObject(apiVO.getDocument(), DocItem.class);
                apiVO.setRequestHeaders(docItem.getRequestHeaders());
                apiVO.setRequestParameters(docItem.getRequestParameters());
                apiVO.setResponseParameters(docItem.getResponseParameters());
                apiVO.setBizCustomCodeList(docItem.getBizCodeList());
            }
            return apiVO;

        }).orElse(null);
    }
create.

@param apiDTO apiDTO
@return create message
shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/ApiServiceImpl.java