How to integrate swagger-ui in my application

前端 未结 5 1941
盖世英雄少女心
盖世英雄少女心 2021-01-04 08:06

I am trying to integrate swagger with camel project

following this example https://github.com/smparekh/camel-example-servlet-rest-tomcat

How do i access swa

5条回答
  •  醉话见心
    2021-01-04 08:18

    These are your Swagger Docs:

    {"apiVersion":"1.2.3","swaggerVersion":"1.2","apis":[{"path"...
    

    Now you need Swagger-UI to consume them. You can install it anywhere. There is no hard requirement that you put Swagger-UI in your project. You just need to edit the index.html file to point to your docs path (the JSON output above.)

提交回复
热议问题