Why is there no topic for swagger-ui?

I like the charts for documenting the Restful API, especially “Try it out!”, But the swagger-ui doesn't look very cool.

And I can’t believe that there are no templates for such an awesome open source tool (or I can not find it)?

I don’t want this for free .. Like http://getbootstrap.com/ there are many websites for buying themes (for example https://wrapbootstrap.com/ ), why can’t I find any website for expandable themes?

+54
themes swagger swagger-ui
Jan 19 '15 at 20:36
source share
7 answers

Late answer, albeit a good one. It's great! A smooth implementation, and he set up a lot of things that are easy to set up again for your needs: https://github.com/jensoleg/swagger-ui .

Credits go to this google group: https://groups.google.com/forum/#!topic/swagger-swaggersocket/oeMyayrvKRI . It is strange that this has not yet been published.

For a demonstration of the actions, check out this link: http://senodio.com/site/swagger/#!/pet/addPet

-

EDIT: Recently it was discovered that DEMO was not working, so I unlocked Repo ( https://github.com/MartinSahlen/swagger-ui ) and created a simple node / express server that runs on Heroku. Keep in mind that this is a free dyno hero, so it will take some time to load (~ 20 seconds) if there is little activity on it for some time.

Welcome: http://sleepy-harbor-80783.herokuapp.com/#!/pet/addPet

EDIT 2: Just stumbled upon another that looks promising: https://github.com/legendecas/material-swagger-ui.It also seems that the swagger ui that I am currently posting is resurrected to http: //swaggerui.herokuapp .com / . Keeping mine, as well as removing it again.

+69
Sep 30 '15 at 17:48
source share

This is a collection of style themes that can be applied to the Swagger interface. The link below is on my repo on how to use.

Hope this helps.

https://github.com/ostranme/swagger-ui-themes

+13
Dec 04 '15 at 20:23
source share

Swagger-UI, not being a new tool, is very specific for its task. I do not know of a single website that provides themes for it (free or paid). Many of its users have customized the user interface to fit their local theme. Some of them made subtle changes, some of them underwent major repairs.

I would recommend looking back at the available implementations and see if something is right for your needs. Then, perhaps ask for permission to reuse your theme / template for your own needs.

+5
Jan 19 '15 at 21:10
source share

Another option is ReDoc .

You just need to bring the swagger.json file with index.html . Easy setup.

 <head> <title>ReDoc</title> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet"> <style> body { margin: 0; padding: 0; } </style> </head> <body> <redoc spec-url='your.swagger.json'></redoc> <script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script> </body> 
+3
Apr 03 '18 at 22:53
source share

I recently forked the refactoring of the swagger-ui theme discussed above using bootstrap v4 for everyone who is interested. See it here https://github.com/afgarcia86/bootstrap-swagger-ui

+2
Jan 03 '18 at 3:53
source share

You can use Swagger-Boostrap-UI

github: https://github.com/xiaoymin/Swagger-Bootstrap-UI

support for export markdown apis and so on ...

0
Sep 28 '18 at 4:41
source share

Checkout RapiDoc

  • Supports Theme
  • You can change many other display attributes, such as changing the title color, title text, and layout.
  • Based custom element, easy to add to any HTML document. Unlike other solutions
0
Jan 24 '19 at 20:55
source share



All Articles