Tony Tam
b4f153c202
Merge pull request #826 from xhh/java-auth
...
[Java] Add authentication support (API key, HTTP basic)
2015-06-05 08:45:08 -07:00
Tony Tam
0d09d43257
Merge pull request #823 from wing328/fix_file_rename
...
[C#] Fix ApiException file name
2015-06-05 08:43:08 -07:00
wing328
d0f9345c5a
fix php map, add test case for get inventory
2015-06-05 21:57:12 +08:00
xhh
fffc5d7c35
Move authentications into ApiClient
2015-06-05 20:00:32 +08:00
Fredrik Gustafsson
e737964f66
minor refactoring
2015-06-05 13:51:52 +02:00
Fredrik Gustafsson
8f2e84d263
Merge branch 'develop_2.0' into Generic_API_Exception
...
Conflicts:
modules/swagger-codegen/src/main/resources/csharp/apiException.mustache
2015-06-05 12:47:48 +02: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
Fredrik Gustafsson
31c6a0a9da
Extended the api-class generation by a interface generation
2015-06-05 12:29:25 +02:00
Fredrik Gustafsson
a1f156ca19
Updated 'api.mustache' to generate asynchronous methods aswell
2015-06-05 11:39:15 +02:00
geekerzp
eb90b907e7
rebuild python client
2015-06-05 17:02:38 +08:00
wing328
61a7d848f7
rename files in csharp and perl to fix issue
2015-06-05 17:00:11 +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
geekerzp
ddc5293e6a
updated api.mustache of python.
2015-06-05 16:19:49 +08:00
geekerzp
813c0119aa
added test case for 500 response of python client
2015-06-05 16:19:49 +08:00
geekerzp
8ef4c4401e
updated rest.mustache of python client
2015-06-05 16:19:48 +08:00
geekerzp
fbe327ac2f
Updated PythonClientCodegen.java
...
* updated method apiFileFolder.
* udpated method modelFileFolder.
2015-06-05 16:19:48 +08:00
geekerzp
ab6f327f35
Updated python client.
...
* Rename `ResponseError` exception to `ApiException`
* Use `File.separatorChar` to build file path in
PythonClientCodegen.java
* Rename `config.py` module to `configuration.py`
* Rename `swagger.py` module to `api_client.py`
2015-06-05 16:19:48 +08:00
geekerzp
51887c64b5
Updated python codegen.
...
Use File.separatorChar to create invokerPacakge variable instread of '\'
char.
2015-06-05 16:17:29 +08:00
geekerzp
654a73c5a8
rebuild python client
2015-06-05 16:17:29 +08:00
geekerzp
eac884d85b
updated ApiClient of python sdk.
2015-06-05 16:16:48 +08:00
geekerzp
d7aaaea0df
updated config.py of python client.
2015-06-05 16:15:57 +08:00
geekerzp
b09250ed33
added authentication for python client.
...
completed.
2015-06-05 16:15:57 +08:00
geekerzp
0ca97e4b68
added authentication for python client.
...
Not completed
2015-06-05 16:15:14 +08:00
Tony Tam
e1393d1912
Merge pull request #817 from who/develop_2.0
...
[Android] Enabling cli config options for android generator
2015-06-05 00:53:20 -07:00
Tony Tam
ddb3bd5477
Merge pull request #816 from geekerzp/develop_2.0_objc_auth
...
[Objc] Add authentication support (API key, HTTP basic)
2015-06-05 00:52:35 -07:00
Tony Tam
34072faccd
merged
2015-06-05 00:51:52 -07:00
Tony Tam
26d9215e43
Merge pull request #808 from wing328/csharp_api_instance
...
[C#] Added ApiClient (Pluggable) and authentication (API key and HTTP basic auth)
2015-06-05 00:42:44 -07:00
Tony Tam
496e06a373
Merge pull request #806 from geekerzp/develop_2.0_python_https
...
[Python] Verified HTTPS with SSL/TLS cert.
2015-06-05 00:42:13 -07:00
Tony Tam
513bd17610
Merge pull request #803 from wing328/objc_fix_filepath
...
[ObjC] Minor fix to output path
2015-06-05 00:41:52 -07:00
Tony Tam
d9fcb777c1
Merge pull request #799 from wing328/perl_apiinvoker_instance
...
[Perl] Make API client more pluggable (ref: #778 )
2015-06-05 00:41:26 -07:00
Tony Tam
05700a6799
Merge pull request #794 from wing328/php_debug_switch
...
[PHP] add debug switch
2015-06-05 00:40:32 -07:00
Tony Tam
29bd743391
Merge pull request #793 from geekerzp/develop_2.0_objc_apiclient
...
Make objc client more pluggable
2015-06-05 00:40:17 -07:00
Tony Tam
13e14652e3
Merge pull request #787 from geekerzp/develop_2.0_python_apiclient
...
[Python] Make API client more pluggable
2015-06-05 00:38:11 -07:00
Tony Tam
b41e88e83a
Merge pull request #785 from wing328/csharp_add_restsharp_dll
...
[C#] Added RestSharp.dll and updated compile.bat
2015-06-05 00:38:05 -07:00
Tony Tam
cbc4da58ab
Merge pull request #783 from xhh/ruby-auth
...
[Ruby] Add authentication support (API key, HTTP basic)
2015-06-05 00:36:12 -07:00
wing328
ba227b7e72
rename api client
2015-06-04 21:19:16 +08:00
wing328
0423e0a2df
support object response
2015-06-04 21:12:26 +08:00
Fredrik Gustafsson
217765998d
Extended the APIException by ErrorContent from response body
2015-06-03 16:23:45 +02:00
xhh
0ffe53933d
Bug fix: "null" was used as post body for empty form parameters
...
The form parameters could be empty when all of them are optional and no
values are assigned to them.
2015-06-03 21:17:42 +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
2e285ed562
Support skipping SSL certification verification
...
in Ruby clients by e.g.:
SwaggerClient::Swagger.configure do |config|
config.verify_ssl = false
end
2015-06-03 12:49:09 +08:00
wing328
9b919c54dd
added http basic auth test
2015-06-03 11:21:10 +08:00
xhh
9618960558
Merge branch 'develop_2.0' into ruby-auth
2015-06-03 11:19:40 +08:00
xhh
eb4973237b
Add comments to code
2015-06-03 10:09:36 +08:00
wing328
9c747e3e37
fix query parameters
2015-06-03 09:21:45 +08:00
wing328
3d16d8b2b6
fix header
2015-06-03 08:34:45 +08:00
Andrew B
1a75489b42
Enabling cli config options for android generator
2015-06-02 09:04:50 -07:00
xhh
24c29acc09
Merge branch 'develop_2.0' into java-api-client
...
Conflicts:
modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen/languages/JavaClientCodegen.java
2015-06-02 22:36:55 +08:00
Ole Lensmar
2662167372
Merge pull request #805 from hyeghiazaryan/develop_2.0
...
Support for file based config. Implementation for #616 .
2015-06-02 09:33:52 -04:00
wing328
7080983521
return exception instead of null for 404, add properties to api exception class
2015-06-02 17:25:38 +08:00
xhh
19540ed7f0
Store response headers and body in ApiException
2015-06-02 15:33:44 +08:00
geekerzp
699df0029b
updated comments for objc client.
2015-06-02 15:33:33 +08:00
geekerzp
86971ee752
added comments for objc client
2015-06-02 11:50:47 +08:00
hrachya
3e0913a813
removing generic header comments
2015-06-01 10:43:23 -07:00
wing328
f357f4c9d7
fix default header
2015-06-01 14:24:09 +08:00
wing328
8d708c2442
add test case for default header
2015-05-31 11:17:59 +08:00
wing328
83d069d053
add support for obj, remove null from serialized json string
2015-05-31 09:49:24 +08:00
geekerzp
b5429d9e8e
Added authentication for objc client.
2015-05-30 18:04:20 +08:00
Oleg Godovykh
ec08d31031
add template for Retrofit and Gson
2015-05-29 12:23:18 -04:00
Fredrik Gustafsson
41e4fc79ae
Extended the api-class generation by a interface generation
2015-05-29 12:19:28 +02:00
Fredrik Gustafsson
049299f07f
Updated 'api.mustache' to generate asynchronous methods aswell
2015-05-29 10:53:48 +02:00
wing328
5f36ad3b75
add authentication support
2015-05-29 16:43:27 +08:00
geekerzp
18cf6bcfa6
Updated python client.
...
Verified HTTPS with SSL/TLS.
2015-05-29 15:09:19 +08:00
xhh
a8c526efd5
Add unit tests for Configuration and ApiClient
2015-05-29 12:08:42 +08:00
xhh
ac134c0afa
Make ApiClient more pluggable for Java
...
- Rename ApiInvoker to ApiClient
- Make ApiClient pluggable by allowing setting the ApiClient field of
API classes
- Introduce a Configuration class, containing the default
ApiClient (which is also customizable)
- Move basePath from API class to ApiClient
- Change static methods in ApiClient to instance level
2015-05-29 12:08:42 +08:00
xhh
a29c3abeb8
Use File.separatorChar in Ruby generator, add comments
2015-05-29 12:05:47 +08:00
xhh
623a1278cf
Add test case for API key auth
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
hrachya
1f360961e0
Simplifying CliOption class
2015-05-28 14:55:36 -07:00
hrachya
08647b337f
fixing property name
2015-05-28 13:08:52 -07:00
hrachya
c5a7800ec6
fixing typo
2015-05-28 13:02:30 -07:00
hrachya
26a2290078
adding classPrefix, sourceFolder, projectName cli options to objc
2015-05-28 13:01:54 -07:00
wing328
2edcd82094
minor fix to output path
2015-05-28 19:16:26 +08:00
wing328
165efdbdbb
rename apiinvoker to apiclient, add configuration, make apiclient an instance
2015-05-28 18:24:03 +08:00
wing328
412fcf11f9
update file separator
2015-05-28 15:19:05 +08:00
wing328
e993d08563
rename APIClient to ApiClient, APIClientException to APIException
2015-05-28 15:06:31 +08:00
wing328
61bc652229
use file separator
2015-05-28 14:34:39 +08:00
wing328
699f6fff44
update file path
2015-05-28 14:18:05 +08:00
wing328
1a868abdfa
rename APIClient to ApiClient
2015-05-28 10:51:36 +08:00
hrachya
c3055c7cc4
Adding Config and ConfigParser classes
2015-05-27 17:30:42 -07:00
hrachya
2cca1a8c2c
Changing templateDir back to explicit option for cli
2015-05-27 17:22:44 -07:00
hrachya
a9e767cbd8
Rolling back changes to deprecated class
2015-05-27 17:19:34 -07:00
rlo2014
e93a377982
Removing comment (// do some magic!) that is no longer necessary and confusing. After olensmar refactor of jax-rs codegen, magic/implementation should be placed in the delegate/implementation as opposed to the api itself. Any logic put in api itself will be overwritten with the next code gen, whereas the delegate implemenation will remain intact.
2015-05-27 14:55:28 -07: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
hrachya
74f5c769f9
removing extra file, was committed by mistake
2015-05-26 17:10:19 -07:00
hrachya
1e09f5149e
Add 'invokerPackage', 'groupId', 'arifactId', 'artifactVersion', 'sourceFolder' command line options for java (and all the derived ones jaxrs, spring-mvc ...)
...
Add processOpts override to process java specific options
Move supporting file initialization from constructor to processOpts, since it uses some of the options that are not yet set in the constructor
Add setters
2015-05-26 17:05:53 -07:00
hrachya
e08a5a9d83
Add 'modelPackage' and 'apiPackage' as command line options
...
Add setters for modelPackage and apiPackage
2015-05-26 17:01:07 -07:00
hrachya
d7dec5a43d
Use new functionality to add 't' as a command line option to set 'templateDir'
2015-05-26 16:02:27 -07:00
hrachya
33436d62c3
Get all cliOptions for available codegen configs and add to command line options
...
Add all the specified ones to clientOpts properties
2015-05-26 15:57:01 -07:00
hrachya
9f1504062a
add List<CliOption> cliOptions() method to CodegenConfig interface with default implementation in DefaultCodegen
2015-05-26 15:52:25 -07:00
hrachya
f8cafaaee7
new CliOption class for wrapping org.apache.commons.cli.Option
2015-05-26 15:49:32 -07:00
wing328
4d1d163a73
update php template to debug curl
2015-05-26 23:52:35 +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
fff8972a77
Extract utility methods to the StringUtil class
...
and ignore case when comparing Accept/Content-Type
2015-05-25 12:29:41 +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
Alexey Nechaev
5d581c3b03
Fixes #429 : Handling of composed models has been added.
2015-05-24 00:54:25 +03: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
3638d79291
updated test to get expected value
2015-05-23 08:33:27 -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
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
3d4b5a10c9
Add support of HTTP basic and API key auth to Java codegen
2015-05-21 22:05:46 +08:00
Alexey Nechaev
a590239df9
Fixes #771 : Unit test has been fixed after merge.
2015-05-21 10:49:20 +03:00
Tony Tam
0c3f7a54cd
Merge pull request #770 from swagger-api/jaxrs-interface-generation
...
Jaxrs interface generation
2015-05-20 22:52:00 -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
01ebdb6122
Merge pull request #763 from tomtit/issue728
...
Fixed #728 : Handling of recursive model definitions has been improved.
2015-05-20 22:42:37 -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
515f5440a1
merged
2015-05-20 22:37:51 -07:00
Tony Tam
632480787d
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
2015-05-20 22:35:23 -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
ee145aebe7
Merge pull request #743 from lugaru1234/model_ids_with_dots
...
Fixed #593 : Python code failure caused by Model IDs with dots has been fixed
2015-05-20 22:27:53 -07:00
Tony Tam
11dd7784f8
rebuilt
2015-05-20 22:20:51 -07:00
Tony Tam
6fe6a6daa7
Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0
2015-05-20 22:16:55 -07:00
Tony Tam
fd928a3d16
merged
2015-05-20 22:16:24 -07:00
Tony Tam
5a4d3317c2
Merge pull request #723 from swinz/develop_2.0_fixSpringMVCHeaderRequired
...
SpringMVC template is ignoring the required attribute in swagger definition when generating RequestHeader annotation
2015-05-20 22:14:29 -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