Questions Tagged With swaggerhttps://answers.axonivy.com/tags/swagger/?type=rssquestions tagged <span class="tag">swagger</span>enSun, 29 Oct 2017 23:58:05 -0400How to access static html file on webContent by url?https://answers.axonivy.com/questions/2938/how-to-access-static-html-file-on-webcontent-by-url<p>hi all</p> <p>I have a static html file on my webcontent, now i want to access it by using url. Does ivy support it and how to do it?</p> <p>Why i need it?</p> <p>My project has swagger yaml file in webcontent so in order to open it, i can use swagger-ui. Only thing i need to do is: copy swagger-ui to webcontent, then open the index.html and browse to yaml file. </p> <p>Does anyone know the way to make it on ivy? For the moment i need to introduce startlink to access this file but i don't like it much.</p> <p>Another question, can we secure the access to file in webcontent?</p> <p>Thanks</p>trungdvSun, 29 Oct 2017 23:58:05 -0400https://answers.axonivy.com/questions/2938/how-to-access-static-html-file-on-webcontent-by-urlswaggerivy-webcontentCan we use Swagger in Ivy Project?https://answers.axonivy.com/questions/2842/can-we-use-swagger-in-ivy-project<p>Hi all</p> <p>Now i'm using Axon ivy 6.3. In my project, i have created an Restful API following the <a href="https://swagger.io/docs/specification/about/">OpenAPI Specification</a> </p> <p>Now i want to use Swagger to generate YAML file from those API (follow this <a href="https://github.com/swagger-api/swagger-core/wiki/Swagger-Core-Jersey-2.X-Project-Setup-1.5">guideline</a> and this <a href="https://stackoverflow.com/questions/34340330/generate-yaml-or-json-file-from-swagger-documentation">post</a>). </p> <p>Here is my web.xml <img alt="alt text" src="https://answers.axonivy.com/upfiles/Untitled_uG151Fy.png"></p> <p>and this is my Servlet:</p> <pre><code>public class ApiScanner extends HttpServlet { private static final long serialVersionUID = -4192689550210212169L; @Override public void init(ServletConfig config) throws ServletException { super.init(config); BeanConfig beanConfig = new BeanConfig(); beanConfig.setVersion("1.0.0"); beanConfig.setSchemes(new String[]{"http"}); beanConfig.setHost("localhost:8081"); beanConfig.setBasePath("/ivy/api/designer"); beanConfig.setResourcePackage("ch.axonivy.fintech.mybank.website.dossier.api"); beanConfig.setScan(true); } } </code></pre> <p>But nothing happen after i restart ivy. Has anybody tried it before?</p> <p>Thanks</p>trungdvFri, 01 Sep 2017 07:02:51 -0400https://answers.axonivy.com/questions/2842/can-we-use-swagger-in-ivy-projectswaggerrestopenapi