<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Can we use Swagger in Ivy Project?</title><link>https://answers.axonivy.com/questions/2842/can-we-use-swagger-in-ivy-project</link><description>&lt;p&gt;Hi all&lt;/p&gt;
&lt;p&gt;Now i'm using Axon ivy 6.3. In my project, i have created an Restful API following the &lt;a href="https://swagger.io/docs/specification/about/"&gt;OpenAPI Specification&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Now i want to use Swagger to generate YAML file from those API (follow this &lt;a href="https://github.com/swagger-api/swagger-core/wiki/Swagger-Core-Jersey-2.X-Project-Setup-1.5"&gt;guideline&lt;/a&gt; and this &lt;a href="https://stackoverflow.com/questions/34340330/generate-yaml-or-json-file-from-swagger-documentation"&gt;post&lt;/a&gt;). &lt;/p&gt;
&lt;p&gt;Here is my web.xml
&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/Untitled_uG151Fy.png"&gt;&lt;/p&gt;
&lt;p&gt;and this is my Servlet:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;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);
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But nothing happen after i restart ivy. 
Has anybody tried it before?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2842/can-we-use-swagger-in-ivy-project" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 24 Sep 2018 23:09:50 -0400</lastBuildDate><item><title>Answer by trungdv</title><link>https://answers.axonivy.com/questions/2842/can-we-use-swagger-in-ivy-project/3441</link><description>&lt;p&gt;I found solution here
&lt;a href="https://discourse.axonivy.io/t/how-to-apply-swagger-to-ivy-project/607"&gt;https://discourse.axonivy.io/t/how-to-apply-swagger-to-ivy-project/607&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">trungdv</dc:creator><pubDate>Mon, 24 Sep 2018 23:09:50 -0400</pubDate><guid>https://answers.axonivy.com/questions/2842/can-we-use-swagger-in-ivy-project/3441</guid></item></channel></rss>