Commit Graph

5425 Commits

Author SHA1 Message Date
geekerzp
37118cab47 Merge branch 'develop_2.0' into develop_2.0_objc_jsonmodel
Conflicts:
	samples/client/petstore/objc/PetstoreClient/PetstoreClientTests/PetApiTest.m
2015-03-29 18:15:02 +08:00
geekerzp
e6d7517e63 Update api-body.mustache, api-header.mustache,
apiBodyResponseWithContainer.mustache and apiNonPrimitiveResponse.mustache
templates in objective-c client.

* Update `asDictionary` method to `toDictionary` method which provided by
  JSONModel.
* Update `initWithValues` method to `initWithDictionary` method which
  provided by JSONModel.
2015-03-29 18:06:52 +08: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
Tony Tam
49e9c74324 Merge pull request #572 from swagger-api/issue-567
Issue 570
2015-03-28 10:46:17 -07:00
Tony Tam
92621f2f2d fix for issue 567, added reserved words, rebuilt client 2015-03-28 10:41:51 -07:00
William Cheng
836f7ecb95 rebase with develop_2.0 2015-03-28 22:55:15 +08:00
MerkushevKirill
0dcd307333 update docs and bash about CLI usage, deprecate old cli classes
(after #547)
2015-03-28 12:34:44 +03:00
William Cheng
a12cc1c544 remove {{newline}} as it has no impact at all 2015-03-28 16:43:16 +08:00
William Cheng
27e1b1c4b2 update java doc 2015-03-28 16:43:15 +08:00
Tony Tam
0686a91690 updated camelize function for #567 2015-03-27 23:18:54 -07:00
Tony Tam
99271e77ab added multi-param args 2015-03-27 22:55:06 -07:00
Tony Tam
c9a2a14da5 added queryParamCollection 2015-03-27 22:17:50 -07:00
gandrianakis
7eba8670e3 Switched SingleClientConnManager with ThreadSafeClientConnManager.
The SingleClientConnManager cannot be used safely in multi-threaded environments
2015-03-27 18:41:16 +02:00
William Cheng
bdd1d1621f remove {{newLine}} and replace tab wtih 2 spaces 2015-03-27 23:55:26 +08:00
William Cheng
6ab51bcb4e remove tab with 2 spaces in php api template 2015-03-27 23:11:13 +08:00
William Cheng
1c547e9598 update php documentation 2015-03-27 22:40:59 +08:00
geekerzp
19c05eefab Merge branch 'develop_2.0' into develop_2.0_objc_jsonmodel
Conflicts:
	pom.xml
2015-03-27 17:27:58 +08:00
Tony Tam
5d6d563a8e updated versions 2015-03-26 23:17:17 -07:00
Tony Tam
287bb7d936 fixed builder, error msg 2015-03-26 23:09:47 -07:00
Tony Tam
ddb1d6e0d3 removed 404 handling 2015-03-26 23:09:29 -07:00
Tony Tam
8b98a92805 adds tests, fixes for java templates 2015-03-26 20:32:59 -07:00
William Cheng
3d53cfc298 better ruby method argument format 2015-03-27 02:11:49 +08:00
William Cheng
fb2ab79455 update ruby doc 2015-03-27 02:11:49 +08:00
geekerzp
fbe069cf5c add jsonmodel in objective-c client 2015-03-26 10:07:33 +08:00
Tony Tam
b7c2c3448e renamed package 2015-03-25 12:12:04 -07:00
James Ebentier
bf46da7c14 Python: modifying request headers in ApiClient to act like those in Java and PHP 2015-03-25 11:44:46 -07:00
Tony Tam
d2f5b9ea65 added recursion check 2015-03-25 11:11:04 -07:00
Tony Tam
b36f3c98ca Merge pull request #547 from lanwen/cli
add - new command line interface in distribution module
2015-03-24 20:34:34 -07:00
Tony Tam
56104566fc added void response 2015-03-24 19:57:51 -07:00
Tony Tam
30acfc1869 added sys property 2015-03-24 19:56:38 -07:00
Tony Tam
2ce0049ce4 updated templates to fix petstore build error 2015-03-24 19:56:28 -07:00
Tony Tam
e82ecf695d added array support 2015-03-24 19:56:04 -07:00
Tony Tam
31418b3936 added property for app name 2015-03-24 17:12:20 -07:00
Tony Tam
b8cd52aa07 Merge pull request #540 from lanwen/develop_2.0
rft - only codestyle, remove wildcard imports and use string-utils from apache
2015-03-24 16:56:01 -07:00
Tony Tam
16403950d5 Merge pull request #545 from wing328/ruby_better_naming
Update ruby codgen for better naming convention
2015-03-24 16:53:20 -07:00
MerkushevKirill
8ba444141e add - new command line interface in distribution module
can replace Codegen and MetaGenerator classes. Provides a bit different cli interface
based on refactored pom from #541,
affects #349

```
usage: swagger <command> [<args>]

The most commonly used swagger commands are:
    generate   Generate code with chosen lang
    help       Display help information
    langs      Shows available langs
    meta       MetaGenerator. Generator for creating a new template set and configuration for Codegen.  The output will be based on the language you specify, and includes default templates to include.
 ```
  **generate** and **meta** commands have same as current cli options
2015-03-25 01:59:55 +03:00
William Cheng
fb3e44ecc4 break down ruby reservedWord list into multiple lines 2015-03-24 16:34:41 +08:00
William Cheng
8107162540 update ruby codgen for better naming convention 2015-03-24 16:24:31 +08:00
MerkushevKirill
ee096569c4 rft - only codestyle with indents, remove wildcard imports and use string-utils from apache 2015-03-24 11:13:01 +03:00
geekerzp
07237f8eb9 add model attribute name json key mapping in python clent 2015-03-24 11:55:20 +08:00
Wanny
915fcf9b92 fix cleanup 2015-03-23 16:08:26 -07:00
Wanny
31e8d58b1d fix StringIndexOutOfBoundsException when tag is not provided 2015-03-23 15:29:39 -07:00
Tony Tam
823ac04abb Merge pull request #534 from Juliens/master
add version in properties
2015-03-23 08:47:06 -07:00
William Cheng
fd602af180 better naming convention for android-java codegen 2015-03-23 15:41:24 +08:00
Tony Tam
048bea6249 Merge pull request #535 from wing328/java_beter_naming
Better variable and model property naming for Java
2015-03-22 21:19:01 -07:00
Tony Tam
f1f9805a01 Merge pull request #527 from geekerzp/develop_2.0_python
Support iso8601 datetime format in Python client
2015-03-22 19:35:18 -07:00
William Cheng
62d28ebca5 better variable and model property naming for java 2015-03-22 23:24:43 +08:00
Julien SALLEYRON
c46f3f9ee4 add version in properties 2015-03-21 20:12:44 +01:00
Tony Tam
f008b75e99 Merge pull request #528 from wing328/php_better_variable_naming
PHP better naming convention
2015-03-21 08:18:46 -07:00
Tony Tam
38204b2237 Merge pull request #531 from geekerzp/develop_2.0_python_datetime
Update santizeForSerialization to normalize parameters for Python client
2015-03-21 08:18:00 -07:00
xhh
b5a4d5be04 Add support of form parameter to Android client
* Handle form parameters in a way similar to Java client.
* Handle file uploading.
* Normalize query, header and form parameters with the
  ApiInvoker.parameterToString method, which formats Date value to ISO 8601.
2015-03-21 22:20:28 +08:00
geekerzp
f085860eb1 Update sanitizeForSerialization to sanitize parameters to Python client
* Refactor santizeForSerialzation to static method.
* Sanitize header/query/form/body parameters.
* Sanitize datetime.datetime and datetime.date to iso8601 format string.
* Sanitize swagger model to dict.
2015-03-21 14:58:32 +08:00
Wanny
2301e604b3 clean up README.md 2015-03-20 13:53:07 -07:00
Wanny
34eab98ce4 Merge branch 'develop_2.0' into add_springdox 2015-03-20 13:47:08 -07:00
Wanny
00c1018d79 add basi Springdox server generation 2015-03-20 13:45:01 -07:00
William Cheng
c36e5a96fe update php codegen with better naming convention 2015-03-20 21:56:41 +08:00
geekerzp
c024a4c099 use dateutil to parse string to datetime in python 2015-03-20 14:38:18 +08:00
Tony Tam
cdf8648d3b made noservice option 2015-03-19 14:59:32 -07:00
Tony Tam
ae1d43dc84 added more instructions, service template 2015-03-19 14:47:43 -07:00
Tony Tam
531e2d7032 added example generator, updated signatures to match 2015-03-19 14:45:22 -07:00
Tony Tam
32fe6b0333 Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-03-19 09:04:16 -07:00
Tony Tam
75714ac518 added default for filename generation 2015-03-19 09:04:12 -07:00
Tony Tam
8262d30202 Merge pull request #459 from geoand/objc-dictionary-fix-dev2_0
Fixed bug that prevented Objective-C code from compiling when using a Sw...
2015-03-19 08:52:25 -07:00
Tony Tam
d332cdf200 Merge pull request #522 from wing328/ruby_user_agent
Fix User-Agent in Ruby API cleint
2015-03-19 08:32:59 -07:00
William Cheng
ab8d62214a add attributemap to php model, update php petstore sample 2015-03-19 20:58:22 +08:00
William Cheng
02283fae46 udpate ruby api client to support user-agent 2015-03-19 17:09:27 +08:00
gandrianakis
c82b31aa61 Reintroduce objc dictionary fix to updated develop_2.0 branch 2015-03-19 11:07:54 +02:00
gandrianakis
37303745df Merge branch 'develop_2.0' into objc-dictionary-fix-dev2_0
Conflicts:
	modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen/DefaultCodegen.java
2015-03-19 10:59:47 +02:00
gandrianakis
e5357df67a Merge remote-tracking branch 'upstream/master' into objc-dictionary-fix-dev2_0 2015-03-19 10:45:27 +02:00
Tony Tam
c109c11bea added yaml output 2015-03-18 23:26:45 -07:00
Tony Tam
3a8c798596 Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-03-18 23:25:48 -07:00
Tony Tam
9311bdf972 added yaml generator 2015-03-18 23:24:47 -07:00
Tony Tam
95e7265bd7 Merge pull request #498 from burmanm/issue_495
Fix NPE with resourcePath = /, issue #495
2015-03-18 22:58:45 -07:00
Tony Tam
93afc3bd95 Merge pull request #516 from wing328/ruby_header_param
Bug fix for ruby header parameter and better code format
2015-03-18 22:58:31 -07:00
Tony Tam
6b1f176a66 Merge pull request #417 from Helmsdown/additional-codegen-properties
Add API Version to Codegen Additional Properties
2015-03-18 17:05:59 -07:00
Tony Tam
f2ee9b39e9 Merge pull request #519 from swagger-api/feature/swagger-tools
updated nodejs server to swagger-tools, supports 2.0 spec
2015-03-18 16:30:57 -07:00
Tony Tam
b6e5c55817 updated nodejs server to swagger-tools, supports 2.0 spec 2015-03-18 16:10:54 -07:00
Camille Chafer
081757c592 headers list is CodegenResponse is always defined (no null list) 2015-03-18 19:01:45 +01:00
Camille Chafer
ac78c15fbf Add defined response headers in CodegenResponse. at this time, only the headers of the 'default' response are included in the operation. 2015-03-18 18:38:27 +01:00
Tony Tam
dd78de1ed8 updated basePath, contextPath 2015-03-18 09:34:38 -07: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
William Cheng
d0dcb2fb43 fix bug with ruby header parameter, remove extra linebreak in generated
code
2015-03-18 16:33:00 +08:00
Tony Tam
369689d001 merged 2015-03-17 16:30:59 -07:00
Tony Tam
df39fe5d08 added Json schema fields 2015-03-17 16:30:42 -07:00
sosso
b73340ab83 Java: properly add request headers
https://jersey.java.net/nonav/apidocs/1.8/jersey/com/sun/jersey/api/client/PartialRequestBuilder.html#header(java.lang.String, java.lang.Object)

We were running into issues with our headers not making it into our requests.  Upon some research, it appears that Jersey's header() method returns the builder object, meaning we have to do this assignment to properly construct the request.  After making the change, our requests work as expected.
2015-03-17 11:39:32 -07:00
Tony Tam
4f32e9dbff Merge pull request #502 from FindTheBest/develop_2.0
PHP Generated Models
2015-03-17 08:51:02 -07:00
Tony Tam
b6ca69f57a Merge pull request #510 from xhh/patch-2
update null comparison for query params in Java
2015-03-17 07:10:52 -07:00
Xu Hui Hui
b2da6dc8a2 update null comparison for query params in Java
to make it clear and also allow a query parameter to be set with string value: "null" (4 characters string)
2015-03-17 16:34:01 +08:00
Tony Tam
c96853d5aa Merge pull request #507 from cchafer/security_schemes_definition
Adding defintion of security schemes in CodegenSecurity
2015-03-16 22:13:19 -07:00
Tony Tam
c215d8ab91 fix and tests for #503 2015-03-16 22:10:35 -07:00
Tony Tam
46d1950fbd removed unnecessary file 2015-03-16 21:04:21 -07:00
Tony Tam
03b764d404 Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-03-16 20:54:14 -07:00
Tony Tam
a8aebec9ba removed description 2015-03-16 20:54:08 -07:00
Tony Tam
fd72ff56bf fixed context path 2015-03-16 20:54:01 -07:00
Tony Tam
ebec85fd54 added context path 2015-03-16 20:53:48 -07:00
Tony Tam
fd792ef180 added more helpful error trace 2015-03-16 20:53:34 -07:00
Tony Tam
486186e042 Merge pull request #505 from wing328/php_support_user_agent
update User-agent in PHP API client
2015-03-16 20:44:46 -07:00
William Cheng
fc9d632522 update ruby client to support form parameters, add PATCH support, update
ruby petstore client
2015-03-17 05:24:43 +08:00
Camille Chafer
d580d294b6 Adding defintion of security schemes in CodegenSecurity 2015-03-16 11:58:29 +01:00
William Cheng
e9227ad7e5 add ruby codegen, update sample (petstore) for ruby 2015-03-16 18:47:22 +08:00
William Cheng
6bc8de1230 rebase on develop_2.0 2015-03-15 22:02:16 +08:00
William Cheng
b8166f283a update php to support user agent 2015-03-15 16:33:57 +08:00
William Cheng
a0dc2097eb update php api client to support datetime (iso8601) for parameters
(header, path, url, form)
2015-03-14 23:48:05 +08:00
James Ebentier
24842d4a29 PHP Models: fixing an issue with commas being where they shouldn't 2015-03-13 10:53:42 -07:00
James Ebentier
0854ca5ce5 PHP Models: updating the models generated for PHP styling 2015-03-13 10:53:19 -07:00
James Ebentier
6ca34e362d PHP Models: updating the models generated for PHP to be array accessable and have a simple constructor 2015-03-13 10:51:45 -07:00
Tony Tam
470ba201d8 build error fix 2015-03-13 10:45:12 -07:00
Tony Tam
fc52ab972b Merge pull request #494 from FindTheBest/develop_2.0
Fixing bug in new APIClientException
2015-03-13 09:44:02 -07:00
Tony Tam
7aca1cfb3f Merge pull request #486 from wing328/php_fix_deserialize
Bug fixes for Swagger.php deserialize function
2015-03-13 09:39:50 -07:00
Michael Burman
4748af4d59 Fix NPE with resourcePath = /, issue #495
(cherry picked from commit 01515e4ded6fa59da87d109dd8056c1b4a64e0f7)
2015-03-13 14:38:19 +02:00
James Ebentier
575967b5de Fixing bug in new APIClientException
This new exception had a typo in it for the construct class declaration.
2015-03-12 13:23:46 -07:00
James Ebentier
56ff34dc47 PHP Bindings: exposing response and response info to be accessible through thrown exceptions when non 200 response code is received 2015-03-12 12:12:07 -07:00
William Cheng
5347915c12 form parameter(single quote), add more comment 2015-03-11 21:14:17 +08:00
William Cheng
d0edb836ac fix syntax error at 223, update array comparision (case insensitive) 2015-03-11 15:47:28 +08:00
Tony Tam
911be4360a Merge pull request #483 from wing328/add_patch_php
Add PATCH support to PHP API client
2015-03-10 11:42:57 -07:00
Tony Tam
b2977cd29b Merge pull request #477 from wing328/fix_php_basename
use baseName for parameter name in PHP api
2015-03-10 11:39:28 -07:00
William Cheng
941f6e7757 add PATCH support to PHP API client 2015-03-10 18:13:55 +08:00
James Ebentier
b2cfb77222 Python: fixing an issue in swagger python code generation where attribute classes aren't respected 2015-03-09 18:18:20 -07:00
Brad Figler
5d77321dca syncing remote 2.0 branch 2015-03-09 20:47:48 +00:00
Brad Figler
f20522a586 Merge remote branch 'upstream/master' 2015-03-09 19:10:14 +00:00
Tony Tam
6207c2b5e9 fix for #475 building on java8 2015-03-09 10:09:33 -07:00
William Cheng
7c23eedf07 use baseName for parameter name in PHP api 2015-03-09 23:15:12 +08:00
Tony Tam
dc5ee9dcf5 added reserved words 2015-03-04 20:44:26 -08:00
Tony Tam
07ff6a2278 Merge pull request #468 from cor3ntin/fix_base_path_upstream
Fix {{basePath}} value in support files.
2015-03-04 07:25:29 -08:00
Corentin Jabot
156055fdd5 Fix {{basePath}} value in support files.
Make {{basePath}} value in support files be the
same as in operation files, aka host/path, instead of /path.
2015-03-04 15:01:07 +01:00
Corentin Jabot
3a5c03c778 Expose Security schemes of operations.
A template can now refer to the type ( oath2.0, apiKey, basic )
as well as the name of the security schemes it rquires.

Usage :

{{#operations}}
{{#authMethods}}
{{type}}  {{name}}
{{/authMethods}}
{{/operations}}
2015-03-04 14:54:48 +01:00
Tony Tam
9ce4156e4c Merge pull request #455 from cchafer/responses
Implements CodegenResponse, and return default response in Operaiton.Responses (#293)
2015-03-03 17:34:47 -08:00
Tony Tam
f82afe0026 Merge pull request #452 from herveDarritchon/develop_2.0
Defect (Issue #445) : change the call of initialCaps for getter and setter proper generation
2015-03-03 17:33:01 -08:00
Tony Tam
a724cd0780 added meta generator 2015-03-02 23:28:59 -08:00
Tony Tam
6b823b88d9 moved logic into abstract class for extensions 2015-03-02 17:29:29 -08:00
Tony Tam
8fb180133a merged from master 2015-03-02 10:59:35 -08:00
nate
dd0ccff58a Minor typo in help text. 2015-03-01 14:18:11 -05:00
nate
a793d5c6cc Changed the --auth parameter to require a value so it is not ignored. 2015-03-01 14:13:08 -05:00
gandrianakis
d313d4da3f Fixed bug that prevented Objective-C code from compiling when using a Swagger 'map' type 2015-02-27 10:11:35 +02:00
Camille Chafer
c15ac0b6d4 Each type used by any response is now added to the imports list 2015-02-25 17:12:28 +01:00
Camille Chafer
f9a16d856c Add 'default' response (200) to responses list, and add Types to the CodegenResponse object (#293). In the same time, clarify, simplfy and factorize code. 2015-02-25 16:46:33 +01:00
Camille Chafer
5713dce00a add missing types on the Responses Object implementation( CodegenResponse.java) (part of #293) 2015-02-25 16:39:10 +01:00
Tony Tam
23e848b437 added ignored test for #453, nested containers 2015-02-25 07:35:05 -08:00
Tony Tam
eb68d0bdbd Merge branch 'master' of https://github.com/godaddy/swagger-codegen into godaddy-master 2015-02-24 23:23:19 -08:00
Tony Tam
05297e05a5 made annotations FQ to avoid collisions 2015-02-24 21:12:08 -08:00
Tony Tam
1a0d2d19f5 updated template 2015-02-24 18:07:13 -08:00
Tony Tam
292fc99bd5 fixed response types 2015-02-24 11:03:00 -08:00
Hervé Darritchon
b339db65be Pull request #452 : Add some unit tests for this PR 2015-02-24 09:23:07 +01:00
Tony Tam
e5c70d5961 updated online version, added tag example 2015-02-23 23:23:37 -08:00
Hervé Darritchon
69be95d586 Defect (Issue #445) : change the call of initialCaps for getter and setter with Introspector.decapitalize from pakage java.beans. 2015-02-24 08:20:49 +01:00
Tony Tam
c82dfa3a64 updated version 2015-02-23 23:03:18 -08:00
Tony Tam
4bd227271a updated version 2015-02-23 22:45:06 -08:00
Tony Tam
5c31d68fee updated to add resolve flag 2015-02-23 22:42:45 -08:00
Tony Tam
bfc1ed3081 added async scala generator #440 2015-02-22 08:57:40 -08:00
Tony Tam
1c7c39c1ab added logback 2015-02-22 08:56:31 -08:00
Tony Tam
4ce0a65ad5 fix for #444, paths on windows 2015-02-22 08:56:03 -08:00
Tony Tam
784afee7b7 prepare for next dev version 2015-02-17 22:06:25 -08:00
Tony Tam
686f3656c5 updated to new patch 2015-02-17 21:38:02 -08:00
Tony Tam
2550539495 added shade plugin to properly include service descriptions 2015-02-17 18:54:57 -08:00
Tony Tam
06164cdc51 updated file separator replacement 2015-02-17 15:04:06 -08:00
Mikhail Kreymerman
fdd485608f fixed StringIndexOutOfBoundsException on Windows 2015-02-17 23:00:23 +01:00
Tony Tam
0307d3818a added friendly download links 2015-02-17 12:59:31 -08:00
Tony Tam
9a473ceae6 enabled url-only reading of specs 2015-02-17 12:43:10 -08:00
Tony Tam
12365b9591 removed cruft 2015-02-17 12:43:01 -08:00
Tony Tam
c832889db8 added slf4j, updated server gen logic 2015-02-17 11:15:08 -08:00
Tony Tam
39487d9917 disabled outdated routes, made languages GET method dynamic 2015-02-17 10:29:35 -08:00
Tony Tam
aa37542411 added version to make swagger valid 2015-02-17 10:29:06 -08:00
Tony Tam
fee6de5974 Merge branch 'geoand-jackson_array' into develop_2.0 2015-02-17 07:08:55 -08:00
gandrianakis
5fa98b12b8 Fixed bug that did not allow json arrays to be deserialized by Jackson 2015-02-17 15:17:32 +02:00
Tony Tam
ff94196295 updated to snapshot version 2015-02-16 22:16:40 -08:00
Tony Tam
66c6662f42 cleaned up poms 2015-02-16 21:53:51 -08:00
Tony Tam
6319167464 added placeholder for javadocs 2015-02-16 21:53:43 -08:00
Terence Foxcroft
c6f10ef1ea Minor fix to cater for empty array 2015-02-17 07:10:08 +02:00
Tony Tam
2e88dea3ac updated versions 2015-02-16 20:44:22 -08:00
Tony Tam
678bbd6676 made dynamic swagger config example 2015-02-16 20:17:00 -08:00
Tony Tam
8befb95986 added type tag 2015-02-16 18:19:06 -08:00
Tony Tam
026c93a104 fixed models 2015-02-16 18:03:15 -08:00
Tony Tam
fde5014bf9 fix for #224, added safe php comparison 2015-02-16 17:49:22 -08:00
Tony Tam
39b2bf4204 fixed test errors from updating sample json 2015-02-16 17:38:04 -08:00
Tony Tam
166a18bfc8 pulled from live server 2015-02-16 17:37:25 -08:00
Tony Tam
5790c7d289 fix for #191, not detecting correct file name 2015-02-16 17:18:19 -08:00
Tony Tam
a4bde0368e updated for separation with enums 2015-02-15 22:19:43 -08:00
Tony Tam
da8176e170 updated templates 2015-02-15 22:19:26 -08:00
Tony Tam
3b501f4134 added better enum support 2015-02-15 22:05:45 -08:00
Tony Tam
4daac48c6b added readme, rebuilt client 2015-02-15 19:50:41 -08:00
Tony Tam
e943f5c864 added readme, rebuilt client 2015-02-15 19:50:23 -08:00
Tony Tam
719820c089 added help response if args not set 2015-02-15 19:11:15 -08:00
Tony Tam
fe06652931 removed scala compile step #205 2015-02-15 19:04:53 -08:00
Tony Tam
f942e82691 updated templates 2015-02-15 18:06:50 -08:00
Tony Tam
db5259b913 updated script, addressed #189 with type mapping 2015-02-15 18:06:40 -08:00
Tony Tam
dd971f19e7 added support for headers when generating per #102 2015-02-15 17:15:40 -08:00
Tony Tam
785cc4e29a fixed file suffix 2015-02-14 17:49:33 -08:00
Tony Tam
0c3e82e375 updated templates 2015-02-14 17:49:19 -08:00
Tony Tam
a6744507ef updated version 2015-02-14 17:49:10 -08:00
Tony Tam
4bd1b99213 Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-02-14 17:34:27 -08:00
Tony Tam
4841485456 Merge pull request #427 from lucamilanesio/scala-mustache-backward-compatibility
Scala api.mustache: make new constructor backward compatible
2015-02-14 17:34:23 -08:00
Tony Tam
d5ddf0c404 Merge branch 'develop_2.0' of github.com:swagger-api/swagger-codegen into develop_2.0 2015-02-14 17:33:46 -08:00
Tony Tam
7d4cc6bdde Merge pull request #425 from lucamilanesio/develop_2.0
SPNEGO auth fix: Authentication scheme should be set as String
2015-02-14 17:33:30 -08:00
Tony Tam
feb6119572 added supporting data post processing 2015-02-14 17:08:51 -08:00
Tony Tam
dbc4ab51b1 removed deprecated call 2015-02-14 17:08:37 -08:00
Tony Tam
391806570c updated script 2015-02-14 16:30:38 -08:00
Tony Tam
241c69fef7 updated templates 2015-02-12 22:24:04 -08:00
Tony Tam
2bc5e71f91 updated year in comments 2015-02-12 21:53:37 -08:00
Tony Tam
dd9da67f51 made match case insensitive 2015-02-12 21:51:44 -08:00
Tony Tam
c3978d2ea3 updated dependencies for compat 2015-02-12 21:38:52 -08:00
Luca Milanesio
14795df85d Scala api.mustache: make new constructor backward compatible
When default values have been provided with the api.mustache
constructor, backward compatibility was broken because of the public
instance variables becoming immutable vals whilst they were vars before.

We can now use the constructor arguments as default values for the internal
vars and establish backward compatibility with existing code.
2015-02-11 11:00:41 +00:00
Luca Milanesio
fd560f4dc1 Scala api.mustache: allow easy basePath and ApiInvoker override
Gets rid of the smelly vars inside Scala api.mustache allowing the
override of default basePath and ApiInvoker on the constructor.

Previously the code for overriding was:

  val myApi = new MyApi()
  myApi.basePath = "http://myapi.endpoint.com"
  myApi.apiInvoker = new ApiInvoker(authScheme = "SPNEGO")

after the change everything can be simply declared in the constructor:

  val myApi = new MyApi("http://myapi.endpoint.com",
                         new ApiInvoker(authScheme = "SPNEGO"))
2015-02-10 14:07:13 +00:00
Luca Milanesio
6ecc569abd SPNEGO auth fix: Authentication scheme should be set as String
Default authentication scheme is a String and must be later
on decoded as Realm enum
2015-02-10 12:17:27 +00:00
Luca Milanesio
8e327aa24b Support for Secure SPNEGO kerberos negotiation
Ability to integrate with a SPNEGO-protected REST API
with KerberosV5 ticket preemptive authentication.
2015-02-09 20:14:13 +00:00
Luca Milanesio
592d59ceb2 Support for HTTP Async client transport for Jersey on Scala
When generating Scala client, the ApiInvoker is a class with
overridable options, avoiding the need of public vars to be
manually modified.

Additionally it is possible to plug the AsyncHttp protocol
for Jersey in order to achieve Netty support and maximum scalability.

NOTE: Support for Scala 2.10.0-3 removed as largely obsolete
2015-02-09 19:59:26 +00:00
Tony Tam
781c9f7d83 Merge pull request #416 from FindTheBest/develop_2.0
PHP/Python Enhancements
2015-02-08 22:15:34 -08:00
Tony Tam
ffe5fc7fd2 changed signature for usage in generator 2015-02-07 14:59:35 -08:00
Tony Tam
cbc9fdbe34 updated annotations 2015-02-07 11:08:21 -08:00
russellb337
bd91922072 Add API Version to Codeine Additional Properties
Also updated htmlDocs template so html documentation shows API version.
2015-02-06 16:26:33 -08:00
James Ebentier
09bfecf76e Python: adding in support for formParams as well as multipart-form requests 2015-02-06 11:32:15 -08:00
James Ebentier
8b4180ca4a PHP: moving over the addition of a setTimeout function for the APIClient 2015-02-06 11:16:16 -08:00
James Ebentier
73a702f91e PHP: adding the ability to use multipart-form submissions as well as adding formParams to the api 2015-02-06 11:15:22 -08:00
Tony Tam
7315b0ce2c changed scope per #414 2015-02-06 05:55:30 -08:00
Tony Tam
8b32db73c2 formatting 2015-02-06 05:52:05 -08:00
Tony Tam
bffd43c8fc fixed container type 2015-02-06 05:51:56 -08:00
Tony Tam
6f7a1bb7e3 added reserved words 2015-02-06 05:51:23 -08:00
Tony Tam
a841f94273 updated response types 2015-02-06 05:50:12 -08:00
Tony Tam
eb9e95952d updated templates 2015-02-06 05:48:47 -08:00
Tony Tam
3815dfa6a2 updated packages 2015-02-05 21:06:35 -08:00
Tony Tam
f1ac82f8a0 updated dependencies 2015-02-05 20:58:21 -08:00
Tony Tam
2ed8e10fe4 added null check for simple definitions with no models 2015-02-05 16:16:04 -08:00
Tony Tam
f7c6810757 updated samples 2015-02-05 11:35:13 -08:00
Tony Tam
11df3530f3 added wordnik sample 2015-02-05 10:22:19 -08:00
Tony Tam
6bb2e4ccb4 moved to modules per #411 2015-02-05 07:17:38 -08:00