thak you for reply! they have a swagger api "petstore", and in git there is project to build with (https://github.com/swagger-api/swagger-codegen) so I built it to android project by this command:
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i http://petstore.swagger.io/v2/swagger.json -l android -o samples/client/petstore/android it is realy build an android project, but when I am truing to run it - it is failed because duplicate files in the http libraries can you help me? On Tuesday, August 16, 2016 at 11:16:54 PM UTC+3, Ron wrote: > > Which sample project? > > > > > > > > *From: *<[email protected] <javascript:>> on behalf of Esti > Zinger <[email protected] <javascript:>> > *Reply-To: *"[email protected] <javascript:>" < > [email protected] <javascript:>> > *Date: *Tuesday, 16 August 2016 at 04:18 > *To: *Swagger <[email protected] <javascript:>> > *Subject: *Integrate Swagger to Android > > > > When I'm trying to build the sample project "petstore" it is build it with > those dependencies: > > compile > *"org.apache.httpcomponents:httpcore:4.4.4"*compile > *"org.apache.httpcomponents:httpmime:4.5.2"*compile > *"org.apache.httpcomponents:httpclient-android:4.3.3"* > > but then I get the error that there are duplicate files (in htttpmine and > httpcore) > > I saw that the recommended way is to use the okhttp-gson library, but then I > had to add another jars because it is not enough. > > has anyone done this before and can send me this sample project please? > > -- > You received this message because you are subscribed to the Google Groups > "Swagger" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
