Skip to content

Commit f249058

Browse files
committed
regenerate
1 parent 72117d0 commit f249058

24 files changed

Lines changed: 1773 additions & 2126 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -1,68 +0,0 @@
1-
/*
2-
* OpenAPI Petstore
3-
*
4-
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
5-
*
6-
* The version of the OpenAPI document: 1.0.0
7-
* Generated by: https://github.com/openapitools/openapi-generator.git
8-
*/
9-
10-
11-
using System;
12-
13-
namespace Org.OpenAPITools.Client
14-
{
15-
/// <summary>
16-
/// API Exception
17-
/// </summary>
18-
public class ApiException : Exception
19-
{
20-
/// <summary>
21-
/// Gets or sets the error code (HTTP status code)
22-
/// </summary>
23-
/// <value>The error code (HTTP status code).</value>
24-
public int ErrorCode { get; set; }
25-
26-
/// <summary>
27-
/// Gets or sets the error content (body json object)
28-
/// </summary>
29-
/// <value>The error content (Http response body).</value>
30-
public object ErrorContent { get; private set; }
31-
32-
/// <summary>
33-
/// Gets or sets the HTTP headers
34-
/// </summary>
35-
/// <value>HTTP headers</value>
36-
public Multimap<string, string> Headers { get; private set; }
37-
38-
/// <summary>
39-
/// Initializes a new instance of the <see cref="ApiException"/> class.
40-
/// </summary>
41-
public ApiException() { }
42-
43-
/// <summary>
44-
/// Initializes a new instance of the <see cref="ApiException"/> class.
45-
/// </summary>
46-
/// <param name="errorCode">HTTP status code.</param>
47-
/// <param name="message">Error message.</param>
48-
public ApiException(int errorCode, string message) : base(message)
49-
{
50-
this.ErrorCode = errorCode;
51-
}
52-
53-
/// <summary>
54-
/// Initializes a new instance of the <see cref="ApiException"/> class.
55-
/// </summary>
56-
/// <param name="errorCode">HTTP status code.</param>
57-
/// <param name="message">Error message.</param>
58-
/// <param name="errorContent">Error content.</param>
59-
/// <param name="headers">HTTP Headers.</param>
60-
public ApiException(int errorCode, string message, object errorContent = null, Multimap<string, string> headers = null) : base(message)
61-
{
62-
this.ErrorCode = errorCode;
63-
this.ErrorContent = errorContent;
64-
this.Headers = headers;
65-
}
66-
}
67-
68-
}
Original file line numberDiff line numberDiff line change
@@ -1,29 +0,0 @@
1-
/*
2-
* OpenAPI Petstore
3-
*
4-
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
5-
*
6-
* The version of the OpenAPI document: 1.0.0
7-
* Generated by: https://github.com/openapitools/openapi-generator.git
8-
*/
9-
10-
using Newtonsoft.Json.Converters;
11-
12-
namespace Org.OpenAPITools.Client
13-
{
14-
/// <summary>
15-
/// Formatter for 'date' openapi formats ss defined by full-date - RFC3339
16-
/// see https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#data-types
17-
/// </summary>
18-
public class OpenAPIDateConverter : IsoDateTimeConverter
19-
{
20-
/// <summary>
21-
/// Initializes a new instance of the <see cref="OpenAPIDateConverter" /> class.
22-
/// </summary>
23-
public OpenAPIDateConverter()
24-
{
25-
// full-date = date-fullyear "-" date-month "-" date-mday
26-
DateTimeFormat = "yyyy-MM-dd";
27-
}
28-
}
29-
}
Lines changed: 0 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +0,0 @@
1-
# Org.OpenAPITools.Api.FakeClassnameTags123Api
2-
3-
All URIs are relative to *http://petstore.swagger.io:80/v2*
4-
5-
| Method | HTTP request | Description |
6-
|--------|--------------|-------------|
7-
| [**TestClassname**](FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case |
8-
9-
<a id="testclassname"></a>
10-
# **TestClassname**
11-
> ModelClient TestClassname (ModelClient modelClient)
12-
13-
To test class name in snake case
14-
15-
To test class name in snake case
16-
17-
### Example
18-
```csharp
19-
using System.Collections.Generic;
20-
using System.Diagnostics;
21-
using Org.OpenAPITools.Api;
22-
using Org.OpenAPITools.Client;
23-
using Org.OpenAPITools.Model;
24-
25-
namespace Example
26-
{
27-
public class TestClassnameExample
28-
{
29-
public static void Main()
30-
{
31-
Configuration config = new Configuration();
32-
config.BasePath = "http://petstore.swagger.io:80/v2";
33-
// Configure API key authorization: api_key_query
34-
config.AddApiKey("api_key_query", "YOUR_API_KEY");
35-
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
36-
// config.AddApiKeyPrefix("api_key_query", "Bearer");
37-
38-
var apiInstance = new FakeClassnameTags123Api(config);
39-
var modelClient = new ModelClient(); // ModelClient | client model
40-
41-
try
42-
{
43-
// To test class name in snake case
44-
ModelClient result = apiInstance.TestClassname(modelClient);
45-
Debug.WriteLine(result);
46-
}
47-
catch (ApiException e)
48-
{
49-
Debug.Print("Exception when calling FakeClassnameTags123Api.TestClassname: " + e.Message);
50-
Debug.Print("Status Code: " + e.ErrorCode);
51-
Debug.Print(e.StackTrace);
52-
}
53-
}
54-
}
55-
}
56-
```
57-
58-
#### Using the TestClassnameWithHttpInfo variant
59-
This returns an ApiResponse object which contains the response data, status code and headers.
60-
61-
```csharp
62-
try
63-
{
64-
// To test class name in snake case
65-
ApiResponse<ModelClient> response = apiInstance.TestClassnameWithHttpInfo(modelClient);
66-
Debug.Write("Status Code: " + response.StatusCode);
67-
Debug.Write("Response Headers: " + response.Headers);
68-
Debug.Write("Response Body: " + response.Data);
69-
}
70-
catch (ApiException e)
71-
{
72-
Debug.Print("Exception when calling FakeClassnameTags123Api.TestClassnameWithHttpInfo: " + e.Message);
73-
Debug.Print("Status Code: " + e.ErrorCode);
74-
Debug.Print(e.StackTrace);
75-
}
76-
```
77-
78-
### Parameters
79-
80-
| Name | Type | Description | Notes |
81-
|------|------|-------------|-------|
82-
| **modelClient** | [**ModelClient**](ModelClient.md) | client model | |
83-
84-
### Return type
85-
86-
[**ModelClient**](ModelClient.md)
87-
88-
### Authorization
89-
90-
[api_key_query](../README.md#api_key_query)
91-
92-
### HTTP request headers
93-
94-
- **Content-Type**: application/json
95-
- **Accept**: application/json
96-
97-
98-
### HTTP response details
99-
| Status code | Description | Response headers |
100-
|-------------|-------------|------------------|
101-
| **200** | successful operation | - |
102-
103-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
104-

0 commit comments

Comments
 (0)