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
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
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
df72188bc0
add cli support to csharp
2015-06-18 22:06:59 +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
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
Fredrik Gustafsson
217765998d
Extended the APIException by ErrorContent from response body
2015-06-03 16:23:45 +02:00
Fredrik Gustafsson
41e4fc79ae
Extended the api-class generation by a interface generation
2015-05-29 12:19:28 +02:00
Fredrik Gustafsson
049299f07f
Updated 'api.mustache' to generate asynchronous methods aswell
2015-05-29 10:53:48 +02: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
wing328
f807e34b2b
refactor csharp (no compile error)
2015-05-25 18:21:17 +08:00
wing328
c12673a407
fix error handling for 4xx, 5xx returned by server
2015-05-14 14:16:12 +08:00
wing328
2f5f2b367b
update package name to confirm to csharp convention, fix default header
2015-05-12 12:45:59 +08:00
wing328
e7b170bf3c
better comment on csharp api, add ParameterToString to handle date
2015-04-29 16:27:08 +08:00
wing328
96d837274e
udpate csharp template with better comment and ParameterToString
2015-04-29 11:00:05 +08:00
wing328
8818c209df
udpate csharp client with restsharp
2015-04-29 10:56:24 +08:00
wing328
5c057e1306
refactor csharp client using restsharp, getpetbyid working
2015-04-29 10:55:49 +08:00
wing328
5cbe5d60aa
add iso8601 support to csharp, add more comments, add PATCH support
2015-04-09 15:55:13 +08:00
wing328
660d336646
fix warning related to csharp response, better code format for csharp api
2015-04-03 23:10:10 +08:00
wing328
c1824b5387
fix parameter name in API, update petstore sample
2015-03-30 09:31:49 +08:00
Tony Tam
6bb2e4ccb4
moved to modules per #411
2015-02-05 07:17:38 -08:00