使用 FastAPI-Voyager 可视化 FastAPI 端点
Visualize FastAPI endpoints with FastAPI-Voyager

原始链接: https://www.newsyeah.fun/voyager/

FastAPI Voyager {{ state.version }} 切换显示字段(val)" color="primary" type="radio" inline dense /> 滚动缩放,双击节点查看详情。Shift + 点击查看模式的依赖关系,不显示无关节点。

## FastAPI-Voyager:可视化API关系 FastAPI-Voyager (newsyeah.fun) 是一款新的工具,用于可视化FastAPI端点及其底层数据结构,灵感来自GraphQL Voyager。与仅显示API表面的OpenAPI模式(如Swagger)不同,Voyager旨在揭示路由、响应模型和数据依赖项之间的*内部*关系。 可视化展示了标签、路由(API)和响应模型,帮助开发者和产品负责人理解复杂的数据流。它尤其适用于使用Pydantic进行数据组合和验证的项目,展示了数据如何通过继承和“子集”关系进行转换。 虽然对任何设计良好的FastAPI应用程序都有益,但它在使用Pydantic-Resolve等框架时表现更出色。用户可以与图表交互——缩放、过滤,甚至直接链接到VS Code中的源代码——以便更好地理解后端逻辑。该项目处于早期阶段,欢迎提供用户体验反馈,并计划改进可发现性和清晰度。 仓库在GitHub上:[https://github.com/allmonday/fastapi-voyager](https://github.com/allmonday/fastapi-voyager)。
相关文章

原文

FastAPI Voyager {{ state.version }}

toggleShowField(val)" color="primary" type="radio" inline dense />

  • scroll to zoom in/out
  • double click node to view details.
  • shift + click to see schema's dependencies without unrelated nodes.
联系我们 contact @ memedata.com