简体   繁体   English

Dart 中的 Swagger-ui

[英]Swagger-ui in Dart

I'm using Dart, and i want to implements swagger-ui, as a web on my proyect.我正在使用 Dart,并且我想实现 swagger-ui,作为我项目上的网络。 I have the json/yaml file of my API and that API running on local.我有我的 API 和在本地运行的 API 的 json/yaml 文件。 The JS+Css+Html Option of swagger-ui works fine, but, is there a way to generate a web like this in Dart? swagger-ui 的 JS+Css+Html 选项工作正常,但是,有没有办法在 Dart 中生成这样的网页?

I guess I am confused what you want to do.我想我很困惑你想做什么。

Dart has it's own documentation generator, dartdoc , that works out of the box for any package. Dart 有它自己的文档生成器dartdocdartdoc任何包都开箱即用。 I don't know of any support for swagger or if it offers any particular advantages for Dart users.我不知道对 swagger 的任何支持,或者它是否为 Dart 用户提供了任何特殊的优势。

An example for args package: https://www.dartdocs.org/documentation/args/0.13.7/index.html args包示例: https : //www.dartdocs.org/documentation/args/0.13.7/index.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM