Commit Graph

90 Commits

Author SHA1 Message Date
ant3
274c3150a7 Rebuilt jersey2 client sample. 2016-06-21 00:16:39 +01:00
wing328
cc5668c825 Merge pull request #3108 from JasonQuinn/master
Adding the ability to get and set the httpClient for jersey2
2016-06-18 16:56:01 +08:00
Jason Quinn
54babeb5ed Updating jersey2 sample 2016-06-14 15:01:10 +01:00
wing328
b418719804 update sample, update shell script with messages about removing files 2016-06-10 14:30:32 +08:00
cbornet
3c252f264c use joda in jersey1/jersey2 client sample 2016-06-09 17:10:57 +02:00
clasnake
f4ba31964a Merge branch 'master' into 3006/sbt_for_java_scala
Conflicts:
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/ApiException.java
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/Configuration.java
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/Pair.java
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/StringUtil.java
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/auth/ApiKeyAuth.java
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/auth/OAuth.java
2016-06-03 00:43:43 +08:00
clasnake
f0d3bd8f21 Add sbt support for jersey2, fix dependency issue for okhttp-gson. 2016-06-03 00:37:53 +08:00
zhenjun115
a093e7b74d gradle wrapper for java api client; 2016-05-17 23:40:57 +08:00
Aditya Kajla
5633fdfb3d Java: Add basic junit test templates for api clients 2016-05-16 17:55:29 -07:00
xhh
020a9fcdc0 Fix enum model docs for JS and Java clients 2016-05-06 18:41:15 +08:00
xhh
8588c5ce0a add enum support to java 2016-05-03 11:16:05 +08:00
wing328
1ca246c4c8 update java version in pom for java api client 2016-04-23 12:59:36 +08:00
wing328
8c27f296fb update maven and gradle version for java api client 2016-04-22 23:13:12 +08:00
wing328
fb04bb7d4d Revert "Revert "[Java] Add auto-generated documentation in Markdown to Java clients"" 2016-04-22 10:13:54 +08:00
wing328
c171356d24 Revert "[Java] Add auto-generated documentation in Markdown to Java clients" 2016-04-22 00:21:04 +08:00
xhh
f8489c1fcf Fix typo, regenerate Java petstore clients 2016-04-21 18:34:00 +08:00
xhh
ad258a34cc Fix test cases for Java petstore clients 2016-04-21 18:14:11 +08:00
xhh
f10d4c8e23 Merge branch 'master' into java-docs
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java
	samples/client/petstore/java/default/pom.xml
	samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Animal.java
	samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Cat.java
	samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Dog.java
	samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Name.java
	samples/client/petstore/java/jersey2/src/main/java/io/swagger/client/model/Name.java
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/model/Cat.java
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/model/Dog.java
	samples/client/petstore/java/okhttp-gson/src/main/java/io/swagger/client/model/Name.java
	samples/client/petstore/java/retrofit/src/main/java/io/swagger/client/StringUtil.java
	samples/client/petstore/java/retrofit/src/main/java/io/swagger/client/model/Model200Response.java
	samples/client/petstore/java/retrofit/src/main/java/io/swagger/client/model/ModelReturn.java
	samples/client/petstore/java/retrofit/src/main/java/io/swagger/client/model/Name.java
	samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/StringUtil.java
	samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/model/Model200Response.java
	samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/model/ModelReturn.java
	samples/client/petstore/java/retrofit2/src/main/java/io/swagger/client/model/Name.java
	samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/StringUtil.java
	samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/model/Model200Response.java
	samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/model/ModelReturn.java
	samples/client/petstore/java/retrofit2rx/src/main/java/io/swagger/client/model/Name.java
2016-04-19 20:19:10 +08:00
Fabien Da Silva
06f6bcb57d [Java + Android] Update generated samples 2016-04-13 17:28:11 +02:00
Fabien Da Silva
4f8bbea660 [Android] Update build.gradle and pom.xml in Java libraries
Fix #2451
2016-04-13 14:39:20 +02:00
xhh
64d1c40b23 Java docs: improve install instructions 2016-03-23 23:49:01 +08:00
xhh
407e96f1be Minor fix on class name in Java markdown docs 2016-03-23 20:57:37 +08:00
xhh
df7c255cd4 Java client: generate markdown docs for jersey2 and okhttp-gson clients 2016-03-23 20:32:33 +08:00
xhh
cb394152f9 Java client (default): add more docs to README 2016-03-23 20:05:40 +08:00
xhh
33483055a5 Java clients: fix test cases on HTTP basic auth 2016-03-17 19:04:57 +08:00
xhh
4100a8537b Display parameter's default value for operations
Done for Java clients (default, jersey2, okhttp-gson), Ruby client and
JavaScript client.
2016-03-17 16:22:36 +08:00
wing328
be7a49385f set default user default for ruby, php, python, java 2016-03-15 11:41:47 +08:00
xhh
f9cc29fb74 Update petstore to use an inline model for testing
and add test cases to Java clients for "object" type with no properties.
2016-03-03 12:48:44 +08:00
xhh
7bea6da587 Do not generate models for "object" type with no properties
Also updated the petstore sample to include operations to cover the case
in model property and response, and updated Java clients to sync with
it.

Closes #2237
2016-03-02 21:12:27 +08:00
xhh
9b229de79f Java clients: better local variable naming 2016-02-29 13:23:56 +08:00
xhh
6b6f0df985 Handle reserved operationId/modelName in Java/Android clients 2016-02-25 16:28:11 +08:00
xhh
37c77d63c2 Java client: add ApiException to javadoc
and some indentation fixes
2016-02-23 20:09:46 +08:00
xhh
909d1b537b Support readonly properties for Java retrofit clients 2016-02-22 19:00:57 +08:00
xhh
b8beca7f24 Java: do not generate setter for readonly properties 2016-02-22 15:50:43 +08:00
xhh
8c36ed8409 Merge branch 'master' into java-imports
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java
2016-02-22 09:24:58 +08:00
xhh
7296da7bc3 Fix tests by upgrading libraries 2016-02-19 17:48:59 +08:00
xhh
a892511b1f Add missing libs to Java jersey2 client 2016-02-19 13:24:16 +08:00
xhh
cac8df949d Fix tests 2016-02-17 19:46:40 +08:00
xhh
b2ed17e63e Remove unused jackson imports from Java models
by fixing the logic of enum Boolean checking.

Other changes:

* Remove the `true &&` prefix from the `equals` method in models.
* Apply some changes of Java-default to Java-okhttp-gson, i.e. adding
  `this` and parent model handling.
* Some improvements on spaces and blank lines.
2016-02-17 18:03:27 +08:00
xhh
ee1f401145 Merge branch 'master' into java-imports
Conflicts:
	modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java
2016-01-29 11:16:14 +08:00
Maarten Groot
eee441b72a Update Petstore Java jersey2 sample 2016-01-28 16:35:11 +01:00
xhh
253a955cff Merge branch 'master' into java-binary-support
Conflicts:
	samples/client/petstore/java/default/src/test/java/io/swagger/petstore/test/PetApiTest.java
	samples/client/petstore/java/jersey2/src/test/java/io/swagger/petstore/test/PetApiTest.java
	samples/client/petstore/java/okhttp-gson/src/test/java/io/swagger/petstore/test/PetApiTest.java
2016-01-21 17:28:14 +08:00
xhh
34a941f352 Improve imports in api/models of Java clients
Closes #1810
2016-01-20 16:49:25 +08:00
xhh
5eb1cc04b9 Fix tests of UserAPI 2016-01-20 12:16:38 +08:00
xhh
1ddc91b8a9 Try fixing occasional testing failuers in Java client
by using random and atomically increasing IDs
2016-01-20 11:55:04 +08:00
xhh
319c260678 Java okhttp-gson: support binary (byte array)
for body parameter and response.
Also Update Java default, jersey2 and okhttp-gson clients to support
(constant) query string in the `path` (to work with the 2 "fake"
petstore endpoints on binary).
2016-01-15 19:33:33 +08:00
xhh
3d65218619 Java jersey2 client: get/set connect timeout 2016-01-08 19:05:43 +08:00
wing328
99d19575f0 fix missing object import in java (retrofit, okhttp) 2016-01-05 14:44:26 +08:00
xhh
f4581d3008 Update imports in models of Java clients
- Remove the StringUtil import which is no longer needed
- Remove duplicated imports of Objects and io.swagger.annotations.*
- Only include jackson related imports in the Java clients needing it
  (i.e. the default, jersey2 and feign Java clients)
2015-12-31 12:44:34 +08:00
xhh
3d4b5ff1c7 Java: Move method StringUtil.toIndentedString to model
Closes #1701
2015-12-29 12:30:54 +08:00