Tony Tam
66e6d4fb8a
rebuilt client
2015-08-23 11:10:04 -07:00
xhh
595c01c537
Merge branch 'develop_2.0' into library-template-jersey2
...
Conflicts:
modules/swagger-codegen/src/main/resources/Java/JsonUtil.mustache
2015-08-22 21:53:04 +08:00
xhh
af2ec4cf85
Merge branch 'develop_2.0' into library-template-jersey2
...
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/JavaClientCodegen.java
modules/swagger-codegen/src/main/resources/Java/api.mustache
2015-08-20 17:36:42 +08:00
xhh
4321339d4f
Java petstore sample: move to "default" sub-folder, add jersey2
2015-08-05 17:28:45 +08:00
xhh
d88ec847ae
Remave unused imports
2015-08-05 09:43:15 +08:00
xhh
7c16dfcf13
Rebuild Java petstore sample
2015-08-04 18:36:03 +08:00
wing328
d0baa48fcd
fix empty operationId
2015-07-27 11:21:51 +08:00
xhh
fb0b7d622f
Merge branch 'develop_2.0' into params-order
...
Conflicts:
modules/swagger-codegen/src/main/resources/php/api.mustache
2015-07-13 15:30:06 +08:00
Tony Tam
461f556289
Merge pull request #893 from sudohippie/develop_2.0-fork
...
Android & Java template modifications to check collectionFormat when creating query parameters
2015-07-09 10:11:54 -07:00
Raghav Sidhanti
1af23fb751
Unit tests for Android and Java parameterToPairs method
2015-06-24 11:55:03 -07:00
Raghav sidhanti
b4d6fd3ba3
Returning when query param value is null.
2015-06-22 20:16:35 -07:00
Raghav Sidhanti
6958db3d3d
Refactored Pairs to use List instead of Set.
2015-06-22 17:14:18 -07:00
Raghav Sidhanti
32b50e7c8e
Refactored parameterToPairs
2015-06-22 17:02:00 -07:00
Raghav Sidhanti
79a5614be9
Invalid strings will be passed as blank query param.
2015-06-22 15:55:29 -07:00
Raghav Sidhanti
ecddfb7ccf
Renamed QueryParam to Pair class in Java templates.
2015-06-22 15:16:45 -07:00
Raghav Sidhanti
7a9a41fe01
Java and Android template changes to accommodate query params defined by the collection-format.
2015-06-19 14:06:25 -07:00
Andrew B
1aeb50feef
Replacing getClientResponseStatus() with getStatusInfo()
2015-06-18 14:41:17 -07:00
xhh
9c4e5ed596
Rebuild Petstare sample for Java, Android, PHP, etc.
2015-06-17 16:15:37 +08:00
fehguy
3d2f09a693
updated versions
2015-06-09 00:25:09 -07:00
Tony Tam
450edae160
fixed imports
2015-06-07 20:35:56 -07:00
Ron
1c2d0656b0
Code reformatting
2015-06-07 11:56:08 -04:00
Tony Tam
6c57810128
rebuilt
2015-06-07 00:08:01 -07:00
Tony Tam
8c340d52a4
updated packages
2015-06-06 23:58:36 -07:00
xhh
d345283ab5
Merge branch 'develop_2.0' into java-accept-contenttype
...
Conflicts:
modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen/languages/JavaClientCodegen.java
modules/swagger-codegen/src/main/resources/Java/ApiClient.mustache
modules/swagger-codegen/src/main/resources/Java/api.mustache
samples/client/petstore/java/src/main/java/io/swagger/client/ApiClient.java
samples/client/petstore/java/src/main/java/io/swagger/client/api/PetApi.java
samples/client/petstore/java/src/main/java/io/swagger/client/api/StoreApi.java
samples/client/petstore/java/src/main/java/io/swagger/client/api/UserApi.java
samples/client/petstore/java/src/test/java/io/swagger/client/ApiClientTest.java
2015-06-06 08:46:19 +08:00
xhh
fffc5d7c35
Move authentications into ApiClient
2015-06-05 20:00:32 +08:00
xhh
947935f3d9
Merge remote-tracking branch 'origin/develop_2.0' into java-auth
...
Conflicts:
modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen/languages/JavaClientCodegen.java
modules/swagger-codegen/src/main/resources/Java/ApiClient.mustache
modules/swagger-codegen/src/main/resources/Java/api.mustache
samples/client/petstore/java/src/main/java/io/swagger/client/ApiClient.java
samples/client/petstore/java/src/main/java/io/swagger/client/Configuration.java
samples/client/petstore/java/src/main/java/io/swagger/client/api/PetApi.java
samples/client/petstore/java/src/main/java/io/swagger/client/api/StoreApi.java
samples/client/petstore/java/src/main/java/io/swagger/client/api/UserApi.java
samples/client/petstore/java/src/test/java/io/swagger/client/ConfigurationTest.java
samples/client/petstore/java/src/test/java/io/swagger/petstore/test/PetApiTest.java
2015-06-05 18:43:49 +08:00
xhh
d70742119b
Update unit tests
2015-06-05 16:45:19 +08:00
xhh
622b5c179a
Merge remote-tracking branch 'origin/develop_2.0' into java-accept-contenttype
...
Conflicts:
modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen/languages/JavaClientCodegen.java
modules/swagger-codegen/src/main/resources/Java/ApiClient.mustache
modules/swagger-codegen/src/main/resources/Java/api.mustache
samples/client/petstore/java/src/main/java/io/swagger/client/ApiClient.java
samples/client/petstore/java/src/main/java/io/swagger/client/api/PetApi.java
samples/client/petstore/java/src/main/java/io/swagger/client/api/StoreApi.java
samples/client/petstore/java/src/main/java/io/swagger/client/api/UserApi.java
2015-06-05 16:31:21 +08:00
xhh
cf4b4de970
Skip null header/form parameters
...
and fix the bug of getting file name for file parameter
2015-06-03 20:26:14 +08:00
xhh
eb4973237b
Add comments to code
2015-06-03 10:09:36 +08:00
xhh
19540ed7f0
Store response headers and body in ApiException
2015-06-02 15:33:44 +08:00
xhh
a8c526efd5
Add unit tests for Configuration and ApiClient
2015-05-29 12:08:42 +08:00
xhh
62c8f9e1e2
Rebuild Java Petstore sample
2015-05-29 12:08:42 +08:00
xhh
6a6473ede3
Allow omitting username/password for HTTP basic auth
2015-05-29 11:55:48 +08:00
xhh
e10e1f5249
Refactor auth method naming, add comments
2015-05-29 11:29:06 +08:00
xhh
6eb1a89205
Add authentication helper methods and test cases
2015-05-29 11:28:03 +08:00
xhh
4d25d264c4
Merge remote-tracking branch 'origin/develop_2.0' into java-auth
...
Conflicts:
modules/swagger-codegen/src/main/resources/Java/apiInvoker.mustache
samples/client/petstore/java/src/main/java/io/swagger/client/ApiInvoker.java
2015-05-29 10:08:50 +08:00
xhh
951b7a9075
Do not use JSON as default Accept header when no produces present
2015-05-26 10:35:49 +08:00
xhh
aa03be7f76
Clean up old code
2015-05-25 17:25:32 +08:00
xhh
ed14c515bf
Add comments to string utility methods
2015-05-25 16:01:57 +08:00
xhh
19a8ac4841
Add unit tests
2015-05-25 12:32:24 +08:00
xhh
85d0e08a80
Rebuild Java Petstore client
2015-05-25 12:31:54 +08:00
xhh
141b580c8c
Minor improvement to Java API client accept and content-type header
2015-05-24 08:52:14 +08:00
Tony Tam
d447c423b5
updated test to get expected value
2015-05-23 08:33:48 -07:00
Tony Tam
f9ed8a9a08
updated test to get expected value
2015-05-23 08:33:40 -07:00
xhh
43cfc7d401
Setup authentications in test cases
2015-05-22 12:07:08 +08:00
xhh
16ba2a54ea
Add test cases for API key and HTTP basic auth
2015-05-22 11:17:44 +08:00
xhh
f616605e7e
Regenerate Java Petstore sample
2015-05-21 22:09:08 +08:00
Tony Tam
11dd7784f8
rebuilt
2015-05-20 22:20:51 -07:00
wing328
2e85871a4b
remove hello.txt (created by mvn test)
2015-04-30 17:12:25 +08:00
wing328
303378c5eb
fix android required parameter check
2015-04-30 16:29:21 +08:00
wing328
fb3088b765
fixed required parameter in java api
2015-04-29 17:31:38 +08:00
Tony Tam
fad7246e05
removed file
2015-04-04 20:59:57 -07:00
Tony Tam
ba2ccf788c
name rebuilds, tests
2015-04-04 17:00:22 -07:00
xhh
d5ad4c4ae7
Fix date time format for Android client
...
According to Android's docs (https://developer.android.com/reference/java/text/SimpleDateFormat.html )
the `SimpleDateFormat` class in Android does not accept `XXX` as the timezone, it uses `Z` instead.
Also updated the date time format of Android and Java clients to include milliseconds.
2015-04-01 10:22:04 +08:00
Tony Tam
6ac497d774
rebuilt
2015-03-31 16:12:42 -07:00
Tony Tam
cab50ccb59
Merge pull request #548 from xhh/java-android-user-agent
...
Set default User-Agent for Java and Android clients
2015-03-29 08:52:56 -07:00
xhh
90db8e2147
Add setUserAgent method to Java and Android clients
2015-03-29 09:55:20 +08:00
xhh
65883a5d85
Set default User-Agent for Java and Android clients
2015-03-29 09:55:19 +08:00
William Cheng
c2b3e68f8c
rebase on develop_2.0
2015-03-28 16:48:07 +08:00
William Cheng
27e1b1c4b2
update java doc
2015-03-28 16:43:15 +08:00
Tony Tam
5d6d563a8e
updated versions
2015-03-26 23:17:17 -07:00
Tony Tam
442be8624c
rebuilt client, added tests
2015-03-26 23:10:10 -07:00
Tony Tam
8b98a92805
adds tests, fixes for java templates
2015-03-26 20:32:59 -07:00
William Cheng
62d28ebca5
better variable and model property naming for java
2015-03-22 23:24:43 +08:00
xhh
f8a5e900f8
Add parameterToString to normalize parameters for Java client
...
* Convert values to string for query/header/form parameters.
* For parameter of type Date, convert to ISO 8601 format.
* Also add utility methods to parse date in ISO 8601 format.
2015-03-18 18:58:13 +08:00
Tony Tam
9ae106affd
rebuilt clients
2015-02-17 21:37:51 -08:00
Tony Tam
31eb392d40
rebuild client
2015-02-16 17:55:15 -08:00
Tony Tam
9707f0a1ab
updated client
2015-02-15 21:18:54 -08:00
Tony Tam
20deb15c8c
updated client
2015-02-12 21:54:34 -08:00
Tony Tam
69dceb7f69
updated samples
2015-02-05 20:58:32 -08:00
Tony Tam
f7c6810757
updated samples
2015-02-05 11:35:13 -08:00
Tony Tam
2f16ee3b29
renamed package
2015-02-05 11:34:23 -08:00
Tony Tam
f8624dbcaa
update to m1 release
2015-02-03 21:50:02 -08:00
Tony Tam
23d2d09136
added help, dynamic loading
2014-11-26 16:37:44 -10:00
Tony Tam
4c674ca94b
rebuilt samples
2014-10-26 21:46:26 -07:00
Tony Tam
2dd73872a4
updated with tests
2014-09-26 09:38:07 -07:00
Rob Blair
fc77521d49
Simplify java sample poms.
...
* remove scala references from the java client pom template files.
* regenerate the petstore sample pom.xml, verify they can build properly.
2014-08-25 17:37:36 -07:00
Rob Blair
1522069281
Regenerate the java code before modifying templates
2014-08-25 17:35:44 -07:00
Tony Tam
454ec4b438
fix for #235
2014-08-08 16:38:38 -04:00
Rob Blair
233555790a
Regenerate sample java files with example response status codes
...
* none of existing examples use the responseMessage.responseModel feature, but I have tested it.
* Didn't want to muck with sample json
* update the scripts used to generate both java versions.
* see https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md#525-response-message-object
2014-06-16 12:59:53 -07:00
Tony Tam
a404823c54
updated copyright
2014-06-10 17:23:35 -07:00
Tony Tam
c87d637edd
regenerated
2014-06-06 00:27:40 -07:00
Tony Tam
4f7b80dad2
added debug, fixed headers
2014-06-05 22:49:09 -07:00
Tony Tam
8bf042b153
updated sample with form param support
2014-03-05 07:54:03 -08:00
Tony Tam
bb3bd0d357
regenerated clients
2014-01-27 07:49:58 -08:00
Tony Tam
6c8aed5dcc
Merge pull request #112 from vaelen/fix-no-content
...
Updated Java client to handle the case of a NO_CONTENT response.
2014-01-16 13:36:06 -08:00
Andrew Young
bfb5b721c5
Merge remote-tracking branch 'upstream/master' into fix-no-content
...
Conflicts:
samples/client/petstore/java/src/main/java/com/wordnik/client/ApiInvoker.java
2013-12-02 13:42:15 -08:00
Robert Blair
9b6995f28c
Merge branch 'master' into issues/67
2013-11-29 10:49:48 -08:00
Robert Blair
90c14fd116
issue/91 - and also check in the generated fils
2013-11-27 20:04:57 -08:00
Rob Blair
3a8928f869
issues/91 - regenerate petstore java files
2013-11-27 14:19:56 -08:00
Andrew Young
8cc83d180d
Fixed spacing issue.
2013-11-27 12:58:58 -08:00
Andrew Young
9686ceed2d
Updated sample code to reflect changes.
2013-11-27 12:52:38 -08:00
Robert Blair
08a3e9e881
Rebuild generated java samples with ApiException checking properly located
2013-11-27 01:16:21 -08:00
Robert Blair
17c38115e6
rebuild java files before changes to template
2013-11-27 01:05:13 -08:00
Tony Tam
930b1ea0ea
updated java example
2013-09-16 17:35:01 -07:00
Tony Tam
01ff7be020
updated to 1.2
2013-08-16 17:22:02 -07:00
Tony Tam
a3f5c0c688
fixed content type for java client
2013-08-08 16:05:05 -07:00
Tony Tam
9e8f817a6b
Merge pull request #59 from radius314/feature/escaping-forward-slash-windows
...
fixing replaceAll bug on windows with escaping paths, changed replaceAll...
2013-06-05 08:18:19 -07:00
Tony Tam
251384bb47
added groupId
2013-06-01 12:15:14 -07:00
Tony Tam
54ec7f2bb2
added artifact id
2013-06-01 12:11:59 -07:00
Danny Gershman
e9fa4434f2
fixing replaceAll bug on windows with escaping paths, changed replaceAll() to replace()
2013-05-30 15:35:47 -04:00
Tony Tam
24aa603230
regenerated client
2013-04-22 09:50:02 -07:00
Tony Tam
8b8a956155
regenerated sample
2013-04-22 09:49:45 -07:00
Tony Tam
5e801dd1d7
updated repos, removed scala runtime
2013-04-22 09:49:15 -07:00
Tony Tam
d18cc2d3e4
updated samples with correct property ordering
2012-12-04 08:32:23 -08:00
Tony Tam
36f4239c93
removed old refs
2012-10-05 21:08:55 -07:00
Tony Tam
67ce62c622
added license info
2012-09-26 22:15:28 -07:00
Tony Tam
93d81b84dc
updated location for writing api invoker
2012-09-25 22:31:39 -07:00
Tony Tam
548b86aef1
fixed package
2012-09-25 22:30:47 -07:00
Tony Tam
611cc6075b
moved to client dir
2012-09-23 16:34:59 -07:00