为什么 swagger-ui 没有主题? [英] Why there are no themes for swagger-ui?

查看:79
本文介绍了为什么 swagger-ui 没有主题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我非常喜欢 swagger 记录 Restful API,尤其是试试看!"按钮,但 swagger-ui 界面看起来不是很酷.

I like swagger for documenting Restful APIs very much, especially "Try it out!" button, but swagger-ui interface doesn't look very cool.

而且我无法相信如此惊人的开源工具没有模板(或者我找不到任何模板)?

And I cannot believe there are no templates for such amazing open source tool (or I can't find any)?

我不想要它免费.. 像 http://getbootstrap.com/ 有很多网站可以购买主题(比如 https://wrapbootstrap.com/),为什么我找不到任何 swagger 主题的网站?

I don't want it for free.. Like http://getbootstrap.com/ has many sites to buy themes (like https://wrapbootstrap.com/), why I cannot find any site for swagger themes?

推荐答案

一个迟到的答案,虽然很好.这太棒了!一个巧妙的实现,他已经定制了许多易于调整的东西,以满足您的需要:https://github.com/jensoleg/swagger-ui.

A late answer, albeit a good one. This is pretty awesome! A slick implementation, and he has customized many things that are easy to tweak yet again for your needs: https://github.com/jensoleg/swagger-ui.

学分转到这个谷歌组:https://groups.google.com/forum/#!topic/swagger-swaggersocket/oeMyayrvKRI.奇怪的是,这还没有发布在这里.

Credits go to this google group: https://groups.google.com/forum/#!topic/swagger-swaggersocket/oeMyayrvKRI. Strange that this has not been posted here yet.

有关动作演示,请查看此链接:http://senodio.com/site/swagger/#!/pet/addPet

--

最近发现DEMO宕机了,于是fork了Repo(https://github.com/MartinSahlen/swagger-ui) 并创建了一个在 heroku 上运行的简单节点/快速服务器.请注意,这是一个免费的 heroku dyno,因此如果一段时间内活动较少,加载可能需要一段时间(约 20 秒).

Recently found that the DEMO is down, so I forked the Repo (https://github.com/MartinSahlen/swagger-ui) and created a simple node/express server that runs on heroku. Please note that this a free heroku dyno, so it might take a while to load (~20 sec) if there is low activity on it for some time.

不客气:http://sleepy-harbor-80783.herokuapp.com/#!/pet/addPet

编辑 2:刚刚遇到另一个看起来很有希望的:https://github.com/legendecas/material-swagger-ui.我现在托管的 swagger ui 似乎也在 http://swaggerui.herokuapp.com/ 复活了.也保留我的,以防它再次被取下.

EDIT 2: Just came across another one that looks promising: https://github.com/legendecas/material-swagger-ui . It also seems that the swagger ui I am hosting now is resurrected at http://swaggerui.herokuapp.com/. Keeping mine as well in case it is taken down again.

这篇关于为什么 swagger-ui 没有主题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆