Dart 后台开发 Aqueduct 集成 Swagger 客户端

使用下面的命令生成文档
aqueduct document client
增加路由用于读取 Html 文件然后返回。
router.route("/swagger").linkFunction((request) async {
final html = await File('client.html').readAsString();
return Response.ok(html)..contentType = ContentType.html;
});
完整视频教程查看 B 站
https://www.bilibili.com/video/av629302008
还未添加个人签名 2021.01.24 加入
B站公开课 https://www.bilibili.com/video/BV17K4y1p7xP 个人网站 https://www.fluttervideo.com/
促进软件开发及相关领域知识与创新的传播
评论