Commit Graph

631 Commits

Author SHA1 Message Date
xhh
e52694cde0 Regenerate Ruby Petstore sample 2015-05-29 11:57:46 +08:00
xhh
95813714a5 Add support of HTTP basic and API key auth to Ruby codegen 2015-05-29 11:57:46 +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
wing328
165efdbdbb rename apiinvoker to apiclient, add configuration, make apiclient an instance 2015-05-28 18:24:03 +08:00
wing328
e993d08563 rename APIClient to ApiClient, APIClientException to APIException 2015-05-28 15:06:31 +08:00
wing328
1a868abdfa rename APIClient to ApiClient 2015-05-28 10:51:36 +08:00
wing328
2c12312b97 update user agent and add more test cases 2015-05-27 22:44:56 +08:00
wing328
866b546cfd make api client pluggable 2015-05-27 17:56:39 +08:00
wing328
4d1d163a73 update php template to debug curl 2015-05-26 23:52:35 +08:00
wing328
171bf969c7 add debug switch to configuration 2015-05-26 23:20:34 +08:00
geekerzp
ca145297e9 Updated ApiClient of objc sdk.
When create api instance, if we don't pass the `apiClient` parameter,
then get api client instance from the pool.
2015-05-26 18:00:45 +08:00
wing328
c2c43bba37 make datetime nullable 2015-05-26 17:48:52 +08:00
xhh
951b7a9075 Do not use JSON as default Accept header when no produces present 2015-05-26 10:35:49 +08:00
wing328
f807e34b2b refactor csharp (no compile error) 2015-05-25 18:21:17 +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
geekerzp
2d545c7f0b updated ApiClient of python sdk.
Change staticmethod to instance method.
2015-05-25 15:29:31 +08:00
geekerzp
3beeb6125e updated ApiClient of python sdk.
When create api instance, if we don't pass the `api_client` parameter,
then use the default api_client in `config` module.
2015-05-25 14:31:55 +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
wing328
92dd5cab93 add restsharp.dll, update compile.bat 2015-05-25 11:44:08 +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
087c28dae4 rebuilt client 2015-05-23 09:04:46 -07:00
Tony Tam
85c37fbe27 fix for #781 2015-05-23 09:04:40 -07:00
Tony Tam
82436c5b44 Merge pull request #780 from geekerzp/develop_2.0_objc_contenttype
Minor improvement to Objc API Client 'accept' and 'content-type' header
2015-05-23 08:54:53 -07:00
Tony Tam
156afa7795 Merge pull request #778 from wing328/php_apiclient_instance
[PHP] Make API client more pluggable
2015-05-23 08:54:33 -07:00
Tony Tam
74dc05bbf5 Merge pull request #776 from wing328/php53_fix_warning
[PHP] Fix warning/error related to PHP5.3
2015-05-23 08:53:52 -07:00
Tony Tam
b6d206aff7 Merge pull request #774 from geekerzp/develop_2.0_python_contenttype
Minor improvement to Python API Client 'accept' and 'content-type' header
2015-05-23 08:53:34 -07:00
Tony Tam
3cb9d094d3 Merge branch 'ruby-void-response' of ssh://github.com/xhh/swagger-codegen into xhh-ruby-void-response 2015-05-23 08:49:28 -07:00
Tony Tam
d83a275b6e Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-05-23 08:48:40 -07:00
Tony Tam
565f054b79 merged 2015-05-23 08:48:18 -07:00
Tony Tam
f4aee62fb4 Merge pull request #775 from wing328/csharp_fix_object_type
[C#] Fix "object' type for response
2015-05-23 08:43:14 -07: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
geekerzp
2514f3aa08 update SWGApiClient.h of objc client. 2015-05-23 15:29:38 +08:00
geekerzp
3d3cbe115e minor improvement to objc client accept and content-type header 2015-05-23 15:22:12 +08:00
wing328
691838c47d add test case for api client instance 2015-05-23 10:35:19 +08:00
wing328
612abf134b api client as instance (not static class) 2015-05-22 22:09:51 +08:00
geekerzp
87a730b5a2 Merge branch 'develop_2.0' into develop_2.0_objc_contenttype
Conflicts:
	samples/client/petstore/objc/client/SWGPetApi.m
2015-05-22 17:32:57 +08:00
geekerzp
8d0efd812c updated unittests of python client 2015-05-22 15:50:09 +08:00
geekerzp
245ce642ce add test cases for ApiClient.select_header_accept and
ApiClient.select_header_content_type of python client.
2015-05-22 15:28:36 +08:00
wing328
df4b952312 fix object type without ref for CSharp 2015-05-22 14:12:53 +08: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
geekerzp
bc9abceef3 removed temp files from python client 2015-05-22 11:12:35 +08:00
geekerzp
8a311d693b updated python client samples 2015-05-22 10:50:11 +08:00
geekerzp
52807c0724 minor improvement to python client accept and content-type header 2015-05-22 10:45:38 +08:00
William Cheng
fa15f58506 fix warning/error in php5.3 2015-05-22 05:15:46 +08:00
xhh
f616605e7e Regenerate Java Petstore sample 2015-05-21 22:09:08 +08:00
Tony Tam
99a11636da rebuilt 2015-05-20 22:51:30 -07:00
Tony Tam
3629a190ae merged 2015-05-20 22:50:59 -07:00
Tony Tam
715a9b8678 merged 2015-05-20 22:50:41 -07:00
Tony Tam
4187be2dc3 Merge pull request #767 from geekerzp/develop_2.0_python_model
Pretty print for models of python client
2015-05-20 22:46:41 -07:00
Tony Tam
c8a56add5d merged 2015-05-20 22:45:52 -07:00
Tony Tam
e66f9d7fce Merge pull request #760 from geekerzp/develop_2.0_objc_required_parameter
Fix required parameter validation for Objc
2015-05-20 22:42:10 -07:00
Tony Tam
9bf9b3edb7 rebuilt 2015-05-20 22:41:09 -07:00
Tony Tam
779915a51f rebuilt 2015-05-20 22:34:54 -07:00
Tony Tam
c509bbcb99 updated 2015-05-20 22:34:29 -07:00
Tony Tam
8231e7e36a Merge branch 'develop_2.0_objc_iso8601' of ssh://github.com/geekerzp/swagger-codegen into geekerzp-develop_2.0_objc_iso8601 2015-05-20 22:29:26 -07:00
Tony Tam
11dd7784f8 rebuilt 2015-05-20 22:20:51 -07:00
Tony Tam
ab23cccab4 Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-05-20 22:13:03 -07:00
Tony Tam
e58f8db9aa merged 2015-05-20 22:12:37 -07:00
Tony Tam
b059910a01 Merge pull request #700 from wing328/csharp_restcsharp
Use RestSharp for CSharp API client
2015-05-20 21:52:28 -07:00
Tony Tam
ff81789b37 merged 2015-05-20 21:41:17 -07:00
Tony Tam
e6efcdb6af added files, updated parser version 2015-05-20 21:39:09 -07:00
xhh
9cf4c66331 Update method returning value comment 2015-05-21 11:30:30 +08:00
wing328
4f310cd7b1 update function comment 2015-05-20 22:13:24 +08:00
geekerzp
9ff0d90853 Updated python models.
Overwrite the instance method `__repr__`,
make the `pprint` method output properties infos of the models.
2015-05-20 22:05:34 +08:00
wing328
6e13403a37 fix http basic auth, add test cases for new api client without host 2015-05-20 21:55:16 +08:00
xhh
8bf84aabe5 Add test case for nil return value 2015-05-20 21:13:20 +08:00
xhh
50a767ef03 Regenerate Ruby Petstore sample 2015-05-20 21:13:02 +08:00
wing328
9a1dedbe76 add test case (getPetbyId), remove old authenetication (only supports header) 2015-05-20 18:43:34 +08:00
wing328
20439e646f add test case and prefix support 2015-05-20 18:25:35 +08:00
wing328
06c7a6a109 add todo for oauth, support multiple api key 2015-05-20 17:13:52 +08:00
wing328
278a653154 add authentication 2015-05-20 17:13:52 +08:00
geekerzp
3a8b149f09 minor improvement to objc api client accept and content-type header 2015-05-20 15:52:00 +08:00
kubo_takaichi
23d714f2f1 Add swift code generator 2015-05-20 11:27:45 +09:00
xhh
792059f195 Avoid warnings for ruby gem building 2015-05-20 09:23:45 +08:00
xhh
70c74d282f Fix tests 2015-05-20 09:23:45 +08:00
xhh
ab4975b7f1 Regenerate petstore ruby sample 2015-05-20 09:23:44 +08:00
xhh
f766614b4d Clean old files generated 2015-05-20 09:23:44 +08:00
xhh
fcf1327c1f Rename swagger-client to swagger_client
according to guides from rubygems: http://guides.rubygems.org/name-your-gem/
2015-05-20 09:23:44 +08:00
xhh
b140f1f152 Fix example code in README.md of Ruby petstore sample 2015-05-20 09:23:44 +08:00
xhh
87904e8b69 Set version dynamically in ruby codegen
Conflicts:
	modules/swagger-codegen/src/main/resources/ruby/swagger/version.mustache
	samples/client/petstore/ruby/lib/swagger/version.rb
2015-05-20 09:23:44 +08:00
xhh
194e9e6f05 Make petstore tests pass 2015-05-20 09:23:43 +08:00
xhh
8dd7d3aacd Regenerate ruby petstore sample code 2015-05-20 09:23:43 +08:00
geekerzp
a0abea4b72 added required parameters check for objc 2015-05-19 17:12:46 +08:00
wing328
5744bd0138 better exception using InvalidArgumentException 2015-05-19 16:21:06 +08:00
xhh
db9ca1a485 Fix test of updatePetWithForm for Android Petstore sample 2015-05-19 15:42:29 +08:00
wing328
af260cba41 update api client to support default header 2015-05-19 15:33:03 +08:00
geekerzp
a77ae51318 update python tests 2015-05-19 15:21:09 +08:00
wing328
5aad44e628 added back test case for updatePetWithForm 2015-05-19 10:15:36 +08:00
wing328
41e178e268 better accept and content-type for php, added test cases 2015-05-18 22:16:54 +08:00
Tony Tam
e068ad4494 Merge pull request #756 from wing328/perl_improve_accept_header
[Perl] better logic for accept and content-type, added test cases
2015-05-18 06:36:11 -07:00
wing328
7fc2f74851 remove commented code 2015-05-18 16:39:33 +08:00
wing328
abbea5ec4c better logic for accept and content-type, added test cases 2015-05-18 16:23:46 +08:00
William Cheng
05ac516ffa clean up ruby sample, remove commented code, bug fix 2015-05-18 04:30:26 +08:00
William Cheng
3de9b4bfc8 remove (duplicated) object_to_http_body and object_to_hash from swagger.rb 2015-05-17 23:47:55 +08:00
William Cheng
92a2011207 fix post model, update rspec 2015-05-17 23:38:51 +08:00
William Cheng
8710fbfde7 add base object 2015-05-17 23:36:13 +08:00
Tony Tam
0e0e265a2a Merge pull request #746 from wing328/ruby_fix_contenttype
Minor improvement to Ruby API Client 'accept' and 'content-type' header
2015-05-16 09:13:58 -07:00
Tony Tam
d6ac7c5ecf Merge pull request #659 from wing328/add_php_unit_test
Bug fix for PHP client POST (model) and add more PHP test cases
2015-05-16 09:13:35 -07:00
Tony Tam
472e2afd8e Merge pull request #749 from wing328/perl_add_unittest
Add unit testing for Perl
2015-05-16 06:56:53 -07:00
geekerzp
68b0259c47 updated readme.md of python 2015-05-16 18:05:06 +08:00
geekerzp
9809ce1d18 updated python unittests 2015-05-16 17:30:42 +08:00
William Cheng
7a5db5e665 add pom.xml for perl integration test 2015-05-16 16:44:32 +08:00
Tony Tam
6ec7cf5a9d updated request process 2015-05-16 01:09:01 -07:00
Tony Tam
f4cbd88e2c fixed ordering 2015-05-16 00:45:42 -07:00
William Cheng
9904c0e09f add unit testing for pet 2015-05-16 15:37:58 +08:00
Tony Tam
a2d2deeb0c Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-05-15 11:27:16 -07:00
Tony Tam
b4674d6fc5 template updates, tests 2015-05-15 11:27:03 -07:00
wing328
1f6a19b684 minor improvement to ruby api client accept and content-type header 2015-05-15 20:58:59 +08:00
geekerzp
c06cb38d64 updated objc client to support iso8601 datetime format 2015-05-15 17:49:56 +08:00
geekerzp
6826a1d7df updated readme.mustache in python client 2015-05-15 14:51:51 +08:00
geekerzp
d798b943f5 added python 2.7 and python 3.4 test environments 2015-05-15 14:38:06 +08:00
wing328
4466b6e15e add test case for upload file, improve error handling 2015-05-15 11:08:33 +08:00
Tony Tam
0248d6fd9f Merge pull request #677 from wing328/fix_swagger_type2
Fix PHP swagger type
2015-05-14 11:50:57 -04:00
Tony Tam
bc66894553 Merge pull request #688 from xhh/scala-form-params
Add form parameters support to Scala codegen
2015-05-14 11:50:42 -04:00
wing328
c12673a407 fix error handling for 4xx, 5xx returned by server 2015-05-14 14:16:12 +08:00
geekerzp
86e48ceef8 refactor python client using urllib3 2015-05-14 10:45:05 +08:00
Tony Tam
622d883344 fixed input type 2015-05-12 06:57:37 -04:00
Tony Tam
8519480f2c removed some cruft 2015-05-12 06:50:45 -04:00
Tony Tam
037a00720f added qt5 samples, script 2015-05-12 06:04:10 -04:00
Tony Tam
d6016757cb Merge pull request #705 from wing328/fix_required_parameter
Fix required parameter validation for Java, Android, PHP and Ruby
2015-05-12 05:48:22 -04:00
Tony Tam
08184aab1d Merge pull request #679 from xhh/petstore-scala-tests
Fix tests for Scala petstore sample
2015-05-12 05:48:11 -04:00
Tony Tam
e33fbc67ad Merge pull request #648 from geekerzp/develop_2.0_objc_naming
Updated naming convention in objc client.
2015-05-12 05:47:51 -04:00
wing328
2f5f2b367b update package name to confirm to csharp convention, fix default header 2015-05-12 12:45:59 +08:00
William Cheng
fc43828c20 update type mapping, update test.pl to use local file for testing upload 2015-05-08 03:58:02 +08:00
William Cheng
063a1ffd36 update type list in deserialize 2015-05-08 03:58:02 +08:00
William Cheng
1d4735f76d update subroutine argument 2015-05-08 03:58:01 +08:00
William Cheng
c03250132d update error message, update test script 2015-05-08 03:58:01 +08:00
William Cheng
48844442fc test post body (model), fix to_hash attribute mapping 2015-05-08 03:58:01 +08:00
William Cheng
f69fb40c71 add methods for static variable 2015-05-08 03:58:01 +08:00
William Cheng
0a34793f5a add inheritance to object (model) 2015-05-08 03:58:00 +08:00
William Cheng
07cd23edac seralization and deserialization work, get_pet_by_id and
update_pet_with_form work
2015-05-08 03:58:00 +08:00
William Cheng
a7ef1262e5 fix all swagger.pl syntax issue 2015-05-08 03:58:00 +08:00
William Cheng
c5fcf3ba2c remove pl files 2015-05-08 03:58:00 +08:00
William Cheng
d206035e0f add perl support - api template, bin, codegen 2015-05-08 03:57:59 +08:00
Tony Tam
c7e22b7a3b Merge pull request #726 from who/feature/gson-for-android-client
Feature: Use gson for android-client instead of jackson
2015-05-07 06:26:37 -07:00
Andrew B
20ced771ba Restoring the pom.xml so integration tests work 2015-05-07 01:09:25 -07:00
Andrew B
01b7385a5e Implementing gson in android client templates 2015-05-06 22:54:25 -07:00
wing328
070a6203e0 remove php comment 2015-05-07 13:35:19 +08:00
who
902c56f09b Initial commit of jackson-to-gson 2015-05-06 17:46:54 -07:00
Tony Tam
157da246c0 added async test sample 2015-05-06 12:56:45 -07:00
Tony Tam
65097a4908 Merge pull request #680 from geekerzp/develop_2.0_python_testing
Bug fix for deserialize model issue and added unit tests for python client
2015-05-04 21:11:35 -07:00
who
b94eb443ea Adding some tests that were accidentally deleted 2015-04-30 12:52:21 -07:00
who
6be2c06ed3 Adding maven publish functionality for android client 2015-04-30 10:34:43 -07:00