xhh
be0bc71c86
Improve checking of JSON MIME in Java default and jersey2
...
to support suffix like charset in "application/json; charset=UTF8"
2015-12-09 16:30:55 +08:00
xhh
921659be5c
Improve checking of JSON MIME in Java okhttp-gson client
...
to support suffix like charset in "application/json; charset=UTF8"
2015-12-09 16:09:15 +08:00
David Kiss
1723078508
added support in feign for binary uploads
2015-12-07 22:34:38 -05:00
David Kiss
538ccb3f12
Merge remote-tracking branch 'xhh2/davidkiss-master'
...
Conflicts:
samples/client/petstore/java/feign/README.md
samples/client/petstore/java/feign/build.gradle
samples/client/petstore/java/feign/pom.xml
samples/client/petstore/java/feign/settings.gradle
samples/client/petstore/java/feign/src/main/java/io/swagger/client/ApiClient.java
samples/client/petstore/java/feign/src/main/java/io/swagger/client/StringUtil.java
samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/PetApi.java
samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/StoreApi.java
samples/client/petstore/java/feign/src/main/java/io/swagger/client/api/UserApi.java
samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Category.java
samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Order.java
samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Pet.java
samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Tag.java
samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/User.java
2015-12-07 21:29:14 -05:00
David Kiss
eb4acd0971
added unit tests to feign client
2015-12-07 01:13:20 -05:00
xhh
80ed75eef0
Add more javadoc to Java okhttp-gson client
2015-12-07 12:23:50 +08:00
xhh
b1bc75189a
Add WithHttpInfo API methods to Java okhttp-gson client
...
to allow accessing response status code and headers
and removed the methods of recording last response info from
ApiClient.
2015-12-07 11:17:32 +08:00
xhh
d11a19d171
Fix file uploading issue with Java jersey2 client codegen
...
Closes #1650
2015-12-02 18:31:02 +08:00
xhh
eb0e47461c
Add petstore client sample for Java-feign
2015-12-01 16:13:31 +08:00
wing328
a41ca7278a
update retrofit2 gradle to use double quote
2015-11-29 23:21:44 +08:00
wing328
3e213267aa
update java petstore sample
2015-11-29 00:18:34 +08:00
wing328
1fbdb92625
Merge pull request #1613 from xhh/ruby-eql-hash
...
[Ruby] Add "==", "eql?" and "hash" methods to Ruby client
2015-11-26 10:29:59 +08:00
Alvin
cc58711490
update okhttp-gson samples
2015-11-25 15:17:43 +08:00
xhh
630def9d19
Add "equals" and "hashCode" methods to Java clients
...
for the "retrofit" and "retrofit2" libraries
2015-11-25 15:14:03 +08:00
xhh
5ae96c61a9
Add "equals" and "hashCode" methods to Java clients
...
Added for the default, "jersey2" and "okhttp-gson" clients
2015-11-25 15:14:03 +08:00
xhh
11d7e44756
Use separate library to do base64 encoding in Java
...
default and jersey2 clients to make it work in both JVM and Android
2015-11-25 15:14:03 +08:00
xhh
136d0aaa87
Use okhttp's Credentials class to build basic auth string
2015-11-25 15:14:02 +08:00
xhh
e4ac6ef033
Ignore auths when value not specified in Java clients
2015-11-25 15:14:01 +08:00
xhh
0dac326230
Add "==", "eql?" and "hash" methods to Ruby client
2015-11-25 11:46:43 +08:00
wing328
a7e1e128f6
Merge pull request #1605 from xhh/java-equals-hash-code
...
[Java] Add "equals" and "hashCode" methods to Java clients
2015-11-24 15:38:20 +08:00
xhh
f2a8955926
Add "equals" and "hashCode" methods to Java clients
...
for the "retrofit" and "retrofit2" libraries
2015-11-23 19:59:44 +08:00
xhh
2e51aa5076
Add "equals" and "hashCode" methods to Java clients
...
Added for the default, "jersey2" and "okhttp-gson" clients
2015-11-23 15:57:14 +08:00
xhh
4f831e032c
Use separate library to do base64 encoding in Java
...
default and jersey2 clients to make it work in both JVM and Android
2015-11-22 16:27:14 +08:00
Alvin
98396d04a7
update sample & test
2015-11-21 20:12:11 +08:00
Alvin
dc65b5647f
update okhttp-gson samples
2015-11-21 19:42:01 +08:00
xhh
81cf57a00b
Use okhttp's Credentials class to build basic auth string
2015-11-20 20:10:05 +08:00
xhh
b823e8bd35
Ignore auths when value not specified in Java clients
2015-11-20 17:34:46 +08:00
wing328
c150247dca
Merge pull request #1579 from xhh/fix-java-date-format
...
[Java okhttp-gson] Fix datetime format for Android
2015-11-20 15:59:07 +08:00
Curt Hostetter
951e56071f
Ran ./bin/java-petstore-jersey2.sh to update the Petstore sample
2015-11-17 11:18:55 -05:00
xhh
431cdc9c37
Java okhttp-gson: fix datetime format for Android
...
by detecting the current environment (Android SDK version and Java
version) and determine a default datetime format accordingly
Closes #1573
2015-11-17 17:54:13 +08:00
wing328
95d8585dce
Merge pull request #1534 from xhh/java-datetime-format
...
[Java] Improvement date-time format in Java clients
2015-11-16 09:57:52 +08:00
wing328
08bb339398
Merge pull request #1559 from wing328/remove_setting_files
...
Remove eclipse file
2015-11-12 19:52:18 +08:00
xhh
93c6966501
Fix code of customizing date-time format in test
2015-11-12 17:34:12 +08:00
wing328
ee60b5f4f1
Merge pull request #1494 from cbornet/android_manifest
...
Add android manifest to java codegen
2015-11-12 17:17:01 +08:00
wing328
6d470d1896
remove eclipse files
2015-11-12 17:14:20 +08:00
xhh
6b3fc79dec
Merge branch 'master' into java-datetime-format
2015-11-12 17:10:08 +08:00
xhh
55bcceac07
Fix tests on date format by using custom date format
2015-11-12 17:10:03 +08:00
wing328
8836644d37
Merge pull request #1546 from xhh/java-enum-array
...
Fix error with array of enum in Java client
2015-11-10 23:39:21 +08:00
wing328
e00d102c47
Merge pull request #1545 from emilianobonassi/support_retrofit2
...
Add support to Retrofit2
2015-11-10 20:43:19 +08:00
Emiliano Bonassi
47f4396fb7
- fix source/target java version to 1.6
...
- add test profile for CI
2015-11-10 12:30:13 +01:00
xhh
c07e30b8cf
Update testCreateUser to avoid occasional failures
2015-11-10 13:22:06 +08:00
Emiliano Bonassi
3a7204d66c
Add support to Retrofit2
2015-11-10 03:20:49 +01:00
xhh
e3c44b5af3
Improvement on comment
2015-11-09 16:47:33 +08:00
xhh
c48b93384b
Merge branch 'master' into java-datetime-format
2015-11-09 15:59:32 +08:00
xhh
8cab7e785d
Customizing date format in Java okhttp-gson client
2015-11-09 13:49:50 +08:00
xhh
cbc18c97ba
Customizing date format in Java jersey2 client
2015-11-09 11:58:41 +08:00
xhh
a45af48e35
Fix test
2015-11-09 10:23:46 +08:00
wing328
4feca0d680
Merge pull request #1491 from cbornet/javax_android
...
Provide dependency to javax.annotation.Generated for android templates
2015-11-08 11:12:57 +08:00
xhh
c59be88a3e
Support customizing date format in model (de)serialization in Java client
...
and update the default date format to conform to RFC3339
2015-11-07 15:16:13 +08:00
xhh
8d3e555f8a
Add README.md to Java clients
...
containing documentation like how to build and use the client
2015-11-06 17:15:32 +08:00
xhh
1a67f452e2
Make parameters unique in generated code
...
through a config option "ensureUniqueParams" which is false by default
Closes #1422
2015-11-04 20:51:56 +08:00
wing328
c8ce84f650
replace tab with space, update samples
2015-11-03 21:34:44 +08:00
wing328
5bf4d022cf
Merge pull request #1490 from xhh/java-oauth
...
Add oauth support for Java client
2015-11-03 20:34:12 +08:00
cbornet
8b0bf8ff72
add a listener on new token reception
...
Add a listener on new token reception that can then be stored or logged for debug
Add an helper method to add authorizations (otherwise if the swagger def is not complete or correct, it is hard to configure from the main app)
2015-11-02 19:20:24 +01:00
cbornet
5b1f287176
add android manifest to java codegen
2015-11-02 18:32:52 +01:00
cbornet
645b8a01e1
provide dependency to javax.annotation.Generated for android
2015-11-02 16:16:14 +01:00
xhh
a94f9b69af
Add oauth support to other Java clients
...
with libraries jersey2 and okhttp-gson
2015-11-02 22:52:51 +08:00
xhh
b27931cd8c
Add oauth support for Java client
2015-11-02 21:27:53 +08:00
xhh
953edc940f
Java jersey2: use a shared Client instance
2015-10-29 09:40:07 +08:00
xhh
95113dbe22
Fix syntax error on authMethods in java retrofit client
2015-10-27 10:45:23 +08:00
xhh
214e0186e8
Ignore null fields in model serialization
...
in Java clients.
Closes #1413
2015-10-21 12:05:27 +08:00
Tony Tam
7f5cdba606
rebuilt
2015-10-20 11:42:40 -07:00
Tony Tam
295af57c9a
fixed build error
2015-10-20 11:31:21 -07:00
Tony Tam
10a9c62e2b
merged
2015-10-20 10:57:36 -07:00
Tony Tam
a6bd0773f7
added files
2015-10-20 10:56:18 -07:00
Tony Tam
2f3a2413c7
rebuilt
2015-10-20 08:49:26 -07:00
Tony Tam
e1ee7065d5
rebuilt client
2015-10-19 23:12:02 -07:00
cbornet
3debd08a32
remove useless import
2015-10-16 12:47:25 +02:00
cbornet
92d1e8a1d9
use StringUtil to format csv
2015-10-16 12:21:45 +02:00
cbornet
71c5160739
add colllectionFormat support to retrofit
...
Fix #1364
2015-10-16 12:21:45 +02:00
xhh
a1fa0b0834
Rebuild Petstore samples
2015-10-16 10:47:00 +08:00
xhh
a94384ca7f
Merge branch 'master' into java-util-model-package
2015-10-15 10:38:19 +08:00
wing328
583493f5ca
Merge pull request #1377 from cbornet/java_gradle_android
...
Add gradle files with android support to java templates
2015-10-15 10:28:28 +08:00
cbornet
5ed52b3e1d
add gradle files with android support
2015-10-12 16:16:38 +02:00
xhh
7b1799f874
Merge branch 'master' into java-util-model-package
...
Conflicts:
samples/client/petstore/java/default/src/main/java/io/swagger/client/api/PetApi.java
samples/client/petstore/java/default/src/main/java/io/swagger/client/api/StoreApi.java
samples/client/petstore/java/default/src/main/java/io/swagger/client/api/UserApi.java
samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Order.java
samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Pet.java
2015-10-12 17:11:43 +08:00
xhh
aa0fbada07
Add a "fullJavaUtil" option to Java clients
...
to toggle whether to use full qualified name (with full package prefix)
for classes under java.util
2015-10-09 22:10:22 +08:00
xhh
ab34dc5697
Rebuild Java cilents of the Petstore sample
2015-10-09 22:10:21 +08:00
wing328
d451d4efb8
fix NPE when model's allof with no property
2015-10-08 23:38:09 +08:00
wing328
69911a1974
Merge pull request #1311 from xhh/java-okhttp-gson-ssl
...
Add some SSL options to Java okhttp-gson client
2015-10-04 23:02:25 +08:00
xhh
f483f934d8
Add some SSL options Java okhttp-gson client
...
* Add the `verifyingSsl` option to allow skipping verifying SSL
certificate and host name (default to verify)
* Add `sslCaCert` to allow customizing the CA certificates
2015-09-30 19:48:18 +08:00
wing328
17bdd73891
fix springmvc by removing import of Object
2015-09-30 16:28:17 +08:00
xhh
597282742b
Fix ApiClient.setDateFormat in Java jersey2 client
2015-09-24 21:56:50 +08:00
wing328
b080abeb01
Merge pull request #1280 from xhh/primitive-string-response
...
[Java] Support primitive string response in Java clients
2015-09-24 16:37:17 +08:00
wing328
5ee86b9816
Merge pull request #1264 from xhh/java-enum-improvements
...
[Java] Improvements on enum var name in Java client
2015-09-24 11:42:11 +08:00
xhh
a284bb7a51
Rebuild Java clients of the Petstore sample
2015-09-23 13:31:28 +08:00
wing328
85f99934c8
Merge pull request #1256 from cbornet/java_retrofit_lib
...
Set retrofit as a java library
2015-09-23 09:12:07 +08:00
xhh
6dcaa890cf
Improvements on enum var name in Java client
...
* Place each enum var in a separate line
* Truncate common prefix when present
2015-09-21 17:29:26 +08:00
cbornet
f29f5d6f13
fix error with formParams in async ops
2015-09-18 14:45:37 +02:00
cbornet
1863aca0fa
set retrofit as a java library
...
Fix #1247
Fix #1248
2015-09-18 14:21:48 +02:00
xhh
477d5c40d9
Rebuild Java okhttp-gson client of Petstore sample
2015-09-17 10:22:53 +08:00
xhh
1ecb8a74c1
Allow customizing temp folder for file downloading
2015-09-13 21:02:22 +08:00
xhh
967c574f5b
Support file downloading in Java okhttp-gson client
2015-09-13 18:41:53 +08:00
xhh
2e402bba97
Rebuild Java clients for the petstore sample
2015-09-11 13:22:37 +08:00
xhh
8b96cdb7d7
Set source/target compatibility in Android client
2015-09-07 16:35:34 +08:00
xhh
027e4c5a20
Set source and target compatibility to 1.7
...
in build.gradle to make it work with Android
2015-09-02 18:35:58 +08:00
xhh
3c79a692aa
Use a separate library for base64-encoding in the okhttp-gson template
2015-09-01 19:56:06 +08:00
xhh
3112e4ad06
Add build files for Gradle and SBT
2015-09-01 11:20:44 +08:00
xhh
e35be1bd40
Generate Java petstore sample for okhttp-gson
2015-08-31 19:59:17 +08:00
xhh
8408a97aef
Java: Support special characters in enum values
...
and use upper case for enum names
Conflicts:
samples/client/petstore/java/default/src/main/java/io/swagger/client/JSON.java
samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Order.java
samples/client/petstore/java/default/src/main/java/io/swagger/client/model/Pet.java
2015-08-24 18:21:16 +08:00
wing328
164ed99812
fix serializableModel (boolean)
2015-08-24 11:50:21 +08:00