Hi Randika

Yes you would have to host a war with a custom codegen module. To clarify
did you add the customization as a module like in [1]. Is the code public
to have a look.

Regards
Jo

[1]
https://github.com/swagger-api/swagger-codegen#making-your-own-codegen-modules

On Thu, Feb 4, 2016 at 9:43 AM, Randika Navagamuwa <[email protected]>
wrote:

> Hi,
>  I didn't know about that. Current "swagger-generator" uses their
> resources to generate the client sdk. Since we are using a customized
> version of "swagger-codegen", we'll have to use that instead of their
> resources. So if we are hosting swagger codegen as a service we'll have to
> expose "customized swagger-codegen" source code as well right?
>
> Thanks,
> Randika
>
> On Thu, Feb 4, 2016 at 8:55 AM, Joseph Fonseka <[email protected]> wrote:
>
>> 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 <[email protected]>
>> 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>*
>>
>>
>
>
> --
> *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
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to