Forum Discussion

OmiVirat's avatar
OmiVirat
Occasional Visitor
2 years ago

How to load own spec like app.json in Url directly to show in swagger ui format

Hi team Just having a query ,i am using swagger open api doc ,in intellij i have added dependency in pom for openapi and in app.preoperties kept all the necessery properties like swagger default url disable,set configurl = myfile.json ,now what i want is i want this my json to be viewed in swagger ui format not in just norm json plain format ,i can get this json file in swagger format using url -localhost:8080/ swagger-ui/index.html and when it opens default petstore url in input i need to specify /apidocs/myfile.json and click explore,what i want is i want this /apidocs/myjson.json file to be open directly when specifying url value i have tried configurlenabled true but that is not secure option it would be great if you have better sugesstion ,thank you in advance
No RepliesBe the first to reply