How to open local files in Swagger-UI

前端 未结 13 1631
粉色の甜心
粉色の甜心 2020-12-23 09:10

I\'m trying to open my self generated swagger specification file my.json with swagger-ui on my local computer.

So I downloaded the latest tag v2.1.8-M1

13条回答
  •  [愿得一人]
    2020-12-23 09:55

    With Firefox, I:

    1. Downloaded and unpacked a version of Swagger.IO to C:\Swagger\
    2. Created a folder called Definitions in C:\Swagger\dist
    3. Copied my swagger.json definition file there, and
    4. Entered "Definitions/MyDef.swagger.json" in the Explore box

    Be careful of your slash directions!!

    It seems you can drill down in folder structure but not up, annoyingly.

提交回复
热议问题