wing328
f03bc1f3bc
remove some static methods in configuration
2015-12-14 16:07:41 +08:00
Jeff Kwan
e0582ae912
Added the ability to customize the DateTimeFormat
...
Updated Configuration to have a DateTimeFormat
Added Unit Tests for Configuration.DateTimeFormat
Cleaned up namespaces in SwaggerClientTest
Added an embedded resource for testing uploads
2015-12-11 18:28:37 -05:00
Jeff Kwan
23fa84bff8
Add some reasonable comments to this
2015-12-10 20:03:29 -05:00
Jeff Kwan
cf3144d31f
[C#] Fix date-time serialization to be ISO 8601
...
Fix the date-time serialization so that it's actually ISO 8601
compliant, currently it generates a date-time string
Issue #1705
2015-12-10 19:56:10 -05:00
wing328
cea8ad40cd
make apiclient less mutable
2015-12-02 16:01:29 +08:00
wing328
0abe787b58
add default api client
2015-12-01 16:17:22 +08:00
wing328
bb086a7f91
refactor apiclient, configuration, authentication for c# client
2015-11-30 19:45:08 +08:00
wing328
9d76d39c00
update basic auth to allow only username/password
2015-11-22 16:09:15 +08:00
wing328
a9da01a451
better auth for C#, format change
2015-11-22 16:08:35 +08:00
wing328
b815163ceb
replace restsharp extension functions with functions in apiclient
2015-11-16 11:30:34 +08:00
wing328
5a8d2c834f
add oauth support to csharp
2015-11-06 13:56:40 +08:00
David Greenberg
390ddc9ef3
Changing Stream deserialization to use raw bytes from response, rather than UTF-8 decoded text.
2015-10-22 09:04:54 -04:00
wing328
3c78e29a12
better Accept header for C#
2015-10-05 13:19:58 +08:00
Quenby Mitchell
ff0b0c15a8
fix build warnings on CSharp xml comments
2015-10-02 12:14:41 -05:00
wing328
f21fa08cd6
update C# ParamterToString to support array of object, add test case
2015-09-11 22:48:38 +08:00
wing328
177436e69c
fix decode with encode
2015-08-29 22:43:22 +08:00
wing328
1331484a0f
fix urlencode in apiclient
2015-08-29 22:39:44 +08:00
ivanmartinvalle
52dc7e210c
Add status code and response headers of the last request to java and csharp templates per #990
2015-08-24 18:35:06 -05:00
adamholdenyall
a81e5096f5
Catch all exceptions on Deserialize
...
If you look at the source of NewtonSoft.Json, you'll see that DeserializeObject never throws an IOException. All exceptions should be caught in this method, just like Serialize.
2015-07-28 09:53:10 -05:00
wing328
37dbd6e4cd
Merge pull request #992 from who/develop_2.0
...
[C#] Fixing a mono compilation error
2015-07-21 21:43:06 +08:00
Andrew B
0b7b57bf4d
[C#] Fixing a mono compilation error
2015-07-20 21:22:49 -07:00
Peter S. May
1072c9d017
Merge remote-tracking branch 'upstream/develop_2.0' into develop_2.0-RestSharp-path-params
...
Conflicts:
modules/swagger-codegen/src/main/resources/csharp/ApiClient.mustache
modules/swagger-codegen/src/main/resources/csharp/api.mustache
2015-07-17 21:45:54 -04:00
Peter S. May
4bc4a8aed1
WIP pre-adding new sources for ApiClient and api
2015-07-17 21:09:05 -04:00
wing328
b8c06505f6
use fully qualified name for Task
2015-07-09 10:21:55 +08:00
wing328
e49fe7a12f
better style for model, add <value> to all properties
2015-07-07 16:25:33 +08:00
wing328
b1b0e28f59
update c# style
2015-07-06 23:06:28 +08:00
wing328
94768d44b5
better type comparision
2015-07-06 13:55:33 +08:00
wing328
987a61640b
fix file upload issue. add error handling for status code 0
2015-07-03 17:39:27 +08:00
wing328
d7d6ba957e
fix comment and use 4-space indentation
2015-07-03 11:45:31 +08:00
wing328
57b54d8ad7
update code style for apiclient, configuration and apiexception
2015-07-03 10:36:21 +08:00
Peter S. May
4b896c759c
[C#] Use RestSharp's mechanism for path parameters in URL templates
...
Previously, a simple find-and-replace had been used to substitute path parameters into the path. Among other omissions, this resulted in special characters such as `/` being left unescaped.
The RestSharp request object, as it turns out, expects a path template in the same format as provided by Swagger (with param names in braces), to be filled in using `AddParameter()`. In this edit, the code now uses this mechanism. The form parameter values are now passed to `CallApi*()` as a `Dictionary<String, String>`, where they are added to the request before submission. Since this was already how query and form parameters (etc.) were implemented, the resulting code is more consistent with itself than before.
2015-07-02 15:33:30 -04:00
wing328
488e604207
use stream for file
2015-07-01 21:37:48 +08:00
wing328
2e76b56f30
revert file to String, add test case for upload file
2015-06-30 17:50:22 +08:00
wing328
59987a54a9
fix deserialization of string and other primitive
2015-06-29 22:16:38 +08:00
wing328
76ece5a4eb
add file response support for c# (passed test cases)
2015-06-29 12:17:49 +08:00
wing328
df72188bc0
add cli support to csharp
2015-06-18 22:06:59 +08:00
wing328
46c5b776ed
rollback csharp template
2015-06-09 13:04:34 +08:00
Ron
1c2d0656b0
Code reformatting
2015-06-07 11:56:08 -04:00
Fredrik Gustafsson
31c6a0a9da
Extended the api-class generation by a interface generation
2015-06-05 12:29:25 +02:00
wing328
9c747e3e37
fix query parameters
2015-06-03 09:21:45 +08:00
wing328
5f36ad3b75
add authentication support
2015-05-29 16:43:27 +08:00
wing328
165efdbdbb
rename apiinvoker to apiclient, add configuration, make apiclient an instance
2015-05-28 18:24:03 +08:00