Add model name mapping feature to C# codegen (#16209)

* add model name mapping feature to C# codegen

* rename file

* update samples

* update doc
This commit is contained in:
William Cheng
2023-08-02 10:06:11 +08:00
committed by GitHub
parent 3278eea9a4
commit 4602f18ca8
30 changed files with 509 additions and 59 deletions

View File

@@ -0,0 +1,10 @@
# Org.OpenAPITools.Model.Env
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Dummy** | **string** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -8,7 +8,7 @@ All URIs are relative to *http://localhost*
<a id="getparameternamemapping"></a>
# **GetParameterNameMapping**
> void GetParameterNameMapping (long UnderscoreType, string type, string TypeWithUnderscore, string httpDebugOption)
> Env GetParameterNameMapping (long UnderscoreType, string type, string TypeWithUnderscore, string httpDebugOption)
parameter name mapping test
@@ -37,7 +37,8 @@ namespace Example
try
{
// parameter name mapping test
apiInstance.GetParameterNameMapping(UnderscoreType, type, TypeWithUnderscore, httpDebugOption);
Env result = apiInstance.GetParameterNameMapping(UnderscoreType, type, TypeWithUnderscore, httpDebugOption);
Debug.WriteLine(result);
}
catch (ApiException e)
{
@@ -57,7 +58,10 @@ This returns an ApiResponse object which contains the response data, status code
try
{
// parameter name mapping test
apiInstance.GetParameterNameMappingWithHttpInfo(UnderscoreType, type, TypeWithUnderscore, httpDebugOption);
ApiResponse<Env> response = apiInstance.GetParameterNameMappingWithHttpInfo(UnderscoreType, type, TypeWithUnderscore, httpDebugOption);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
@@ -78,7 +82,7 @@ catch (ApiException e)
### Return type
void (empty response body)
[**Env**](Env.md)
### Authorization
@@ -87,7 +91,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
- **Accept**: application/json
### HTTP response details