Instructions for using swagger-bootstrap-ui

When some friends use this jar package, the interface will not come out, or only a few default interfaces of the ui will appear, and the api interface of the project will not come out.

Here are some points to note with you.

  • Depends on swagger (this is very important), so the project must enable swagger. If your project originally uses swagger, you only need to import swagger-bootstrap-uithe jar package, and then access the /doc.htmlpage, similar to accessing native/swagger-ui.html

  • swagger-bootstrap-uiIt is just a ui package, there is no specific api syntax, it is a tool, and it is completely dependent on swagger. The back-end code also needs to use swagger's java annotations - to achieve

  • swagger-bootstrap-uiThe work done is to parse the interface of swagger /v2/api-docs, and the interface will be presented according to the interface. Because the author likes the layout of the left and right style, the native UI layout is structured up and down, which is not very convenient for the author, so I wrote this small tool. Open source for everyone to use, if you like this style, you can apply it to your project

  • A demo is also provided on git, which can be pulled and run, address: swagger-bootstrap-ui-demo

If there is a js error and the interface cannot come out, you are welcome to create an issue and inform the author to correct it. I am very happy to solve the bugs you encounter.

Of course, if you also have better ideas, welcome to communicate and improve this gadget together~~~~~~

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325459127&siteId=291194637