Hi Randika

Swagger codegen also can be hosted as a service (API) you can find the war
file under "swagger-generator" module. You can ship the war file with APIM
or host a a public service to generate code.

Regards
Jo

On Wed, Feb 3, 2016 at 6:25 PM, Randika Navagamuwa <randi...@wso2.com>
wrote:

> Hi all,
>  I'm currently developing a feature for APIM which generates client side
> sdks for subscribed APIs. To generate the client side SDK I'm using swagger
> codegen[1]. To get the required sdk i had to do some minor changes to
> swagger codegen. There are two approaches to use the swagger codegen
>
>    1. We can simply build the swagger codegen and use that jar file to
>    generate sdks and this is the easiest way.
>    2. The other way is we can add swagger codegen maven modules into APIM
>    source code and directly call methods.
>
> As you may all know swagger is a developing project and they use their own
> dependencies. If we create a single jar using current swagger codegen
> version there will be no issue. So what would be the best approach?
>
> [1]https://github.com/swagger-api/swagger-codegen
>
> Thanks,
> Randika
> --
> *Randika Navagamuwa*
> *Intern - Software Engineering*
> *Mobile : +94711853466 <%2B94711853466>*
> *Twitter : twitter.com/rnavagamuwa <http://twitter.com/rnavagamuwa>*
> *Facebook : facebook.com/rnavagamuwa <http://facebook.com/rnavagamuwa>*
> *Linkedin : lk.linkedin.com/in/rnavagamuwa
> <http://lk.linkedin.com/in/rnavagamuwa>*
> *Blog : **randikan.wordpress.com* <http://randikan.wordpress.com>
>



-- 

-- 
*Joseph Fonseka*
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 772 512 430
skype: jpfonseka

* <http://lk.linkedin.com/in/rumeshbandara>*
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to