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
Tony Tam
ab5b2da21a
Merge branch 'Generic_API_Exception' of ssh://github.com/Hadou1/swagger-codegen into Hadou1-Generic_API_Exception
2015-06-05 08:46:02 -07: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
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
wing328
61a7d848f7
rename files in csharp and perl to fix issue
2015-06-05 17:00:11 +08: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