wing328
080e302c63
fix csharp import for file in model files
2015-11-05 22:47:53 +08:00
Christian Stewart
5cdee3f424
Path is a commonly used variable name
2015-10-27 17:35:21 -04: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
dbd89092f0
add accept header select to async method
2015-10-06 11:30:17 +08:00
wing328
6ed7663466
add remarks to csharp method
2015-10-06 11:28:18 +08:00
wing328
3c78e29a12
better Accept header for C#
2015-10-05 13:19:58 +08:00
Quenby Mitchell
1018ca634d
generic types need to be escaped for the xmldoc to work for return documentation. List<Foo> should be List{Foo} for the c# compiler to generate the documentation for the generic type. since there is not a spare parameter on the CodegenOperation model to put this correctly formatted documentation, for right now, don't include the return type in the documentation.
2015-10-02 13:11:54 -05: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
Leo
43d71ed10c
Remove the parameter in the BasePath getter
...
The parameter in the BasePath getter is not needed.
2015-09-10 12:17:23 -05: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
wing328
8de9e23814
Merge pull request #1131 from wing328/csharp_fix_compilebat
...
[C#] fix invokerPackage with packageName in compile.mustache
2015-08-26 17:30:07 +08:00
wing328
570a595ffb
fix invokerPackage with packageName in compile.mustache
2015-08-25 15:35:22 +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
wing328
05f00013f1
add back csharp dll, update sample
2015-07-30 10:19:46 +08: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
b843b55339
Merge pull request #1001 from who/csharp_dotnet2_template
...
C# .Net 2.0 generator and template
2015-07-28 09:32:03 +08:00
Andrew B
0247f0774d
Updating the mono compile script to target .net 2
2015-07-21 11:12:17 -07: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
wing328
596bde2ef6
remove leading space for path variable, update unit test
2015-07-20 10:43:08 +08:00
Peter S. May
1f7664f81e
Fixed case typo in previous edit.
2015-07-18 19:38:20 -04: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
7e4a82bcfb
add readme
2015-07-06 11:18:05 +08:00
wing328
f823c0e26a
update newtonsoft json
2015-07-06 11:03:36 +08:00
wing328
987a61640b
fix file upload issue. add error handling for status code 0
2015-07-03 17:39:27 +08:00
wing328
5c888ad039
better method comment
2015-07-03 13:55:51 +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
422da698f6
import model only if it has import for c#
2015-07-02 11:18:41 +08:00
wing328
488e604207
use stream for file
2015-07-01 21:37:48 +08:00
wing328
4d6dbf7d92
show return in doc only if it has a return
2015-07-01 15:16:28 +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
9726ada8d1
fix return type and tempfolder
2015-06-29 15:30:34 +08:00
wing328
76ece5a4eb
add file response support for c# (passed test cases)
2015-06-29 12:17:49 +08:00
wing328
6aac24398a
update model to support inheritance ( #879 )
2015-06-24 14:34:05 +08:00
wing328
6ab7be4058
add package version
2015-06-18 22:20:52 +08:00
wing328
df72188bc0
add cli support to csharp
2015-06-18 22:06:59 +08:00
wing328
4982784d7c
upgrade restsharp to 105.1.0
2015-06-10 15:57:07 +08:00
wing328
680078dc58
fix csharp refer to apiinvoker
2015-06-09 13:52:01 +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