xhh
ef8d2fd766
Ruby: IO improvements on file downloading
...
- Use `File.basename` to sanitize the filename got from response header
- Write to the `Tempfile` directly and return it
- Set file encoding according to the response body's encoding
See #1848
2016-01-12 11:59:41 +08:00
xhh
43c0d20743
Ruby client: add "timeout" to configuration
2015-12-24 14:54:39 +08:00
xhh
e9ef143d8f
Ruby client: allow setting Configuration in ApiClient
...
Removed the singleton design from the Configuration class.
Added a `config` field to ApiClient to hold the settings the ApiClient
uses.
2015-12-10 15:25:07 +08:00
xhh
4fdaeb7371
Improve checking of JSON MIME
2015-12-09 12:38:38 +08:00
xhh
07de03c09b
Return data before response status code and headers
2015-12-07 16:10:24 +08:00
xhh
66112d9eb5
Added with-http-info API methods to Ruby client
...
to allow accessing response status code and headers, and removed the methods of
recording last response info from ApiClient.
2015-12-07 15:48:59 +08:00
xhh
76eeb51af6
Support collectionFormat in Ruby client
...
for header, query and form parameters
2015-11-05 20:02:09 +08:00
geekerzp
6a3108a6bf
Support client ceritficate in ruby client
2015-09-28 16:31:47 +08:00
geekerzp
5d1e70544c
Fix issue that using temp_folder_path from ApiClient
...
It should use the one from the Configuration object
2015-09-15 15:04:39 +08:00
geekerzp
6d58d44542
Merge branch 'ruby-api-client' into ruby-apiclient
2015-08-20 11:34:07 +08:00
xhh
0e2e7838ae
Merge branch 'bug-fix-ruby-file-upload' into ruby-api-client
...
Conflicts:
modules/swagger-codegen/src/main/resources/ruby/swagger/request.mustache
samples/client/petstore/ruby/lib/petstore/swagger/request.rb
2015-08-20 11:24:33 +08:00
geekerzp
7be6e971fa
Update api client of ruby client.
...
Update ApiClient#build_request, change `@verify_ssl`, `@ssl_ca_cert`, `@debugging`
to `Configuration.verify_ssl`, `Configuration.ssl_ca_cert`, `Configuration.debugging`.
2015-08-18 20:21:56 +08:00
geekerzp
828f8694c8
Fix typo in ruby client
2015-08-18 16:13:32 +08:00
geekerzp
a481db7486
Add configuration object in ruby client
2015-08-18 14:27:09 +08:00
xhh
47c8597d36
Ruby: move request/response logic to api_client
2015-07-27 16:34:51 +08:00
xhh
5bfae7b78c
Ruby: use a default ApiClient when not provided
2015-07-27 10:32:51 +08:00
xhh
948cdb3a75
Done with API client structure for Ruby client
2015-07-22 15:37:29 +08:00
xhh
4ecc757bea
More on API client structure for Ruby client
2015-07-21 17:07:41 +08:00