Pmovil / swagger-codenameone-codegen

Swagger codegen module to provide a codename1 client library
MIT License
0 stars 0 forks source link

Usage sample how to use this library. #1

Closed yassinelmalyh closed 5 years ago

yassinelmalyh commented 5 years ago

Hello,

i'm trying to use swagger codegen with codename. is there any usage sample how to use this library.

Thanks in advance. Cordially

FabricioCabeca commented 5 years ago

Hi there !

This library is meant to be used as an additional module for Swagger Codegen. For instructions about how to download, compile, and generate additional modules:

https://github.com/swagger-api/swagger-codegen.git

Once you do so you will be able for instance to generate a codenameone REST client library for XKCD with something like this:

java -DdebugOperations -jar swagger-codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -l Codenameone -i xkcd.com/1.0.0/swagger.yaml -o XkcdClient

Please be aware that it was made using rather old versions from both Swagger Codegen and Codename One.