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

378 阅读1分钟

使用下面的命令生成文档

  aqueduct document client

进行代码集成

    router.route("/swagger").linkFunction((request) async {
      final html = await File('client.html').readAsString();
      return Response.ok(html)..contentType = ContentType.html;
    });

完整视频教程查看B站
www.bilibili.com/video/av629…