Ai
3 Star 12 Fork 6

Jimmy/VipQA

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
node_router.py 385 Bytes
一键复制 编辑 原始数据 按行查看 历史
Jimmy 提交于 2023-09-07 09:01 +08:00 . 添加框架结构代码
from fastapi import APIRouter, status
from fastapi.responses import JSONResponse
router = APIRouter()
# 定义一个根路由
@router.get("/add")
def add_node():
# TODO 往 neo4j 里创建新的节点
data = {
'code': 0,
'message': '',
'data': 'add success'
}
return JSONResponse(content=data, status_code=status.HTTP_200_OK)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/VipSoft/VipQA.git
git@gitee.com:VipSoft/VipQA.git
VipSoft
VipQA
VipQA
FastAPI

搜索帮助