[csharp] Fixed model property data type (#16315)

* fixed model property data type

* build samples
This commit is contained in:
devhl-labs 2023-08-14 21:57:00 -04:00 committed by GitHub
parent 35fec8da0e
commit 76bb8a40d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
90 changed files with 5894 additions and 10 deletions

View File

@ -662,15 +662,20 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
String tmpPropertyName = escapeReservedWord(model, property.name);
property.name = patchPropertyName(model, property.name);
// fix incorrect data types for maps of maps
if (property.datatypeWithEnum.endsWith(", List>") && property.items != null) {
property.datatypeWithEnum = property.datatypeWithEnum.replace(", List>", ", " + property.items.datatypeWithEnum + ">");
property.dataType = property.datatypeWithEnum;
}
if (property.datatypeWithEnum.endsWith(", Dictionary>") && property.items != null) {
property.datatypeWithEnum = property.datatypeWithEnum.replace(", Dictionary>", ", " + property.items.datatypeWithEnum + ">");
property.dataType = property.datatypeWithEnum;
}
String[] nestedTypes = { "List", "Collection", "ICollection", "Dictionary" };
Arrays.stream(nestedTypes).forEach(nestedType -> {
// fix incorrect data types for maps of maps
if (property.datatypeWithEnum.contains(", " + nestedType + ">") && property.items != null) {
property.datatypeWithEnum = property.datatypeWithEnum.replace(", " + nestedType + ">", ", " + property.items.datatypeWithEnum + ">");
property.dataType = property.datatypeWithEnum;
}
if (property.datatypeWithEnum.contains("<" + nestedType + ">") && property.items != null) {
property.datatypeWithEnum = property.datatypeWithEnum.replace("<" + nestedType + ">", "<" + property.items.datatypeWithEnum + ">");
property.dataType = property.datatypeWithEnum;
}
});
// HOTFIX: https://github.com/OpenAPITools/openapi-generator/issues/14944
if (property.datatypeWithEnum.equals("decimal")) {

View File

@ -1196,6 +1196,17 @@ paths:
responses:
'200':
description: OK
/test:
get:
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/notificationtest-getElements-v1-Response-mPayload'
description: Successful response
operationId: Test
summary: Retrieve an existing Notificationtest's Elements
servers:
- url: 'http://{server}.swagger.io:{port}/v2'
description: petstore server
@ -2350,4 +2361,22 @@ components:
type: string
enum:
- unknown
- notUnknown
- notUnknown
Custom-Variableobject-Response:
description: A Variable object without predefined property names
type: object
additionalProperties: true
Field-pkiNotificationtestID:
type: integer
notificationtest-getElements-v1-Response-mPayload:
required:
- pkiNotificationtestID
- a_objVariableobject
type: object
properties:
pkiNotificationtestID:
$ref: '#/components/schemas/Field-pkiNotificationtestID'
a_objVariableobject:
type: array
items:
$ref: '#/components/schemas/Custom-Variableobject-Response'

View File

@ -55,6 +55,7 @@ docs/MixedPropertiesAndAdditionalPropertiesClass.md
docs/Model200Response.md
docs/ModelClient.md
docs/Name.md
docs/NotificationtestGetElementsV1ResponseMPayload.md
docs/NullableClass.md
docs/NullableGuidClass.md
docs/NullableShape.md
@ -174,6 +175,7 @@ src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs
src/Org.OpenAPITools/Model/Name.cs
src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
src/Org.OpenAPITools/Model/NullableClass.cs
src/Org.OpenAPITools/Model/NullableGuidClass.cs
src/Org.OpenAPITools/Model/NullableShape.cs

View File

@ -108,6 +108,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**GetCountry**](docs/DefaultApi.md#getcountry) | **POST** /country |
*DefaultApi* | [**Hello**](docs/DefaultApi.md#hello) | **GET** /hello | Hello
*DefaultApi* | [**RolesReportGet**](docs/DefaultApi.md#rolesreportget) | **GET** /roles/report |
*DefaultApi* | [**Test**](docs/DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements
*FakeApi* | [**FakeHealthGet**](docs/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
*FakeApi* | [**FakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
@ -198,6 +199,7 @@ Class | Method | HTTP request | Description
- [Model.Model200Response](docs/Model200Response.md)
- [Model.ModelClient](docs/ModelClient.md)
- [Model.Name](docs/Name.md)
- [Model.NotificationtestGetElementsV1ResponseMPayload](docs/NotificationtestGetElementsV1ResponseMPayload.md)
- [Model.NullableClass](docs/NullableClass.md)
- [Model.NullableGuidClass](docs/NullableGuidClass.md)
- [Model.NullableShape](docs/NullableShape.md)

View File

@ -1156,6 +1156,17 @@ paths:
responses:
"200":
description: OK
/test:
get:
operationId: Test
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/notificationtest-getElements-v1-Response-mPayload'
description: Successful response
summary: Retrieve an existing Notificationtest's Elements
components:
requestBodies:
UserArray:
@ -2294,6 +2305,29 @@ components:
- notUnknown
type: string
type: object
Custom-Variableobject-Response:
additionalProperties: true
description: A Variable object without predefined property names
type: object
Field-pkiNotificationtestID:
type: integer
notificationtest-getElements-v1-Response-mPayload:
example:
a_objVariableobject:
- null
- null
pkiNotificationtestID: 0
properties:
pkiNotificationtestID:
type: integer
a_objVariableobject:
items:
$ref: '#/components/schemas/Custom-Variableobject-Response'
type: array
required:
- a_objVariableobject
- pkiNotificationtestID
type: object
_foo_get_default_response:
example:
string:

View File

@ -8,6 +8,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| [**GetCountry**](DefaultApi.md#getcountry) | **POST** /country | |
| [**Hello**](DefaultApi.md#hello) | **GET** /hello | Hello |
| [**RolesReportGet**](DefaultApi.md#rolesreportget) | **GET** /roles/report | |
| [**Test**](DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest&#39;s Elements |
<a id="fooget"></a>
# **FooGet**
@ -342,3 +343,87 @@ No authorization required
[[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)
<a id="test"></a>
# **Test**
> NotificationtestGetElementsV1ResponseMPayload Test ()
Retrieve an existing Notificationtest's Elements
### Example
```csharp
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class TestExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new DefaultApi(config);
try
{
// Retrieve an existing Notificationtest's Elements
NotificationtestGetElementsV1ResponseMPayload result = apiInstance.Test();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.Test: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```
#### Using the TestWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
```csharp
try
{
// Retrieve an existing Notificationtest's Elements
ApiResponse<NotificationtestGetElementsV1ResponseMPayload> response = apiInstance.TestWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.TestWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**NotificationtestGetElementsV1ResponseMPayload**](NotificationtestGetElementsV1ResponseMPayload.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Successful response | - |
[[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)

View File

@ -0,0 +1,11 @@
# Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**PkiNotificationtestID** | **int** | |
**AObjVariableobject** | **List&lt;Dictionary&lt;string, Object&gt;&gt;** | |
[[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

@ -0,0 +1,75 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using Xunit;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Org.OpenAPITools.Model;
using Org.OpenAPITools.Client;
using System.Reflection;
using Newtonsoft.Json;
namespace Org.OpenAPITools.Test.Model
{
/// <summary>
/// Class for testing NotificationtestGetElementsV1ResponseMPayload
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
public class NotificationtestGetElementsV1ResponseMPayloadTests : IDisposable
{
// TODO uncomment below to declare an instance variable for NotificationtestGetElementsV1ResponseMPayload
//private NotificationtestGetElementsV1ResponseMPayload instance;
public NotificationtestGetElementsV1ResponseMPayloadTests()
{
// TODO uncomment below to create an instance of NotificationtestGetElementsV1ResponseMPayload
//instance = new NotificationtestGetElementsV1ResponseMPayload();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of NotificationtestGetElementsV1ResponseMPayload
/// </summary>
[Fact]
public void NotificationtestGetElementsV1ResponseMPayloadInstanceTest()
{
// TODO uncomment below to test "IsType" NotificationtestGetElementsV1ResponseMPayload
//Assert.IsType<NotificationtestGetElementsV1ResponseMPayload>(instance);
}
/// <summary>
/// Test the property 'PkiNotificationtestID'
/// </summary>
[Fact]
public void PkiNotificationtestIDTest()
{
// TODO unit test for the property 'PkiNotificationtestID'
}
/// <summary>
/// Test the property 'AObjVariableobject'
/// </summary>
[Fact]
public void AObjVariableobjectTest()
{
// TODO unit test for the property 'AObjVariableobject'
}
}
}

View File

@ -104,6 +104,24 @@ namespace Org.OpenAPITools.Api
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of List&lt;List&lt;RolesReportsHash&gt;&gt;</returns>
ApiResponse<List<List<RolesReportsHash>>> RolesReportGetWithHttpInfo(int operationIndex = 0);
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>NotificationtestGetElementsV1ResponseMPayload</returns>
NotificationtestGetElementsV1ResponseMPayload Test(int operationIndex = 0);
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of NotificationtestGetElementsV1ResponseMPayload</returns>
ApiResponse<NotificationtestGetElementsV1ResponseMPayload> TestWithHttpInfo(int operationIndex = 0);
#endregion Synchronous Operations
}
@ -207,6 +225,29 @@ namespace Org.OpenAPITools.Api
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (List&lt;List&lt;RolesReportsHash&gt;&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<List<RolesReportsHash>>>> RolesReportGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of NotificationtestGetElementsV1ResponseMPayload</returns>
System.Threading.Tasks.Task<NotificationtestGetElementsV1ResponseMPayload> TestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)</returns>
System.Threading.Tasks.Task<ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
#endregion Asynchronous Operations
}
@ -847,5 +888,131 @@ namespace Org.OpenAPITools.Api
return localVarResponse;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>NotificationtestGetElementsV1ResponseMPayload</returns>
public NotificationtestGetElementsV1ResponseMPayload Test(int operationIndex = 0)
{
Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> localVarResponse = TestWithHttpInfo();
return localVarResponse.Data;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of NotificationtestGetElementsV1ResponseMPayload</returns>
public Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> TestWithHttpInfo(int operationIndex = 0)
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
string[] _contentTypes = new string[] {
};
// to determine the Accept header
string[] _accepts = new string[] {
"application/json"
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
localVarRequestOptions.Operation = "DefaultApi.Test";
localVarRequestOptions.OperationIndex = operationIndex;
// make the HTTP request
var localVarResponse = this.Client.Get<NotificationtestGetElementsV1ResponseMPayload>("/test", localVarRequestOptions, this.Configuration);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("Test", localVarResponse);
if (_exception != null)
{
throw _exception;
}
}
return localVarResponse;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of NotificationtestGetElementsV1ResponseMPayload</returns>
public async System.Threading.Tasks.Task<NotificationtestGetElementsV1ResponseMPayload> TestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> localVarResponse = await TestWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)</returns>
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
string[] _contentTypes = new string[] {
};
// to determine the Accept header
string[] _accepts = new string[] {
"application/json"
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
localVarRequestOptions.Operation = "DefaultApi.Test";
localVarRequestOptions.OperationIndex = operationIndex;
// make the HTTP request
var localVarResponse = await this.AsynchronousClient.GetAsync<NotificationtestGetElementsV1ResponseMPayload>("/test", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("Test", localVarResponse);
if (_exception != null)
{
throw _exception;
}
}
return localVarResponse;
}
}
}

View File

@ -0,0 +1,191 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model
{
/// <summary>
/// NotificationtestGetElementsV1ResponseMPayload
/// </summary>
[DataContract(Name = "notificationtest-getElements-v1-Response-mPayload")]
public partial class NotificationtestGetElementsV1ResponseMPayload : IEquatable<NotificationtestGetElementsV1ResponseMPayload>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="NotificationtestGetElementsV1ResponseMPayload" /> class.
/// </summary>
[JsonConstructorAttribute]
protected NotificationtestGetElementsV1ResponseMPayload()
{
this.AdditionalProperties = new Dictionary<string, object>();
}
/// <summary>
/// Initializes a new instance of the <see cref="NotificationtestGetElementsV1ResponseMPayload" /> class.
/// </summary>
/// <param name="pkiNotificationtestID">pkiNotificationtestID (required).</param>
/// <param name="aObjVariableobject">aObjVariableobject (required).</param>
public NotificationtestGetElementsV1ResponseMPayload(int pkiNotificationtestID = default(int), List<Dictionary<string, Object>> aObjVariableobject = default(List<Dictionary<string, Object>>))
{
this._PkiNotificationtestID = pkiNotificationtestID;
// to ensure "aObjVariableobject" is required (not null)
if (aObjVariableobject == null)
{
throw new ArgumentNullException("aObjVariableobject is a required property for NotificationtestGetElementsV1ResponseMPayload and cannot be null");
}
this._AObjVariableobject = aObjVariableobject;
this.AdditionalProperties = new Dictionary<string, object>();
}
/// <summary>
/// Gets or Sets PkiNotificationtestID
/// </summary>
[DataMember(Name = "pkiNotificationtestID", IsRequired = true, EmitDefaultValue = true)]
public int PkiNotificationtestID
{
get{ return _PkiNotificationtestID;}
set
{
_PkiNotificationtestID = value;
_flagPkiNotificationtestID = true;
}
}
private int _PkiNotificationtestID;
private bool _flagPkiNotificationtestID;
/// <summary>
/// Returns false as PkiNotificationtestID should not be serialized given that it's read-only.
/// </summary>
/// <returns>false (boolean)</returns>
public bool ShouldSerializePkiNotificationtestID()
{
return _flagPkiNotificationtestID;
}
/// <summary>
/// Gets or Sets AObjVariableobject
/// </summary>
[DataMember(Name = "a_objVariableobject", IsRequired = true, EmitDefaultValue = true)]
public List<Dictionary<string, Object>> AObjVariableobject
{
get{ return _AObjVariableobject;}
set
{
_AObjVariableobject = value;
_flagAObjVariableobject = true;
}
}
private List<Dictionary<string, Object>> _AObjVariableobject;
private bool _flagAObjVariableobject;
/// <summary>
/// Returns false as AObjVariableobject should not be serialized given that it's read-only.
/// </summary>
/// <returns>false (boolean)</returns>
public bool ShouldSerializeAObjVariableobject()
{
return _flagAObjVariableobject;
}
/// <summary>
/// Gets or Sets additional properties
/// </summary>
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class NotificationtestGetElementsV1ResponseMPayload {\n");
sb.Append(" PkiNotificationtestID: ").Append(PkiNotificationtestID).Append("\n");
sb.Append(" AObjVariableobject: ").Append(AObjVariableobject).Append("\n");
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return OpenAPIClientUtils.compareLogic.Compare(this, input as NotificationtestGetElementsV1ResponseMPayload).AreEqual;
}
/// <summary>
/// Returns true if NotificationtestGetElementsV1ResponseMPayload instances are equal
/// </summary>
/// <param name="input">Instance of NotificationtestGetElementsV1ResponseMPayload to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(NotificationtestGetElementsV1ResponseMPayload input)
{
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
hashCode = (hashCode * 59) + this.PkiNotificationtestID.GetHashCode();
if (this.AObjVariableobject != null)
{
hashCode = (hashCode * 59) + this.AObjVariableobject.GetHashCode();
}
if (this.AdditionalProperties != null)
{
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
}
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}

View File

@ -58,6 +58,7 @@ docs/models/MixedPropertiesAndAdditionalPropertiesClass.md
docs/models/Model200Response.md
docs/models/ModelClient.md
docs/models/Name.md
docs/models/NotificationtestGetElementsV1ResponseMPayload.md
docs/models/NullableClass.md
docs/models/NullableGuidClass.md
docs/models/NullableShape.md
@ -182,6 +183,7 @@ src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs
src/Org.OpenAPITools/Model/Name.cs
src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
src/Org.OpenAPITools/Model/NullableClass.cs
src/Org.OpenAPITools/Model/NullableGuidClass.cs
src/Org.OpenAPITools/Model/NullableShape.cs

View File

@ -1156,6 +1156,17 @@ paths:
responses:
"200":
description: OK
/test:
get:
operationId: Test
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/notificationtest-getElements-v1-Response-mPayload'
description: Successful response
summary: Retrieve an existing Notificationtest's Elements
components:
requestBodies:
UserArray:
@ -2294,6 +2305,29 @@ components:
- notUnknown
type: string
type: object
Custom-Variableobject-Response:
additionalProperties: true
description: A Variable object without predefined property names
type: object
Field-pkiNotificationtestID:
type: integer
notificationtest-getElements-v1-Response-mPayload:
example:
a_objVariableobject:
- null
- null
pkiNotificationtestID: 0
properties:
pkiNotificationtestID:
type: integer
a_objVariableobject:
items:
$ref: '#/components/schemas/Custom-Variableobject-Response'
type: array
required:
- a_objVariableobject
- pkiNotificationtestID
type: object
_foo_get_default_response:
example:
string:

View File

@ -8,6 +8,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| [**GetCountry**](DefaultApi.md#getcountry) | **POST** /country | |
| [**Hello**](DefaultApi.md#hello) | **GET** /hello | Hello |
| [**RolesReportGet**](DefaultApi.md#rolesreportget) | **GET** /roles/report | |
| [**Test**](DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest&#39;s Elements |
<a id="fooget"></a>
# **FooGet**
@ -342,3 +343,87 @@ No authorization required
[[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)
<a id="test"></a>
# **Test**
> NotificationtestGetElementsV1ResponseMPayload Test ()
Retrieve an existing Notificationtest's Elements
### Example
```csharp
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class TestExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new DefaultApi(config);
try
{
// Retrieve an existing Notificationtest's Elements
NotificationtestGetElementsV1ResponseMPayload result = apiInstance.Test();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.Test: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```
#### Using the TestWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
```csharp
try
{
// Retrieve an existing Notificationtest's Elements
ApiResponse<NotificationtestGetElementsV1ResponseMPayload> response = apiInstance.TestWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.TestWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**NotificationtestGetElementsV1ResponseMPayload**](NotificationtestGetElementsV1ResponseMPayload.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Successful response | - |
[[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)

View File

@ -0,0 +1,11 @@
# Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AObjVariableobject** | **List&lt;Dictionary&lt;string, Object&gt;&gt;** | |
**PkiNotificationtestID** | **int** | |
[[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

@ -0,0 +1,74 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using Xunit;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Org.OpenAPITools.Model;
using Org.OpenAPITools.Client;
using System.Reflection;
namespace Org.OpenAPITools.Test.Model
{
/// <summary>
/// Class for testing NotificationtestGetElementsV1ResponseMPayload
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
public class NotificationtestGetElementsV1ResponseMPayloadTests : IDisposable
{
// TODO uncomment below to declare an instance variable for NotificationtestGetElementsV1ResponseMPayload
//private NotificationtestGetElementsV1ResponseMPayload instance;
public NotificationtestGetElementsV1ResponseMPayloadTests()
{
// TODO uncomment below to create an instance of NotificationtestGetElementsV1ResponseMPayload
//instance = new NotificationtestGetElementsV1ResponseMPayload();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of NotificationtestGetElementsV1ResponseMPayload
/// </summary>
[Fact]
public void NotificationtestGetElementsV1ResponseMPayloadInstanceTest()
{
// TODO uncomment below to test "IsType" NotificationtestGetElementsV1ResponseMPayload
//Assert.IsType<NotificationtestGetElementsV1ResponseMPayload>(instance);
}
/// <summary>
/// Test the property 'AObjVariableobject'
/// </summary>
[Fact]
public void AObjVariableobjectTest()
{
// TODO unit test for the property 'AObjVariableobject'
}
/// <summary>
/// Test the property 'PkiNotificationtestID'
/// </summary>
[Fact]
public void PkiNotificationtestIDTest()
{
// TODO unit test for the property 'PkiNotificationtestID'
}
}
}

View File

@ -120,6 +120,27 @@ namespace Org.OpenAPITools.Api
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task&lt;ApiResponse&gt;List&lt;List&lt;RolesReportsHash&gt;&gt;&gt;?&gt;</returns>
Task<ApiResponse<List<List<RolesReportsHash>>>?> RolesReportGetOrDefaultAsync(System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task&lt;ApiResponse&lt;NotificationtestGetElementsV1ResponseMPayload&gt;&gt;</returns>
Task<ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestAsync(System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task&lt;ApiResponse&gt;NotificationtestGetElementsV1ResponseMPayload&gt;?&gt;</returns>
Task<ApiResponse<NotificationtestGetElementsV1ResponseMPayload>?> TestOrDefaultAsync(System.Threading.CancellationToken cancellationToken = default);
}
/// <summary>
@ -207,6 +228,26 @@ namespace Org.OpenAPITools.Api
{
OnErrorRolesReportGet?.Invoke(this, new ExceptionEventArgs(exception));
}
/// <summary>
/// The event raised after the server response
/// </summary>
public event EventHandler<ApiResponseEventArgs<NotificationtestGetElementsV1ResponseMPayload>>? OnTest;
/// <summary>
/// The event raised after an error querying the server
/// </summary>
public event EventHandler<ExceptionEventArgs>? OnErrorTest;
internal void ExecuteOnTest(ApiResponse<NotificationtestGetElementsV1ResponseMPayload> apiResponse)
{
OnTest?.Invoke(this, new ApiResponseEventArgs<NotificationtestGetElementsV1ResponseMPayload>(apiResponse));
}
internal void ExecuteOnErrorTest(Exception exception)
{
OnErrorTest?.Invoke(this, new ExceptionEventArgs(exception));
}
}
/// <summary>
@ -770,5 +811,120 @@ namespace Org.OpenAPITools.Api
throw;
}
}
/// <summary>
/// Processes the server response
/// </summary>
/// <param name="apiResponseLocalVar"></param>
private void AfterTestDefaultImplementation(ApiResponse<NotificationtestGetElementsV1ResponseMPayload> apiResponseLocalVar)
{
bool suppressDefaultLog = false;
AfterTest(ref suppressDefaultLog, apiResponseLocalVar);
if (!suppressDefaultLog)
Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path);
}
/// <summary>
/// Processes the server response
/// </summary>
/// <param name="suppressDefaultLog"></param>
/// <param name="apiResponseLocalVar"></param>
partial void AfterTest(ref bool suppressDefaultLog, ApiResponse<NotificationtestGetElementsV1ResponseMPayload> apiResponseLocalVar);
/// <summary>
/// Logs exceptions that occur while retrieving the server response
/// </summary>
/// <param name="exception"></param>
/// <param name="pathFormat"></param>
/// <param name="path"></param>
private void OnErrorTestDefaultImplementation(Exception exception, string pathFormat, string path)
{
bool suppressDefaultLog = false;
OnErrorTest(ref suppressDefaultLog, exception, pathFormat, path);
if (!suppressDefaultLog)
Logger.LogError(exception, "An error occurred while sending the request to the server.");
}
/// <summary>
/// A partial method that gives developers a way to provide customized exception handling
/// </summary>
/// <param name="suppressDefaultLog"></param>
/// <param name="exception"></param>
/// <param name="pathFormat"></param>
/// <param name="path"></param>
partial void OnErrorTest(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path);
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns><see cref="Task"/>&lt;<see cref="ApiResponse{T}"/>&gt; where T : <see cref="NotificationtestGetElementsV1ResponseMPayload"/></returns>
public async Task<ApiResponse<NotificationtestGetElementsV1ResponseMPayload>?> TestOrDefaultAsync(System.Threading.CancellationToken cancellationToken = default)
{
try
{
return await TestAsync(cancellationToken).ConfigureAwait(false);
}
catch (Exception)
{
return null;
}
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns><see cref="Task"/>&lt;<see cref="ApiResponse{T}"/>&gt; where T : <see cref="NotificationtestGetElementsV1ResponseMPayload"/></returns>
public async Task<ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestAsync(System.Threading.CancellationToken cancellationToken = default)
{
UriBuilder uriBuilderLocalVar = new UriBuilder();
try
{
using (HttpRequestMessage httpRequestMessageLocalVar = new HttpRequestMessage())
{
uriBuilderLocalVar.Host = HttpClient.BaseAddress!.Host;
uriBuilderLocalVar.Port = HttpClient.BaseAddress.Port;
uriBuilderLocalVar.Scheme = HttpClient.BaseAddress.Scheme;
uriBuilderLocalVar.Path = ClientUtils.CONTEXT_PATH + "/test";
httpRequestMessageLocalVar.RequestUri = uriBuilderLocalVar.Uri;
string[] acceptLocalVars = new string[] {
"application/json"
};
string? acceptLocalVar = ClientUtils.SelectHeaderAccept(acceptLocalVars);
if (acceptLocalVar != null)
httpRequestMessageLocalVar.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue(acceptLocalVar));
httpRequestMessageLocalVar.Method = HttpMethod.Get;
DateTime requestedAtLocalVar = DateTime.UtcNow;
using (HttpResponseMessage httpResponseMessageLocalVar = await HttpClient.SendAsync(httpRequestMessageLocalVar, cancellationToken).ConfigureAwait(false))
{
string responseContentLocalVar = await httpResponseMessageLocalVar.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
ApiResponse<NotificationtestGetElementsV1ResponseMPayload> apiResponseLocalVar = new ApiResponse<NotificationtestGetElementsV1ResponseMPayload>(httpRequestMessageLocalVar, httpResponseMessageLocalVar, responseContentLocalVar, "/test", requestedAtLocalVar, _jsonSerializerOptions);
AfterTestDefaultImplementation(apiResponseLocalVar);
Events.ExecuteOnTest(apiResponseLocalVar);
return apiResponseLocalVar;
}
}
}
catch(Exception e)
{
OnErrorTestDefaultImplementation(e, "/test", uriBuilderLocalVar.Path);
Events.ExecuteOnErrorTest(e);
throw;
}
}
}
}

View File

@ -90,6 +90,7 @@ namespace Org.OpenAPITools.Client
_jsonOptions.Converters.Add(new Model200ResponseJsonConverter());
_jsonOptions.Converters.Add(new ModelClientJsonConverter());
_jsonOptions.Converters.Add(new NameJsonConverter());
_jsonOptions.Converters.Add(new NotificationtestGetElementsV1ResponseMPayloadJsonConverter());
_jsonOptions.Converters.Add(new NullableClassJsonConverter());
_jsonOptions.Converters.Add(new NullableGuidClassJsonConverter());
_jsonOptions.Converters.Add(new NullableShapeJsonConverter());

View File

@ -0,0 +1,184 @@
// <auto-generated>
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
#nullable enable
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.ComponentModel.DataAnnotations;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model
{
/// <summary>
/// NotificationtestGetElementsV1ResponseMPayload
/// </summary>
public partial class NotificationtestGetElementsV1ResponseMPayload : IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="NotificationtestGetElementsV1ResponseMPayload" /> class.
/// </summary>
/// <param name="aObjVariableobject">aObjVariableobject</param>
/// <param name="pkiNotificationtestID">pkiNotificationtestID</param>
[JsonConstructor]
public NotificationtestGetElementsV1ResponseMPayload(List<Dictionary<string, Object>> aObjVariableobject, int pkiNotificationtestID)
{
AObjVariableobject = aObjVariableobject;
PkiNotificationtestID = pkiNotificationtestID;
OnCreated();
}
partial void OnCreated();
/// <summary>
/// Gets or Sets AObjVariableobject
/// </summary>
[JsonPropertyName("a_objVariableobject")]
public List<Dictionary<string, Object>> AObjVariableobject { get; set; }
/// <summary>
/// Gets or Sets PkiNotificationtestID
/// </summary>
[JsonPropertyName("pkiNotificationtestID")]
public int PkiNotificationtestID { get; set; }
/// <summary>
/// Gets or Sets additional properties
/// </summary>
[JsonExtensionData]
public Dictionary<string, JsonElement> AdditionalProperties { get; } = new Dictionary<string, JsonElement>();
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class NotificationtestGetElementsV1ResponseMPayload {\n");
sb.Append(" AObjVariableobject: ").Append(AObjVariableobject).Append("\n");
sb.Append(" PkiNotificationtestID: ").Append(PkiNotificationtestID).Append("\n");
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
/// <summary>
/// A Json converter for type <see cref="NotificationtestGetElementsV1ResponseMPayload" />
/// </summary>
public class NotificationtestGetElementsV1ResponseMPayloadJsonConverter : JsonConverter<NotificationtestGetElementsV1ResponseMPayload>
{
/// <summary>
/// Deserializes json to <see cref="NotificationtestGetElementsV1ResponseMPayload" />
/// </summary>
/// <param name="utf8JsonReader"></param>
/// <param name="typeToConvert"></param>
/// <param name="jsonSerializerOptions"></param>
/// <returns></returns>
/// <exception cref="JsonException"></exception>
public override NotificationtestGetElementsV1ResponseMPayload Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, JsonSerializerOptions jsonSerializerOptions)
{
int currentDepth = utf8JsonReader.CurrentDepth;
if (utf8JsonReader.TokenType != JsonTokenType.StartObject && utf8JsonReader.TokenType != JsonTokenType.StartArray)
throw new JsonException();
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
List<Dictionary<string, Object>>? aObjVariableobject = default;
int? pkiNotificationtestID = default;
while (utf8JsonReader.Read())
{
if (startingTokenType == JsonTokenType.StartObject && utf8JsonReader.TokenType == JsonTokenType.EndObject && currentDepth == utf8JsonReader.CurrentDepth)
break;
if (startingTokenType == JsonTokenType.StartArray && utf8JsonReader.TokenType == JsonTokenType.EndArray && currentDepth == utf8JsonReader.CurrentDepth)
break;
if (utf8JsonReader.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReader.CurrentDepth - 1)
{
string? propertyName = utf8JsonReader.GetString();
utf8JsonReader.Read();
switch (propertyName)
{
case "a_objVariableobject":
if (utf8JsonReader.TokenType != JsonTokenType.Null)
aObjVariableobject = JsonSerializer.Deserialize<List<Dictionary<string, Object>>>(ref utf8JsonReader, jsonSerializerOptions);
break;
case "pkiNotificationtestID":
if (utf8JsonReader.TokenType != JsonTokenType.Null)
pkiNotificationtestID = utf8JsonReader.GetInt32();
break;
default:
break;
}
}
}
if (aObjVariableobject == null)
throw new ArgumentNullException(nameof(aObjVariableobject), "Property is required for class NotificationtestGetElementsV1ResponseMPayload.");
if (pkiNotificationtestID == null)
throw new ArgumentNullException(nameof(pkiNotificationtestID), "Property is required for class NotificationtestGetElementsV1ResponseMPayload.");
return new NotificationtestGetElementsV1ResponseMPayload(aObjVariableobject, pkiNotificationtestID.Value);
}
/// <summary>
/// Serializes a <see cref="NotificationtestGetElementsV1ResponseMPayload" />
/// </summary>
/// <param name="writer"></param>
/// <param name="notificationtestGetElementsV1ResponseMPayload"></param>
/// <param name="jsonSerializerOptions"></param>
/// <exception cref="NotImplementedException"></exception>
public override void Write(Utf8JsonWriter writer, NotificationtestGetElementsV1ResponseMPayload notificationtestGetElementsV1ResponseMPayload, JsonSerializerOptions jsonSerializerOptions)
{
writer.WriteStartObject();
WriteProperties(ref writer, notificationtestGetElementsV1ResponseMPayload, jsonSerializerOptions);
writer.WriteEndObject();
}
/// <summary>
/// Serializes the properties of <see cref="NotificationtestGetElementsV1ResponseMPayload" />
/// </summary>
/// <param name="writer"></param>
/// <param name="notificationtestGetElementsV1ResponseMPayload"></param>
/// <param name="jsonSerializerOptions"></param>
/// <exception cref="NotImplementedException"></exception>
public void WriteProperties(ref Utf8JsonWriter writer, NotificationtestGetElementsV1ResponseMPayload notificationtestGetElementsV1ResponseMPayload, JsonSerializerOptions jsonSerializerOptions)
{
writer.WritePropertyName("a_objVariableobject");
JsonSerializer.Serialize(writer, notificationtestGetElementsV1ResponseMPayload.AObjVariableobject, jsonSerializerOptions);
writer.WriteNumber("pkiNotificationtestID", notificationtestGetElementsV1ResponseMPayload.PkiNotificationtestID);
}
}
}

View File

@ -58,6 +58,7 @@ docs/models/MixedPropertiesAndAdditionalPropertiesClass.md
docs/models/Model200Response.md
docs/models/ModelClient.md
docs/models/Name.md
docs/models/NotificationtestGetElementsV1ResponseMPayload.md
docs/models/NullableClass.md
docs/models/NullableGuidClass.md
docs/models/NullableShape.md
@ -182,6 +183,7 @@ src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs
src/Org.OpenAPITools/Model/Name.cs
src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
src/Org.OpenAPITools/Model/NullableClass.cs
src/Org.OpenAPITools/Model/NullableGuidClass.cs
src/Org.OpenAPITools/Model/NullableShape.cs

View File

@ -1156,6 +1156,17 @@ paths:
responses:
"200":
description: OK
/test:
get:
operationId: Test
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/notificationtest-getElements-v1-Response-mPayload'
description: Successful response
summary: Retrieve an existing Notificationtest's Elements
components:
requestBodies:
UserArray:
@ -2294,6 +2305,29 @@ components:
- notUnknown
type: string
type: object
Custom-Variableobject-Response:
additionalProperties: true
description: A Variable object without predefined property names
type: object
Field-pkiNotificationtestID:
type: integer
notificationtest-getElements-v1-Response-mPayload:
example:
a_objVariableobject:
- null
- null
pkiNotificationtestID: 0
properties:
pkiNotificationtestID:
type: integer
a_objVariableobject:
items:
$ref: '#/components/schemas/Custom-Variableobject-Response'
type: array
required:
- a_objVariableobject
- pkiNotificationtestID
type: object
_foo_get_default_response:
example:
string:

View File

@ -8,6 +8,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| [**GetCountry**](DefaultApi.md#getcountry) | **POST** /country | |
| [**Hello**](DefaultApi.md#hello) | **GET** /hello | Hello |
| [**RolesReportGet**](DefaultApi.md#rolesreportget) | **GET** /roles/report | |
| [**Test**](DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest&#39;s Elements |
<a id="fooget"></a>
# **FooGet**
@ -342,3 +343,87 @@ No authorization required
[[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)
<a id="test"></a>
# **Test**
> NotificationtestGetElementsV1ResponseMPayload Test ()
Retrieve an existing Notificationtest's Elements
### Example
```csharp
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class TestExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new DefaultApi(config);
try
{
// Retrieve an existing Notificationtest's Elements
NotificationtestGetElementsV1ResponseMPayload result = apiInstance.Test();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.Test: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```
#### Using the TestWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
```csharp
try
{
// Retrieve an existing Notificationtest's Elements
ApiResponse<NotificationtestGetElementsV1ResponseMPayload> response = apiInstance.TestWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.TestWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**NotificationtestGetElementsV1ResponseMPayload**](NotificationtestGetElementsV1ResponseMPayload.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Successful response | - |
[[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)

View File

@ -0,0 +1,11 @@
# Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AObjVariableobject** | **List&lt;Dictionary&lt;string, Object&gt;&gt;** | |
**PkiNotificationtestID** | **int** | |
[[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

@ -0,0 +1,74 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using Xunit;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Org.OpenAPITools.Model;
using Org.OpenAPITools.Client;
using System.Reflection;
namespace Org.OpenAPITools.Test.Model
{
/// <summary>
/// Class for testing NotificationtestGetElementsV1ResponseMPayload
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
public class NotificationtestGetElementsV1ResponseMPayloadTests : IDisposable
{
// TODO uncomment below to declare an instance variable for NotificationtestGetElementsV1ResponseMPayload
//private NotificationtestGetElementsV1ResponseMPayload instance;
public NotificationtestGetElementsV1ResponseMPayloadTests()
{
// TODO uncomment below to create an instance of NotificationtestGetElementsV1ResponseMPayload
//instance = new NotificationtestGetElementsV1ResponseMPayload();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of NotificationtestGetElementsV1ResponseMPayload
/// </summary>
[Fact]
public void NotificationtestGetElementsV1ResponseMPayloadInstanceTest()
{
// TODO uncomment below to test "IsType" NotificationtestGetElementsV1ResponseMPayload
//Assert.IsType<NotificationtestGetElementsV1ResponseMPayload>(instance);
}
/// <summary>
/// Test the property 'AObjVariableobject'
/// </summary>
[Fact]
public void AObjVariableobjectTest()
{
// TODO unit test for the property 'AObjVariableobject'
}
/// <summary>
/// Test the property 'PkiNotificationtestID'
/// </summary>
[Fact]
public void PkiNotificationtestIDTest()
{
// TODO unit test for the property 'PkiNotificationtestID'
}
}
}

View File

@ -118,6 +118,27 @@ namespace Org.OpenAPITools.Api
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task&lt;ApiResponse&gt;List&lt;List&lt;RolesReportsHash&gt;&gt;&gt;&gt;</returns>
Task<ApiResponse<List<List<RolesReportsHash>>>> RolesReportGetOrDefaultAsync(System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task&lt;ApiResponse&lt;NotificationtestGetElementsV1ResponseMPayload&gt;&gt;</returns>
Task<ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestAsync(System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task&lt;ApiResponse&gt;NotificationtestGetElementsV1ResponseMPayload&gt;&gt;</returns>
Task<ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestOrDefaultAsync(System.Threading.CancellationToken cancellationToken = default);
}
/// <summary>
@ -205,6 +226,26 @@ namespace Org.OpenAPITools.Api
{
OnErrorRolesReportGet?.Invoke(this, new ExceptionEventArgs(exception));
}
/// <summary>
/// The event raised after the server response
/// </summary>
public event EventHandler<ApiResponseEventArgs<NotificationtestGetElementsV1ResponseMPayload>> OnTest;
/// <summary>
/// The event raised after an error querying the server
/// </summary>
public event EventHandler<ExceptionEventArgs> OnErrorTest;
internal void ExecuteOnTest(ApiResponse<NotificationtestGetElementsV1ResponseMPayload> apiResponse)
{
OnTest?.Invoke(this, new ApiResponseEventArgs<NotificationtestGetElementsV1ResponseMPayload>(apiResponse));
}
internal void ExecuteOnErrorTest(Exception exception)
{
OnErrorTest?.Invoke(this, new ExceptionEventArgs(exception));
}
}
/// <summary>
@ -768,5 +809,120 @@ namespace Org.OpenAPITools.Api
throw;
}
}
/// <summary>
/// Processes the server response
/// </summary>
/// <param name="apiResponseLocalVar"></param>
private void AfterTestDefaultImplementation(ApiResponse<NotificationtestGetElementsV1ResponseMPayload> apiResponseLocalVar)
{
bool suppressDefaultLog = false;
AfterTest(ref suppressDefaultLog, apiResponseLocalVar);
if (!suppressDefaultLog)
Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path);
}
/// <summary>
/// Processes the server response
/// </summary>
/// <param name="suppressDefaultLog"></param>
/// <param name="apiResponseLocalVar"></param>
partial void AfterTest(ref bool suppressDefaultLog, ApiResponse<NotificationtestGetElementsV1ResponseMPayload> apiResponseLocalVar);
/// <summary>
/// Logs exceptions that occur while retrieving the server response
/// </summary>
/// <param name="exception"></param>
/// <param name="pathFormat"></param>
/// <param name="path"></param>
private void OnErrorTestDefaultImplementation(Exception exception, string pathFormat, string path)
{
bool suppressDefaultLog = false;
OnErrorTest(ref suppressDefaultLog, exception, pathFormat, path);
if (!suppressDefaultLog)
Logger.LogError(exception, "An error occurred while sending the request to the server.");
}
/// <summary>
/// A partial method that gives developers a way to provide customized exception handling
/// </summary>
/// <param name="suppressDefaultLog"></param>
/// <param name="exception"></param>
/// <param name="pathFormat"></param>
/// <param name="path"></param>
partial void OnErrorTest(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path);
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns><see cref="Task"/>&lt;<see cref="ApiResponse{T}"/>&gt; where T : <see cref="NotificationtestGetElementsV1ResponseMPayload"/></returns>
public async Task<ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestOrDefaultAsync(System.Threading.CancellationToken cancellationToken = default)
{
try
{
return await TestAsync(cancellationToken).ConfigureAwait(false);
}
catch (Exception)
{
return null;
}
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns><see cref="Task"/>&lt;<see cref="ApiResponse{T}"/>&gt; where T : <see cref="NotificationtestGetElementsV1ResponseMPayload"/></returns>
public async Task<ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestAsync(System.Threading.CancellationToken cancellationToken = default)
{
UriBuilder uriBuilderLocalVar = new UriBuilder();
try
{
using (HttpRequestMessage httpRequestMessageLocalVar = new HttpRequestMessage())
{
uriBuilderLocalVar.Host = HttpClient.BaseAddress.Host;
uriBuilderLocalVar.Port = HttpClient.BaseAddress.Port;
uriBuilderLocalVar.Scheme = HttpClient.BaseAddress.Scheme;
uriBuilderLocalVar.Path = ClientUtils.CONTEXT_PATH + "/test";
httpRequestMessageLocalVar.RequestUri = uriBuilderLocalVar.Uri;
string[] acceptLocalVars = new string[] {
"application/json"
};
string acceptLocalVar = ClientUtils.SelectHeaderAccept(acceptLocalVars);
if (acceptLocalVar != null)
httpRequestMessageLocalVar.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue(acceptLocalVar));
httpRequestMessageLocalVar.Method = HttpMethod.Get;
DateTime requestedAtLocalVar = DateTime.UtcNow;
using (HttpResponseMessage httpResponseMessageLocalVar = await HttpClient.SendAsync(httpRequestMessageLocalVar, cancellationToken).ConfigureAwait(false))
{
string responseContentLocalVar = await httpResponseMessageLocalVar.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
ApiResponse<NotificationtestGetElementsV1ResponseMPayload> apiResponseLocalVar = new ApiResponse<NotificationtestGetElementsV1ResponseMPayload>(httpRequestMessageLocalVar, httpResponseMessageLocalVar, responseContentLocalVar, "/test", requestedAtLocalVar, _jsonSerializerOptions);
AfterTestDefaultImplementation(apiResponseLocalVar);
Events.ExecuteOnTest(apiResponseLocalVar);
return apiResponseLocalVar;
}
}
}
catch(Exception e)
{
OnErrorTestDefaultImplementation(e, "/test", uriBuilderLocalVar.Path);
Events.ExecuteOnErrorTest(e);
throw;
}
}
}
}

View File

@ -88,6 +88,7 @@ namespace Org.OpenAPITools.Client
_jsonOptions.Converters.Add(new Model200ResponseJsonConverter());
_jsonOptions.Converters.Add(new ModelClientJsonConverter());
_jsonOptions.Converters.Add(new NameJsonConverter());
_jsonOptions.Converters.Add(new NotificationtestGetElementsV1ResponseMPayloadJsonConverter());
_jsonOptions.Converters.Add(new NullableClassJsonConverter());
_jsonOptions.Converters.Add(new NullableGuidClassJsonConverter());
_jsonOptions.Converters.Add(new NullableShapeJsonConverter());

View File

@ -0,0 +1,182 @@
// <auto-generated>
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.ComponentModel.DataAnnotations;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model
{
/// <summary>
/// NotificationtestGetElementsV1ResponseMPayload
/// </summary>
public partial class NotificationtestGetElementsV1ResponseMPayload : IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="NotificationtestGetElementsV1ResponseMPayload" /> class.
/// </summary>
/// <param name="aObjVariableobject">aObjVariableobject</param>
/// <param name="pkiNotificationtestID">pkiNotificationtestID</param>
[JsonConstructor]
public NotificationtestGetElementsV1ResponseMPayload(List<Dictionary<string, Object>> aObjVariableobject, int pkiNotificationtestID)
{
AObjVariableobject = aObjVariableobject;
PkiNotificationtestID = pkiNotificationtestID;
OnCreated();
}
partial void OnCreated();
/// <summary>
/// Gets or Sets AObjVariableobject
/// </summary>
[JsonPropertyName("a_objVariableobject")]
public List<Dictionary<string, Object>> AObjVariableobject { get; set; }
/// <summary>
/// Gets or Sets PkiNotificationtestID
/// </summary>
[JsonPropertyName("pkiNotificationtestID")]
public int PkiNotificationtestID { get; set; }
/// <summary>
/// Gets or Sets additional properties
/// </summary>
[JsonExtensionData]
public Dictionary<string, JsonElement> AdditionalProperties { get; } = new Dictionary<string, JsonElement>();
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class NotificationtestGetElementsV1ResponseMPayload {\n");
sb.Append(" AObjVariableobject: ").Append(AObjVariableobject).Append("\n");
sb.Append(" PkiNotificationtestID: ").Append(PkiNotificationtestID).Append("\n");
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
/// <summary>
/// A Json converter for type <see cref="NotificationtestGetElementsV1ResponseMPayload" />
/// </summary>
public class NotificationtestGetElementsV1ResponseMPayloadJsonConverter : JsonConverter<NotificationtestGetElementsV1ResponseMPayload>
{
/// <summary>
/// Deserializes json to <see cref="NotificationtestGetElementsV1ResponseMPayload" />
/// </summary>
/// <param name="utf8JsonReader"></param>
/// <param name="typeToConvert"></param>
/// <param name="jsonSerializerOptions"></param>
/// <returns></returns>
/// <exception cref="JsonException"></exception>
public override NotificationtestGetElementsV1ResponseMPayload Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, JsonSerializerOptions jsonSerializerOptions)
{
int currentDepth = utf8JsonReader.CurrentDepth;
if (utf8JsonReader.TokenType != JsonTokenType.StartObject && utf8JsonReader.TokenType != JsonTokenType.StartArray)
throw new JsonException();
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
List<Dictionary<string, Object>> aObjVariableobject = default;
int? pkiNotificationtestID = default;
while (utf8JsonReader.Read())
{
if (startingTokenType == JsonTokenType.StartObject && utf8JsonReader.TokenType == JsonTokenType.EndObject && currentDepth == utf8JsonReader.CurrentDepth)
break;
if (startingTokenType == JsonTokenType.StartArray && utf8JsonReader.TokenType == JsonTokenType.EndArray && currentDepth == utf8JsonReader.CurrentDepth)
break;
if (utf8JsonReader.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReader.CurrentDepth - 1)
{
string propertyName = utf8JsonReader.GetString();
utf8JsonReader.Read();
switch (propertyName)
{
case "a_objVariableobject":
if (utf8JsonReader.TokenType != JsonTokenType.Null)
aObjVariableobject = JsonSerializer.Deserialize<List<Dictionary<string, Object>>>(ref utf8JsonReader, jsonSerializerOptions);
break;
case "pkiNotificationtestID":
if (utf8JsonReader.TokenType != JsonTokenType.Null)
pkiNotificationtestID = utf8JsonReader.GetInt32();
break;
default:
break;
}
}
}
if (aObjVariableobject == null)
throw new ArgumentNullException(nameof(aObjVariableobject), "Property is required for class NotificationtestGetElementsV1ResponseMPayload.");
if (pkiNotificationtestID == null)
throw new ArgumentNullException(nameof(pkiNotificationtestID), "Property is required for class NotificationtestGetElementsV1ResponseMPayload.");
return new NotificationtestGetElementsV1ResponseMPayload(aObjVariableobject, pkiNotificationtestID.Value);
}
/// <summary>
/// Serializes a <see cref="NotificationtestGetElementsV1ResponseMPayload" />
/// </summary>
/// <param name="writer"></param>
/// <param name="notificationtestGetElementsV1ResponseMPayload"></param>
/// <param name="jsonSerializerOptions"></param>
/// <exception cref="NotImplementedException"></exception>
public override void Write(Utf8JsonWriter writer, NotificationtestGetElementsV1ResponseMPayload notificationtestGetElementsV1ResponseMPayload, JsonSerializerOptions jsonSerializerOptions)
{
writer.WriteStartObject();
WriteProperties(ref writer, notificationtestGetElementsV1ResponseMPayload, jsonSerializerOptions);
writer.WriteEndObject();
}
/// <summary>
/// Serializes the properties of <see cref="NotificationtestGetElementsV1ResponseMPayload" />
/// </summary>
/// <param name="writer"></param>
/// <param name="notificationtestGetElementsV1ResponseMPayload"></param>
/// <param name="jsonSerializerOptions"></param>
/// <exception cref="NotImplementedException"></exception>
public void WriteProperties(ref Utf8JsonWriter writer, NotificationtestGetElementsV1ResponseMPayload notificationtestGetElementsV1ResponseMPayload, JsonSerializerOptions jsonSerializerOptions)
{
writer.WritePropertyName("a_objVariableobject");
JsonSerializer.Serialize(writer, notificationtestGetElementsV1ResponseMPayload.AObjVariableobject, jsonSerializerOptions);
writer.WriteNumber("pkiNotificationtestID", notificationtestGetElementsV1ResponseMPayload.PkiNotificationtestID);
}
}
}

View File

@ -58,6 +58,7 @@ docs/models/MixedPropertiesAndAdditionalPropertiesClass.md
docs/models/Model200Response.md
docs/models/ModelClient.md
docs/models/Name.md
docs/models/NotificationtestGetElementsV1ResponseMPayload.md
docs/models/NullableClass.md
docs/models/NullableGuidClass.md
docs/models/NullableShape.md
@ -182,6 +183,7 @@ src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs
src/Org.OpenAPITools/Model/Name.cs
src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
src/Org.OpenAPITools/Model/NullableClass.cs
src/Org.OpenAPITools/Model/NullableGuidClass.cs
src/Org.OpenAPITools/Model/NullableShape.cs

View File

@ -1156,6 +1156,17 @@ paths:
responses:
"200":
description: OK
/test:
get:
operationId: Test
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/notificationtest-getElements-v1-Response-mPayload'
description: Successful response
summary: Retrieve an existing Notificationtest's Elements
components:
requestBodies:
UserArray:
@ -2294,6 +2305,29 @@ components:
- notUnknown
type: string
type: object
Custom-Variableobject-Response:
additionalProperties: true
description: A Variable object without predefined property names
type: object
Field-pkiNotificationtestID:
type: integer
notificationtest-getElements-v1-Response-mPayload:
example:
a_objVariableobject:
- null
- null
pkiNotificationtestID: 0
properties:
pkiNotificationtestID:
type: integer
a_objVariableobject:
items:
$ref: '#/components/schemas/Custom-Variableobject-Response'
type: array
required:
- a_objVariableobject
- pkiNotificationtestID
type: object
_foo_get_default_response:
example:
string:

View File

@ -8,6 +8,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| [**GetCountry**](DefaultApi.md#getcountry) | **POST** /country | |
| [**Hello**](DefaultApi.md#hello) | **GET** /hello | Hello |
| [**RolesReportGet**](DefaultApi.md#rolesreportget) | **GET** /roles/report | |
| [**Test**](DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest&#39;s Elements |
<a id="fooget"></a>
# **FooGet**
@ -342,3 +343,87 @@ No authorization required
[[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)
<a id="test"></a>
# **Test**
> NotificationtestGetElementsV1ResponseMPayload Test ()
Retrieve an existing Notificationtest's Elements
### Example
```csharp
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class TestExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new DefaultApi(config);
try
{
// Retrieve an existing Notificationtest's Elements
NotificationtestGetElementsV1ResponseMPayload result = apiInstance.Test();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.Test: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```
#### Using the TestWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
```csharp
try
{
// Retrieve an existing Notificationtest's Elements
ApiResponse<NotificationtestGetElementsV1ResponseMPayload> response = apiInstance.TestWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.TestWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**NotificationtestGetElementsV1ResponseMPayload**](NotificationtestGetElementsV1ResponseMPayload.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Successful response | - |
[[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)

View File

@ -0,0 +1,11 @@
# Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AObjVariableobject** | **List&lt;Dictionary&lt;string, Object&gt;&gt;** | |
**PkiNotificationtestID** | **int** | |
[[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

@ -0,0 +1,74 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using Xunit;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Org.OpenAPITools.Model;
using Org.OpenAPITools.Client;
using System.Reflection;
namespace Org.OpenAPITools.Test.Model
{
/// <summary>
/// Class for testing NotificationtestGetElementsV1ResponseMPayload
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
public class NotificationtestGetElementsV1ResponseMPayloadTests : IDisposable
{
// TODO uncomment below to declare an instance variable for NotificationtestGetElementsV1ResponseMPayload
//private NotificationtestGetElementsV1ResponseMPayload instance;
public NotificationtestGetElementsV1ResponseMPayloadTests()
{
// TODO uncomment below to create an instance of NotificationtestGetElementsV1ResponseMPayload
//instance = new NotificationtestGetElementsV1ResponseMPayload();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of NotificationtestGetElementsV1ResponseMPayload
/// </summary>
[Fact]
public void NotificationtestGetElementsV1ResponseMPayloadInstanceTest()
{
// TODO uncomment below to test "IsType" NotificationtestGetElementsV1ResponseMPayload
//Assert.IsType<NotificationtestGetElementsV1ResponseMPayload>(instance);
}
/// <summary>
/// Test the property 'AObjVariableobject'
/// </summary>
[Fact]
public void AObjVariableobjectTest()
{
// TODO unit test for the property 'AObjVariableobject'
}
/// <summary>
/// Test the property 'PkiNotificationtestID'
/// </summary>
[Fact]
public void PkiNotificationtestIDTest()
{
// TODO unit test for the property 'PkiNotificationtestID'
}
}
}

View File

@ -118,6 +118,27 @@ namespace Org.OpenAPITools.Api
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task&lt;ApiResponse&gt;List&lt;List&lt;RolesReportsHash&gt;&gt;&gt;&gt;</returns>
Task<ApiResponse<List<List<RolesReportsHash>>>> RolesReportGetOrDefaultAsync(System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task&lt;ApiResponse&lt;NotificationtestGetElementsV1ResponseMPayload&gt;&gt;</returns>
Task<ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestAsync(System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task&lt;ApiResponse&gt;NotificationtestGetElementsV1ResponseMPayload&gt;&gt;</returns>
Task<ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestOrDefaultAsync(System.Threading.CancellationToken cancellationToken = default);
}
/// <summary>
@ -205,6 +226,26 @@ namespace Org.OpenAPITools.Api
{
OnErrorRolesReportGet?.Invoke(this, new ExceptionEventArgs(exception));
}
/// <summary>
/// The event raised after the server response
/// </summary>
public event EventHandler<ApiResponseEventArgs<NotificationtestGetElementsV1ResponseMPayload>> OnTest;
/// <summary>
/// The event raised after an error querying the server
/// </summary>
public event EventHandler<ExceptionEventArgs> OnErrorTest;
internal void ExecuteOnTest(ApiResponse<NotificationtestGetElementsV1ResponseMPayload> apiResponse)
{
OnTest?.Invoke(this, new ApiResponseEventArgs<NotificationtestGetElementsV1ResponseMPayload>(apiResponse));
}
internal void ExecuteOnErrorTest(Exception exception)
{
OnErrorTest?.Invoke(this, new ExceptionEventArgs(exception));
}
}
/// <summary>
@ -765,5 +806,119 @@ namespace Org.OpenAPITools.Api
throw;
}
}
/// <summary>
/// Processes the server response
/// </summary>
/// <param name="apiResponseLocalVar"></param>
private void AfterTestDefaultImplementation(ApiResponse<NotificationtestGetElementsV1ResponseMPayload> apiResponseLocalVar)
{
bool suppressDefaultLog = false;
AfterTest(ref suppressDefaultLog, apiResponseLocalVar);
if (!suppressDefaultLog)
Logger.LogInformation("{0,-9} | {1} | {3}", (apiResponseLocalVar.DownloadedAt - apiResponseLocalVar.RequestedAt).TotalSeconds, apiResponseLocalVar.StatusCode, apiResponseLocalVar.Path);
}
/// <summary>
/// Processes the server response
/// </summary>
/// <param name="suppressDefaultLog"></param>
/// <param name="apiResponseLocalVar"></param>
partial void AfterTest(ref bool suppressDefaultLog, ApiResponse<NotificationtestGetElementsV1ResponseMPayload> apiResponseLocalVar);
/// <summary>
/// Logs exceptions that occur while retrieving the server response
/// </summary>
/// <param name="exception"></param>
/// <param name="pathFormat"></param>
/// <param name="path"></param>
private void OnErrorTestDefaultImplementation(Exception exception, string pathFormat, string path)
{
bool suppressDefaultLog = false;
OnErrorTest(ref suppressDefaultLog, exception, pathFormat, path);
if (!suppressDefaultLog)
Logger.LogError(exception, "An error occurred while sending the request to the server.");
}
/// <summary>
/// A partial method that gives developers a way to provide customized exception handling
/// </summary>
/// <param name="suppressDefaultLog"></param>
/// <param name="exception"></param>
/// <param name="pathFormat"></param>
/// <param name="path"></param>
partial void OnErrorTest(ref bool suppressDefaultLog, Exception exception, string pathFormat, string path);
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns><see cref="Task"/>&lt;<see cref="ApiResponse{T}"/>&gt; where T : <see cref="NotificationtestGetElementsV1ResponseMPayload"/></returns>
public async Task<ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestOrDefaultAsync(System.Threading.CancellationToken cancellationToken = default)
{
try
{
return await TestAsync(cancellationToken).ConfigureAwait(false);
}
catch (Exception)
{
return null;
}
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="ApiException">Thrown when fails to make API call</exception>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns><see cref="Task"/>&lt;<see cref="ApiResponse{T}"/>&gt; where T : <see cref="NotificationtestGetElementsV1ResponseMPayload"/></returns>
public async Task<ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestAsync(System.Threading.CancellationToken cancellationToken = default)
{
UriBuilder uriBuilderLocalVar = new UriBuilder();
try
{
using (HttpRequestMessage httpRequestMessageLocalVar = new HttpRequestMessage())
{
uriBuilderLocalVar.Host = HttpClient.BaseAddress.Host;
uriBuilderLocalVar.Port = HttpClient.BaseAddress.Port;
uriBuilderLocalVar.Scheme = HttpClient.BaseAddress.Scheme;
uriBuilderLocalVar.Path = ClientUtils.CONTEXT_PATH + "/test";
httpRequestMessageLocalVar.RequestUri = uriBuilderLocalVar.Uri;
string[] acceptLocalVars = new string[] {
"application/json"
};
string acceptLocalVar = ClientUtils.SelectHeaderAccept(acceptLocalVars);
if (acceptLocalVar != null)
httpRequestMessageLocalVar.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue(acceptLocalVar));
httpRequestMessageLocalVar.Method = new HttpMethod("GET");
DateTime requestedAtLocalVar = DateTime.UtcNow;
using (HttpResponseMessage httpResponseMessageLocalVar = await HttpClient.SendAsync(httpRequestMessageLocalVar, cancellationToken).ConfigureAwait(false))
{
string responseContentLocalVar = await httpResponseMessageLocalVar.Content.ReadAsStringAsync().ConfigureAwait(false);
ApiResponse<NotificationtestGetElementsV1ResponseMPayload> apiResponseLocalVar = new ApiResponse<NotificationtestGetElementsV1ResponseMPayload>(httpRequestMessageLocalVar, httpResponseMessageLocalVar, responseContentLocalVar, "/test", requestedAtLocalVar, _jsonSerializerOptions);
AfterTestDefaultImplementation(apiResponseLocalVar);
Events.ExecuteOnTest(apiResponseLocalVar);
return apiResponseLocalVar;
}
}
}
catch(Exception e)
{
OnErrorTestDefaultImplementation(e, "/test", uriBuilderLocalVar.Path);
Events.ExecuteOnErrorTest(e);
throw;
}
}
}
}

View File

@ -88,6 +88,7 @@ namespace Org.OpenAPITools.Client
_jsonOptions.Converters.Add(new Model200ResponseJsonConverter());
_jsonOptions.Converters.Add(new ModelClientJsonConverter());
_jsonOptions.Converters.Add(new NameJsonConverter());
_jsonOptions.Converters.Add(new NotificationtestGetElementsV1ResponseMPayloadJsonConverter());
_jsonOptions.Converters.Add(new NullableClassJsonConverter());
_jsonOptions.Converters.Add(new NullableGuidClassJsonConverter());
_jsonOptions.Converters.Add(new NullableShapeJsonConverter());

View File

@ -0,0 +1,182 @@
// <auto-generated>
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.ComponentModel.DataAnnotations;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model
{
/// <summary>
/// NotificationtestGetElementsV1ResponseMPayload
/// </summary>
public partial class NotificationtestGetElementsV1ResponseMPayload : IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="NotificationtestGetElementsV1ResponseMPayload" /> class.
/// </summary>
/// <param name="aObjVariableobject">aObjVariableobject</param>
/// <param name="pkiNotificationtestID">pkiNotificationtestID</param>
[JsonConstructor]
public NotificationtestGetElementsV1ResponseMPayload(List<Dictionary<string, Object>> aObjVariableobject, int pkiNotificationtestID)
{
AObjVariableobject = aObjVariableobject;
PkiNotificationtestID = pkiNotificationtestID;
OnCreated();
}
partial void OnCreated();
/// <summary>
/// Gets or Sets AObjVariableobject
/// </summary>
[JsonPropertyName("a_objVariableobject")]
public List<Dictionary<string, Object>> AObjVariableobject { get; set; }
/// <summary>
/// Gets or Sets PkiNotificationtestID
/// </summary>
[JsonPropertyName("pkiNotificationtestID")]
public int PkiNotificationtestID { get; set; }
/// <summary>
/// Gets or Sets additional properties
/// </summary>
[JsonExtensionData]
public Dictionary<string, JsonElement> AdditionalProperties { get; } = new Dictionary<string, JsonElement>();
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class NotificationtestGetElementsV1ResponseMPayload {\n");
sb.Append(" AObjVariableobject: ").Append(AObjVariableobject).Append("\n");
sb.Append(" PkiNotificationtestID: ").Append(PkiNotificationtestID).Append("\n");
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
/// <summary>
/// A Json converter for type <see cref="NotificationtestGetElementsV1ResponseMPayload" />
/// </summary>
public class NotificationtestGetElementsV1ResponseMPayloadJsonConverter : JsonConverter<NotificationtestGetElementsV1ResponseMPayload>
{
/// <summary>
/// Deserializes json to <see cref="NotificationtestGetElementsV1ResponseMPayload" />
/// </summary>
/// <param name="utf8JsonReader"></param>
/// <param name="typeToConvert"></param>
/// <param name="jsonSerializerOptions"></param>
/// <returns></returns>
/// <exception cref="JsonException"></exception>
public override NotificationtestGetElementsV1ResponseMPayload Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, JsonSerializerOptions jsonSerializerOptions)
{
int currentDepth = utf8JsonReader.CurrentDepth;
if (utf8JsonReader.TokenType != JsonTokenType.StartObject && utf8JsonReader.TokenType != JsonTokenType.StartArray)
throw new JsonException();
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
List<Dictionary<string, Object>> aObjVariableobject = default;
int? pkiNotificationtestID = default;
while (utf8JsonReader.Read())
{
if (startingTokenType == JsonTokenType.StartObject && utf8JsonReader.TokenType == JsonTokenType.EndObject && currentDepth == utf8JsonReader.CurrentDepth)
break;
if (startingTokenType == JsonTokenType.StartArray && utf8JsonReader.TokenType == JsonTokenType.EndArray && currentDepth == utf8JsonReader.CurrentDepth)
break;
if (utf8JsonReader.TokenType == JsonTokenType.PropertyName && currentDepth == utf8JsonReader.CurrentDepth - 1)
{
string propertyName = utf8JsonReader.GetString();
utf8JsonReader.Read();
switch (propertyName)
{
case "a_objVariableobject":
if (utf8JsonReader.TokenType != JsonTokenType.Null)
aObjVariableobject = JsonSerializer.Deserialize<List<Dictionary<string, Object>>>(ref utf8JsonReader, jsonSerializerOptions);
break;
case "pkiNotificationtestID":
if (utf8JsonReader.TokenType != JsonTokenType.Null)
pkiNotificationtestID = utf8JsonReader.GetInt32();
break;
default:
break;
}
}
}
if (aObjVariableobject == null)
throw new ArgumentNullException(nameof(aObjVariableobject), "Property is required for class NotificationtestGetElementsV1ResponseMPayload.");
if (pkiNotificationtestID == null)
throw new ArgumentNullException(nameof(pkiNotificationtestID), "Property is required for class NotificationtestGetElementsV1ResponseMPayload.");
return new NotificationtestGetElementsV1ResponseMPayload(aObjVariableobject, pkiNotificationtestID.Value);
}
/// <summary>
/// Serializes a <see cref="NotificationtestGetElementsV1ResponseMPayload" />
/// </summary>
/// <param name="writer"></param>
/// <param name="notificationtestGetElementsV1ResponseMPayload"></param>
/// <param name="jsonSerializerOptions"></param>
/// <exception cref="NotImplementedException"></exception>
public override void Write(Utf8JsonWriter writer, NotificationtestGetElementsV1ResponseMPayload notificationtestGetElementsV1ResponseMPayload, JsonSerializerOptions jsonSerializerOptions)
{
writer.WriteStartObject();
WriteProperties(ref writer, notificationtestGetElementsV1ResponseMPayload, jsonSerializerOptions);
writer.WriteEndObject();
}
/// <summary>
/// Serializes the properties of <see cref="NotificationtestGetElementsV1ResponseMPayload" />
/// </summary>
/// <param name="writer"></param>
/// <param name="notificationtestGetElementsV1ResponseMPayload"></param>
/// <param name="jsonSerializerOptions"></param>
/// <exception cref="NotImplementedException"></exception>
public void WriteProperties(ref Utf8JsonWriter writer, NotificationtestGetElementsV1ResponseMPayload notificationtestGetElementsV1ResponseMPayload, JsonSerializerOptions jsonSerializerOptions)
{
writer.WritePropertyName("a_objVariableobject");
JsonSerializer.Serialize(writer, notificationtestGetElementsV1ResponseMPayload.AObjVariableobject, jsonSerializerOptions);
writer.WriteNumber("pkiNotificationtestID", notificationtestGetElementsV1ResponseMPayload.PkiNotificationtestID);
}
}
}

View File

@ -55,6 +55,7 @@ docs/MixedPropertiesAndAdditionalPropertiesClass.md
docs/Model200Response.md
docs/ModelClient.md
docs/Name.md
docs/NotificationtestGetElementsV1ResponseMPayload.md
docs/NullableClass.md
docs/NullableGuidClass.md
docs/NullableShape.md
@ -171,6 +172,7 @@ src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs
src/Org.OpenAPITools/Model/Name.cs
src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
src/Org.OpenAPITools/Model/NullableClass.cs
src/Org.OpenAPITools/Model/NullableGuidClass.cs
src/Org.OpenAPITools/Model/NullableShape.cs

View File

@ -133,6 +133,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**GetCountry**](docs/DefaultApi.md#getcountry) | **POST** /country |
*DefaultApi* | [**Hello**](docs/DefaultApi.md#hello) | **GET** /hello | Hello
*DefaultApi* | [**RolesReportGet**](docs/DefaultApi.md#rolesreportget) | **GET** /roles/report |
*DefaultApi* | [**Test**](docs/DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements
*FakeApi* | [**FakeHealthGet**](docs/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
*FakeApi* | [**FakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
@ -223,6 +224,7 @@ Class | Method | HTTP request | Description
- [Model.Model200Response](docs/Model200Response.md)
- [Model.ModelClient](docs/ModelClient.md)
- [Model.Name](docs/Name.md)
- [Model.NotificationtestGetElementsV1ResponseMPayload](docs/NotificationtestGetElementsV1ResponseMPayload.md)
- [Model.NullableClass](docs/NullableClass.md)
- [Model.NullableGuidClass](docs/NullableGuidClass.md)
- [Model.NullableShape](docs/NullableShape.md)

View File

@ -1156,6 +1156,17 @@ paths:
responses:
"200":
description: OK
/test:
get:
operationId: Test
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/notificationtest-getElements-v1-Response-mPayload'
description: Successful response
summary: Retrieve an existing Notificationtest's Elements
components:
requestBodies:
UserArray:
@ -2294,6 +2305,29 @@ components:
- notUnknown
type: string
type: object
Custom-Variableobject-Response:
additionalProperties: true
description: A Variable object without predefined property names
type: object
Field-pkiNotificationtestID:
type: integer
notificationtest-getElements-v1-Response-mPayload:
example:
a_objVariableobject:
- null
- null
pkiNotificationtestID: 0
properties:
pkiNotificationtestID:
type: integer
a_objVariableobject:
items:
$ref: '#/components/schemas/Custom-Variableobject-Response'
type: array
required:
- a_objVariableobject
- pkiNotificationtestID
type: object
_foo_get_default_response:
example:
string:

View File

@ -8,6 +8,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| [**GetCountry**](DefaultApi.md#getcountry) | **POST** /country | |
| [**Hello**](DefaultApi.md#hello) | **GET** /hello | Hello |
| [**RolesReportGet**](DefaultApi.md#rolesreportget) | **GET** /roles/report | |
| [**Test**](DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest&#39;s Elements |
<a id="fooget"></a>
# **FooGet**
@ -358,3 +359,91 @@ No authorization required
[[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)
<a id="test"></a>
# **Test**
> NotificationtestGetElementsV1ResponseMPayload Test ()
Retrieve an existing Notificationtest's Elements
### Example
```csharp
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class TestExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://petstore.swagger.io:80/v2";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new DefaultApi(httpClient, config, httpClientHandler);
try
{
// Retrieve an existing Notificationtest's Elements
NotificationtestGetElementsV1ResponseMPayload result = apiInstance.Test();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.Test: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```
#### Using the TestWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
```csharp
try
{
// Retrieve an existing Notificationtest's Elements
ApiResponse<NotificationtestGetElementsV1ResponseMPayload> response = apiInstance.TestWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.TestWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**NotificationtestGetElementsV1ResponseMPayload**](NotificationtestGetElementsV1ResponseMPayload.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Successful response | - |
[[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)

View File

@ -0,0 +1,11 @@
# Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**PkiNotificationtestID** | **int** | |
**AObjVariableobject** | **List&lt;Dictionary&lt;string, Object&gt;&gt;** | |
[[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

@ -0,0 +1,75 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using Xunit;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Org.OpenAPITools.Model;
using Org.OpenAPITools.Client;
using System.Reflection;
using Newtonsoft.Json;
namespace Org.OpenAPITools.Test.Model
{
/// <summary>
/// Class for testing NotificationtestGetElementsV1ResponseMPayload
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
public class NotificationtestGetElementsV1ResponseMPayloadTests : IDisposable
{
// TODO uncomment below to declare an instance variable for NotificationtestGetElementsV1ResponseMPayload
//private NotificationtestGetElementsV1ResponseMPayload instance;
public NotificationtestGetElementsV1ResponseMPayloadTests()
{
// TODO uncomment below to create an instance of NotificationtestGetElementsV1ResponseMPayload
//instance = new NotificationtestGetElementsV1ResponseMPayload();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of NotificationtestGetElementsV1ResponseMPayload
/// </summary>
[Fact]
public void NotificationtestGetElementsV1ResponseMPayloadInstanceTest()
{
// TODO uncomment below to test "IsType" NotificationtestGetElementsV1ResponseMPayload
//Assert.IsType<NotificationtestGetElementsV1ResponseMPayload>(instance);
}
/// <summary>
/// Test the property 'PkiNotificationtestID'
/// </summary>
[Fact]
public void PkiNotificationtestIDTest()
{
// TODO unit test for the property 'PkiNotificationtestID'
}
/// <summary>
/// Test the property 'AObjVariableobject'
/// </summary>
[Fact]
public void AObjVariableobjectTest()
{
// TODO unit test for the property 'AObjVariableobject'
}
}
}

View File

@ -96,6 +96,22 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <returns>ApiResponse of List&lt;List&lt;RolesReportsHash&gt;&gt;</returns>
ApiResponse<List<List<RolesReportsHash>>> RolesReportGetWithHttpInfo();
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <returns>NotificationtestGetElementsV1ResponseMPayload</returns>
NotificationtestGetElementsV1ResponseMPayload Test();
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <returns>ApiResponse of NotificationtestGetElementsV1ResponseMPayload</returns>
ApiResponse<NotificationtestGetElementsV1ResponseMPayload> TestWithHttpInfo();
#endregion Synchronous Operations
}
@ -191,6 +207,27 @@ namespace Org.OpenAPITools.Api
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (List&lt;List&lt;RolesReportsHash&gt;&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<List<RolesReportsHash>>>> RolesReportGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of NotificationtestGetElementsV1ResponseMPayload</returns>
System.Threading.Tasks.Task<NotificationtestGetElementsV1ResponseMPayload> TestAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)</returns>
System.Threading.Tasks.Task<ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
#endregion Asynchronous Operations
}
@ -820,5 +857,106 @@ namespace Org.OpenAPITools.Api
return localVarResponse;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <returns>NotificationtestGetElementsV1ResponseMPayload</returns>
public NotificationtestGetElementsV1ResponseMPayload Test()
{
Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> localVarResponse = TestWithHttpInfo();
return localVarResponse.Data;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <returns>ApiResponse of NotificationtestGetElementsV1ResponseMPayload</returns>
public Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> TestWithHttpInfo()
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
string[] _contentTypes = new string[] {
};
// to determine the Accept header
string[] _accepts = new string[] {
"application/json"
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
// make the HTTP request
var localVarResponse = this.Client.Get<NotificationtestGetElementsV1ResponseMPayload>("/test", localVarRequestOptions, this.Configuration);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("Test", localVarResponse);
if (_exception != null) throw _exception;
}
return localVarResponse;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of NotificationtestGetElementsV1ResponseMPayload</returns>
public async System.Threading.Tasks.Task<NotificationtestGetElementsV1ResponseMPayload> TestAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> localVarResponse = await TestWithHttpInfoAsync(cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)</returns>
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
string[] _contentTypes = new string[] {
};
// to determine the Accept header
string[] _accepts = new string[] {
"application/json"
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
// make the HTTP request
var localVarResponse = await this.AsynchronousClient.GetAsync<NotificationtestGetElementsV1ResponseMPayload>("/test", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("Test", localVarResponse);
if (_exception != null) throw _exception;
}
return localVarResponse;
}
}
}

View File

@ -0,0 +1,156 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using FileParameter = Org.OpenAPITools.Client.FileParameter;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model
{
/// <summary>
/// NotificationtestGetElementsV1ResponseMPayload
/// </summary>
[DataContract(Name = "notificationtest-getElements-v1-Response-mPayload")]
public partial class NotificationtestGetElementsV1ResponseMPayload : IEquatable<NotificationtestGetElementsV1ResponseMPayload>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="NotificationtestGetElementsV1ResponseMPayload" /> class.
/// </summary>
[JsonConstructorAttribute]
protected NotificationtestGetElementsV1ResponseMPayload()
{
this.AdditionalProperties = new Dictionary<string, object>();
}
/// <summary>
/// Initializes a new instance of the <see cref="NotificationtestGetElementsV1ResponseMPayload" /> class.
/// </summary>
/// <param name="pkiNotificationtestID">pkiNotificationtestID (required).</param>
/// <param name="aObjVariableobject">aObjVariableobject (required).</param>
public NotificationtestGetElementsV1ResponseMPayload(int pkiNotificationtestID = default(int), List<Dictionary<string, Object>> aObjVariableobject = default(List<Dictionary<string, Object>>))
{
this.PkiNotificationtestID = pkiNotificationtestID;
// to ensure "aObjVariableobject" is required (not null)
if (aObjVariableobject == null)
{
throw new ArgumentNullException("aObjVariableobject is a required property for NotificationtestGetElementsV1ResponseMPayload and cannot be null");
}
this.AObjVariableobject = aObjVariableobject;
this.AdditionalProperties = new Dictionary<string, object>();
}
/// <summary>
/// Gets or Sets PkiNotificationtestID
/// </summary>
[DataMember(Name = "pkiNotificationtestID", IsRequired = true, EmitDefaultValue = true)]
public int PkiNotificationtestID { get; set; }
/// <summary>
/// Gets or Sets AObjVariableobject
/// </summary>
[DataMember(Name = "a_objVariableobject", IsRequired = true, EmitDefaultValue = true)]
public List<Dictionary<string, Object>> AObjVariableobject { get; set; }
/// <summary>
/// Gets or Sets additional properties
/// </summary>
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class NotificationtestGetElementsV1ResponseMPayload {\n");
sb.Append(" PkiNotificationtestID: ").Append(PkiNotificationtestID).Append("\n");
sb.Append(" AObjVariableobject: ").Append(AObjVariableobject).Append("\n");
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return OpenAPIClientUtils.compareLogic.Compare(this, input as NotificationtestGetElementsV1ResponseMPayload).AreEqual;
}
/// <summary>
/// Returns true if NotificationtestGetElementsV1ResponseMPayload instances are equal
/// </summary>
/// <param name="input">Instance of NotificationtestGetElementsV1ResponseMPayload to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(NotificationtestGetElementsV1ResponseMPayload input)
{
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
hashCode = (hashCode * 59) + this.PkiNotificationtestID.GetHashCode();
if (this.AObjVariableobject != null)
{
hashCode = (hashCode * 59) + this.AObjVariableobject.GetHashCode();
}
if (this.AdditionalProperties != null)
{
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
}
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}

View File

@ -55,6 +55,7 @@ docs/MixedPropertiesAndAdditionalPropertiesClass.md
docs/Model200Response.md
docs/ModelClient.md
docs/Name.md
docs/NotificationtestGetElementsV1ResponseMPayload.md
docs/NullableClass.md
docs/NullableGuidClass.md
docs/NullableShape.md
@ -174,6 +175,7 @@ src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs
src/Org.OpenAPITools/Model/Name.cs
src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
src/Org.OpenAPITools/Model/NullableClass.cs
src/Org.OpenAPITools/Model/NullableGuidClass.cs
src/Org.OpenAPITools/Model/NullableShape.cs

View File

@ -120,6 +120,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**GetCountry**](docs/DefaultApi.md#getcountry) | **POST** /country |
*DefaultApi* | [**Hello**](docs/DefaultApi.md#hello) | **GET** /hello | Hello
*DefaultApi* | [**RolesReportGet**](docs/DefaultApi.md#rolesreportget) | **GET** /roles/report |
*DefaultApi* | [**Test**](docs/DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements
*FakeApi* | [**FakeHealthGet**](docs/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
*FakeApi* | [**FakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
@ -210,6 +211,7 @@ Class | Method | HTTP request | Description
- [Model.Model200Response](docs/Model200Response.md)
- [Model.ModelClient](docs/ModelClient.md)
- [Model.Name](docs/Name.md)
- [Model.NotificationtestGetElementsV1ResponseMPayload](docs/NotificationtestGetElementsV1ResponseMPayload.md)
- [Model.NullableClass](docs/NullableClass.md)
- [Model.NullableGuidClass](docs/NullableGuidClass.md)
- [Model.NullableShape](docs/NullableShape.md)

View File

@ -1156,6 +1156,17 @@ paths:
responses:
"200":
description: OK
/test:
get:
operationId: Test
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/notificationtest-getElements-v1-Response-mPayload'
description: Successful response
summary: Retrieve an existing Notificationtest's Elements
components:
requestBodies:
UserArray:
@ -2294,6 +2305,29 @@ components:
- notUnknown
type: string
type: object
Custom-Variableobject-Response:
additionalProperties: true
description: A Variable object without predefined property names
type: object
Field-pkiNotificationtestID:
type: integer
notificationtest-getElements-v1-Response-mPayload:
example:
a_objVariableobject:
- null
- null
pkiNotificationtestID: 0
properties:
pkiNotificationtestID:
type: integer
a_objVariableobject:
items:
$ref: '#/components/schemas/Custom-Variableobject-Response'
type: array
required:
- a_objVariableobject
- pkiNotificationtestID
type: object
_foo_get_default_response:
example:
string:

View File

@ -8,6 +8,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| [**GetCountry**](DefaultApi.md#getcountry) | **POST** /country | |
| [**Hello**](DefaultApi.md#hello) | **GET** /hello | Hello |
| [**RolesReportGet**](DefaultApi.md#rolesreportget) | **GET** /roles/report | |
| [**Test**](DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest&#39;s Elements |
<a id="fooget"></a>
# **FooGet**
@ -342,3 +343,87 @@ No authorization required
[[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)
<a id="test"></a>
# **Test**
> NotificationtestGetElementsV1ResponseMPayload Test ()
Retrieve an existing Notificationtest's Elements
### Example
```csharp
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class TestExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new DefaultApi(config);
try
{
// Retrieve an existing Notificationtest's Elements
NotificationtestGetElementsV1ResponseMPayload result = apiInstance.Test();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.Test: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```
#### Using the TestWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
```csharp
try
{
// Retrieve an existing Notificationtest's Elements
ApiResponse<NotificationtestGetElementsV1ResponseMPayload> response = apiInstance.TestWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.TestWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**NotificationtestGetElementsV1ResponseMPayload**](NotificationtestGetElementsV1ResponseMPayload.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Successful response | - |
[[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)

View File

@ -0,0 +1,11 @@
# Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**PkiNotificationtestID** | **int** | |
**AObjVariableobject** | **List&lt;Dictionary&lt;string, Object&gt;&gt;** | |
[[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

@ -0,0 +1,75 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using Xunit;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Org.OpenAPITools.Model;
using Org.OpenAPITools.Client;
using System.Reflection;
using Newtonsoft.Json;
namespace Org.OpenAPITools.Test.Model
{
/// <summary>
/// Class for testing NotificationtestGetElementsV1ResponseMPayload
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
public class NotificationtestGetElementsV1ResponseMPayloadTests : IDisposable
{
// TODO uncomment below to declare an instance variable for NotificationtestGetElementsV1ResponseMPayload
//private NotificationtestGetElementsV1ResponseMPayload instance;
public NotificationtestGetElementsV1ResponseMPayloadTests()
{
// TODO uncomment below to create an instance of NotificationtestGetElementsV1ResponseMPayload
//instance = new NotificationtestGetElementsV1ResponseMPayload();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of NotificationtestGetElementsV1ResponseMPayload
/// </summary>
[Fact]
public void NotificationtestGetElementsV1ResponseMPayloadInstanceTest()
{
// TODO uncomment below to test "IsType" NotificationtestGetElementsV1ResponseMPayload
//Assert.IsType<NotificationtestGetElementsV1ResponseMPayload>(instance);
}
/// <summary>
/// Test the property 'PkiNotificationtestID'
/// </summary>
[Fact]
public void PkiNotificationtestIDTest()
{
// TODO unit test for the property 'PkiNotificationtestID'
}
/// <summary>
/// Test the property 'AObjVariableobject'
/// </summary>
[Fact]
public void AObjVariableobjectTest()
{
// TODO unit test for the property 'AObjVariableobject'
}
}
}

View File

@ -104,6 +104,24 @@ namespace Org.OpenAPITools.Api
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of List&lt;List&lt;RolesReportsHash&gt;&gt;</returns>
ApiResponse<List<List<RolesReportsHash>>> RolesReportGetWithHttpInfo(int operationIndex = 0);
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>NotificationtestGetElementsV1ResponseMPayload</returns>
NotificationtestGetElementsV1ResponseMPayload Test(int operationIndex = 0);
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of NotificationtestGetElementsV1ResponseMPayload</returns>
ApiResponse<NotificationtestGetElementsV1ResponseMPayload> TestWithHttpInfo(int operationIndex = 0);
#endregion Synchronous Operations
}
@ -207,6 +225,29 @@ namespace Org.OpenAPITools.Api
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (List&lt;List&lt;RolesReportsHash&gt;&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<List<RolesReportsHash>>>> RolesReportGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of NotificationtestGetElementsV1ResponseMPayload</returns>
System.Threading.Tasks.Task<NotificationtestGetElementsV1ResponseMPayload> TestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)</returns>
System.Threading.Tasks.Task<ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
#endregion Asynchronous Operations
}
@ -847,5 +888,131 @@ namespace Org.OpenAPITools.Api
return localVarResponse;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>NotificationtestGetElementsV1ResponseMPayload</returns>
public NotificationtestGetElementsV1ResponseMPayload Test(int operationIndex = 0)
{
Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> localVarResponse = TestWithHttpInfo();
return localVarResponse.Data;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of NotificationtestGetElementsV1ResponseMPayload</returns>
public Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> TestWithHttpInfo(int operationIndex = 0)
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
string[] _contentTypes = new string[] {
};
// to determine the Accept header
string[] _accepts = new string[] {
"application/json"
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
localVarRequestOptions.Operation = "DefaultApi.Test";
localVarRequestOptions.OperationIndex = operationIndex;
// make the HTTP request
var localVarResponse = this.Client.Get<NotificationtestGetElementsV1ResponseMPayload>("/test", localVarRequestOptions, this.Configuration);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("Test", localVarResponse);
if (_exception != null)
{
throw _exception;
}
}
return localVarResponse;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of NotificationtestGetElementsV1ResponseMPayload</returns>
public async System.Threading.Tasks.Task<NotificationtestGetElementsV1ResponseMPayload> TestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> localVarResponse = await TestWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)</returns>
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
string[] _contentTypes = new string[] {
};
// to determine the Accept header
string[] _accepts = new string[] {
"application/json"
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
localVarRequestOptions.Operation = "DefaultApi.Test";
localVarRequestOptions.OperationIndex = operationIndex;
// make the HTTP request
var localVarResponse = await this.AsynchronousClient.GetAsync<NotificationtestGetElementsV1ResponseMPayload>("/test", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("Test", localVarResponse);
if (_exception != null)
{
throw _exception;
}
}
return localVarResponse;
}
}
}

View File

@ -0,0 +1,155 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model
{
/// <summary>
/// NotificationtestGetElementsV1ResponseMPayload
/// </summary>
[DataContract(Name = "notificationtest-getElements-v1-Response-mPayload")]
public partial class NotificationtestGetElementsV1ResponseMPayload : IEquatable<NotificationtestGetElementsV1ResponseMPayload>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="NotificationtestGetElementsV1ResponseMPayload" /> class.
/// </summary>
[JsonConstructorAttribute]
protected NotificationtestGetElementsV1ResponseMPayload()
{
this.AdditionalProperties = new Dictionary<string, object>();
}
/// <summary>
/// Initializes a new instance of the <see cref="NotificationtestGetElementsV1ResponseMPayload" /> class.
/// </summary>
/// <param name="pkiNotificationtestID">pkiNotificationtestID (required).</param>
/// <param name="aObjVariableobject">aObjVariableobject (required).</param>
public NotificationtestGetElementsV1ResponseMPayload(int pkiNotificationtestID = default(int), List<Dictionary<string, Object>> aObjVariableobject = default(List<Dictionary<string, Object>>))
{
this.PkiNotificationtestID = pkiNotificationtestID;
// to ensure "aObjVariableobject" is required (not null)
if (aObjVariableobject == null)
{
throw new ArgumentNullException("aObjVariableobject is a required property for NotificationtestGetElementsV1ResponseMPayload and cannot be null");
}
this.AObjVariableobject = aObjVariableobject;
this.AdditionalProperties = new Dictionary<string, object>();
}
/// <summary>
/// Gets or Sets PkiNotificationtestID
/// </summary>
[DataMember(Name = "pkiNotificationtestID", IsRequired = true, EmitDefaultValue = true)]
public int PkiNotificationtestID { get; set; }
/// <summary>
/// Gets or Sets AObjVariableobject
/// </summary>
[DataMember(Name = "a_objVariableobject", IsRequired = true, EmitDefaultValue = true)]
public List<Dictionary<string, Object>> AObjVariableobject { get; set; }
/// <summary>
/// Gets or Sets additional properties
/// </summary>
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class NotificationtestGetElementsV1ResponseMPayload {\n");
sb.Append(" PkiNotificationtestID: ").Append(PkiNotificationtestID).Append("\n");
sb.Append(" AObjVariableobject: ").Append(AObjVariableobject).Append("\n");
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return OpenAPIClientUtils.compareLogic.Compare(this, input as NotificationtestGetElementsV1ResponseMPayload).AreEqual;
}
/// <summary>
/// Returns true if NotificationtestGetElementsV1ResponseMPayload instances are equal
/// </summary>
/// <param name="input">Instance of NotificationtestGetElementsV1ResponseMPayload to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(NotificationtestGetElementsV1ResponseMPayload input)
{
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
hashCode = (hashCode * 59) + this.PkiNotificationtestID.GetHashCode();
if (this.AObjVariableobject != null)
{
hashCode = (hashCode * 59) + this.AObjVariableobject.GetHashCode();
}
if (this.AdditionalProperties != null)
{
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
}
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}

View File

@ -55,6 +55,7 @@ docs/MixedPropertiesAndAdditionalPropertiesClass.md
docs/Model200Response.md
docs/ModelClient.md
docs/Name.md
docs/NotificationtestGetElementsV1ResponseMPayload.md
docs/NullableClass.md
docs/NullableGuidClass.md
docs/NullableShape.md
@ -174,6 +175,7 @@ src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs
src/Org.OpenAPITools/Model/Name.cs
src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
src/Org.OpenAPITools/Model/NullableClass.cs
src/Org.OpenAPITools/Model/NullableGuidClass.cs
src/Org.OpenAPITools/Model/NullableShape.cs

View File

@ -120,6 +120,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**GetCountry**](docs/DefaultApi.md#getcountry) | **POST** /country |
*DefaultApi* | [**Hello**](docs/DefaultApi.md#hello) | **GET** /hello | Hello
*DefaultApi* | [**RolesReportGet**](docs/DefaultApi.md#rolesreportget) | **GET** /roles/report |
*DefaultApi* | [**Test**](docs/DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements
*FakeApi* | [**FakeHealthGet**](docs/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
*FakeApi* | [**FakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
@ -210,6 +211,7 @@ Class | Method | HTTP request | Description
- [Model.Model200Response](docs/Model200Response.md)
- [Model.ModelClient](docs/ModelClient.md)
- [Model.Name](docs/Name.md)
- [Model.NotificationtestGetElementsV1ResponseMPayload](docs/NotificationtestGetElementsV1ResponseMPayload.md)
- [Model.NullableClass](docs/NullableClass.md)
- [Model.NullableGuidClass](docs/NullableGuidClass.md)
- [Model.NullableShape](docs/NullableShape.md)

View File

@ -1156,6 +1156,17 @@ paths:
responses:
"200":
description: OK
/test:
get:
operationId: Test
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/notificationtest-getElements-v1-Response-mPayload'
description: Successful response
summary: Retrieve an existing Notificationtest's Elements
components:
requestBodies:
UserArray:
@ -2294,6 +2305,29 @@ components:
- notUnknown
type: string
type: object
Custom-Variableobject-Response:
additionalProperties: true
description: A Variable object without predefined property names
type: object
Field-pkiNotificationtestID:
type: integer
notificationtest-getElements-v1-Response-mPayload:
example:
a_objVariableobject:
- null
- null
pkiNotificationtestID: 0
properties:
pkiNotificationtestID:
type: integer
a_objVariableobject:
items:
$ref: '#/components/schemas/Custom-Variableobject-Response'
type: array
required:
- a_objVariableobject
- pkiNotificationtestID
type: object
_foo_get_default_response:
example:
string:

View File

@ -8,6 +8,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| [**GetCountry**](DefaultApi.md#getcountry) | **POST** /country | |
| [**Hello**](DefaultApi.md#hello) | **GET** /hello | Hello |
| [**RolesReportGet**](DefaultApi.md#rolesreportget) | **GET** /roles/report | |
| [**Test**](DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest&#39;s Elements |
<a id="fooget"></a>
# **FooGet**
@ -342,3 +343,87 @@ No authorization required
[[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)
<a id="test"></a>
# **Test**
> NotificationtestGetElementsV1ResponseMPayload Test ()
Retrieve an existing Notificationtest's Elements
### Example
```csharp
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class TestExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new DefaultApi(config);
try
{
// Retrieve an existing Notificationtest's Elements
NotificationtestGetElementsV1ResponseMPayload result = apiInstance.Test();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.Test: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```
#### Using the TestWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
```csharp
try
{
// Retrieve an existing Notificationtest's Elements
ApiResponse<NotificationtestGetElementsV1ResponseMPayload> response = apiInstance.TestWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.TestWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**NotificationtestGetElementsV1ResponseMPayload**](NotificationtestGetElementsV1ResponseMPayload.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Successful response | - |
[[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)

View File

@ -0,0 +1,11 @@
# Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**PkiNotificationtestID** | **int** | |
**AObjVariableobject** | **List&lt;Dictionary&lt;string, Object&gt;&gt;** | |
[[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

@ -0,0 +1,75 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using Xunit;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Org.OpenAPITools.Model;
using Org.OpenAPITools.Client;
using System.Reflection;
using Newtonsoft.Json;
namespace Org.OpenAPITools.Test.Model
{
/// <summary>
/// Class for testing NotificationtestGetElementsV1ResponseMPayload
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
public class NotificationtestGetElementsV1ResponseMPayloadTests : IDisposable
{
// TODO uncomment below to declare an instance variable for NotificationtestGetElementsV1ResponseMPayload
//private NotificationtestGetElementsV1ResponseMPayload instance;
public NotificationtestGetElementsV1ResponseMPayloadTests()
{
// TODO uncomment below to create an instance of NotificationtestGetElementsV1ResponseMPayload
//instance = new NotificationtestGetElementsV1ResponseMPayload();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of NotificationtestGetElementsV1ResponseMPayload
/// </summary>
[Fact]
public void NotificationtestGetElementsV1ResponseMPayloadInstanceTest()
{
// TODO uncomment below to test "IsType" NotificationtestGetElementsV1ResponseMPayload
//Assert.IsType<NotificationtestGetElementsV1ResponseMPayload>(instance);
}
/// <summary>
/// Test the property 'PkiNotificationtestID'
/// </summary>
[Fact]
public void PkiNotificationtestIDTest()
{
// TODO unit test for the property 'PkiNotificationtestID'
}
/// <summary>
/// Test the property 'AObjVariableobject'
/// </summary>
[Fact]
public void AObjVariableobjectTest()
{
// TODO unit test for the property 'AObjVariableobject'
}
}
}

View File

@ -104,6 +104,24 @@ namespace Org.OpenAPITools.Api
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of List&lt;List&lt;RolesReportsHash&gt;&gt;</returns>
ApiResponse<List<List<RolesReportsHash>>> RolesReportGetWithHttpInfo(int operationIndex = 0);
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>NotificationtestGetElementsV1ResponseMPayload</returns>
NotificationtestGetElementsV1ResponseMPayload Test(int operationIndex = 0);
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of NotificationtestGetElementsV1ResponseMPayload</returns>
ApiResponse<NotificationtestGetElementsV1ResponseMPayload> TestWithHttpInfo(int operationIndex = 0);
#endregion Synchronous Operations
}
@ -207,6 +225,29 @@ namespace Org.OpenAPITools.Api
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (List&lt;List&lt;RolesReportsHash&gt;&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<List<RolesReportsHash>>>> RolesReportGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of NotificationtestGetElementsV1ResponseMPayload</returns>
System.Threading.Tasks.Task<NotificationtestGetElementsV1ResponseMPayload> TestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)</returns>
System.Threading.Tasks.Task<ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
#endregion Asynchronous Operations
}
@ -847,5 +888,131 @@ namespace Org.OpenAPITools.Api
return localVarResponse;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>NotificationtestGetElementsV1ResponseMPayload</returns>
public NotificationtestGetElementsV1ResponseMPayload Test(int operationIndex = 0)
{
Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> localVarResponse = TestWithHttpInfo();
return localVarResponse.Data;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of NotificationtestGetElementsV1ResponseMPayload</returns>
public Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> TestWithHttpInfo(int operationIndex = 0)
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
string[] _contentTypes = new string[] {
};
// to determine the Accept header
string[] _accepts = new string[] {
"application/json"
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
localVarRequestOptions.Operation = "DefaultApi.Test";
localVarRequestOptions.OperationIndex = operationIndex;
// make the HTTP request
var localVarResponse = this.Client.Get<NotificationtestGetElementsV1ResponseMPayload>("/test", localVarRequestOptions, this.Configuration);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("Test", localVarResponse);
if (_exception != null)
{
throw _exception;
}
}
return localVarResponse;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of NotificationtestGetElementsV1ResponseMPayload</returns>
public async System.Threading.Tasks.Task<NotificationtestGetElementsV1ResponseMPayload> TestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> localVarResponse = await TestWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)</returns>
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
string[] _contentTypes = new string[] {
};
// to determine the Accept header
string[] _accepts = new string[] {
"application/json"
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
localVarRequestOptions.Operation = "DefaultApi.Test";
localVarRequestOptions.OperationIndex = operationIndex;
// make the HTTP request
var localVarResponse = await this.AsynchronousClient.GetAsync<NotificationtestGetElementsV1ResponseMPayload>("/test", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("Test", localVarResponse);
if (_exception != null)
{
throw _exception;
}
}
return localVarResponse;
}
}
}

View File

@ -0,0 +1,155 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model
{
/// <summary>
/// NotificationtestGetElementsV1ResponseMPayload
/// </summary>
[DataContract(Name = "notificationtest-getElements-v1-Response-mPayload")]
public partial class NotificationtestGetElementsV1ResponseMPayload : IEquatable<NotificationtestGetElementsV1ResponseMPayload>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="NotificationtestGetElementsV1ResponseMPayload" /> class.
/// </summary>
[JsonConstructorAttribute]
protected NotificationtestGetElementsV1ResponseMPayload()
{
this.AdditionalProperties = new Dictionary<string, object>();
}
/// <summary>
/// Initializes a new instance of the <see cref="NotificationtestGetElementsV1ResponseMPayload" /> class.
/// </summary>
/// <param name="pkiNotificationtestID">pkiNotificationtestID (required).</param>
/// <param name="aObjVariableobject">aObjVariableobject (required).</param>
public NotificationtestGetElementsV1ResponseMPayload(int pkiNotificationtestID = default(int), List<Dictionary<string, Object>> aObjVariableobject = default(List<Dictionary<string, Object>>))
{
this.PkiNotificationtestID = pkiNotificationtestID;
// to ensure "aObjVariableobject" is required (not null)
if (aObjVariableobject == null)
{
throw new ArgumentNullException("aObjVariableobject is a required property for NotificationtestGetElementsV1ResponseMPayload and cannot be null");
}
this.AObjVariableobject = aObjVariableobject;
this.AdditionalProperties = new Dictionary<string, object>();
}
/// <summary>
/// Gets or Sets PkiNotificationtestID
/// </summary>
[DataMember(Name = "pkiNotificationtestID", IsRequired = true, EmitDefaultValue = true)]
public int PkiNotificationtestID { get; set; }
/// <summary>
/// Gets or Sets AObjVariableobject
/// </summary>
[DataMember(Name = "a_objVariableobject", IsRequired = true, EmitDefaultValue = true)]
public List<Dictionary<string, Object>> AObjVariableobject { get; set; }
/// <summary>
/// Gets or Sets additional properties
/// </summary>
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class NotificationtestGetElementsV1ResponseMPayload {\n");
sb.Append(" PkiNotificationtestID: ").Append(PkiNotificationtestID).Append("\n");
sb.Append(" AObjVariableobject: ").Append(AObjVariableobject).Append("\n");
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return OpenAPIClientUtils.compareLogic.Compare(this, input as NotificationtestGetElementsV1ResponseMPayload).AreEqual;
}
/// <summary>
/// Returns true if NotificationtestGetElementsV1ResponseMPayload instances are equal
/// </summary>
/// <param name="input">Instance of NotificationtestGetElementsV1ResponseMPayload to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(NotificationtestGetElementsV1ResponseMPayload input)
{
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
hashCode = (hashCode * 59) + this.PkiNotificationtestID.GetHashCode();
if (this.AObjVariableobject != null)
{
hashCode = (hashCode * 59) + this.AObjVariableobject.GetHashCode();
}
if (this.AdditionalProperties != null)
{
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
}
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}

View File

@ -55,6 +55,7 @@ docs/MixedPropertiesAndAdditionalPropertiesClass.md
docs/Model200Response.md
docs/ModelClient.md
docs/Name.md
docs/NotificationtestGetElementsV1ResponseMPayload.md
docs/NullableClass.md
docs/NullableGuidClass.md
docs/NullableShape.md
@ -174,6 +175,7 @@ src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs
src/Org.OpenAPITools/Model/Name.cs
src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
src/Org.OpenAPITools/Model/NullableClass.cs
src/Org.OpenAPITools/Model/NullableGuidClass.cs
src/Org.OpenAPITools/Model/NullableShape.cs

View File

@ -120,6 +120,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**GetCountry**](docs/DefaultApi.md#getcountry) | **POST** /country |
*DefaultApi* | [**Hello**](docs/DefaultApi.md#hello) | **GET** /hello | Hello
*DefaultApi* | [**RolesReportGet**](docs/DefaultApi.md#rolesreportget) | **GET** /roles/report |
*DefaultApi* | [**Test**](docs/DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements
*FakeApi* | [**FakeHealthGet**](docs/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
*FakeApi* | [**FakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
@ -210,6 +211,7 @@ Class | Method | HTTP request | Description
- [Model.Model200Response](docs/Model200Response.md)
- [Model.ModelClient](docs/ModelClient.md)
- [Model.Name](docs/Name.md)
- [Model.NotificationtestGetElementsV1ResponseMPayload](docs/NotificationtestGetElementsV1ResponseMPayload.md)
- [Model.NullableClass](docs/NullableClass.md)
- [Model.NullableGuidClass](docs/NullableGuidClass.md)
- [Model.NullableShape](docs/NullableShape.md)

View File

@ -1156,6 +1156,17 @@ paths:
responses:
"200":
description: OK
/test:
get:
operationId: Test
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/notificationtest-getElements-v1-Response-mPayload'
description: Successful response
summary: Retrieve an existing Notificationtest's Elements
components:
requestBodies:
UserArray:
@ -2294,6 +2305,29 @@ components:
- notUnknown
type: string
type: object
Custom-Variableobject-Response:
additionalProperties: true
description: A Variable object without predefined property names
type: object
Field-pkiNotificationtestID:
type: integer
notificationtest-getElements-v1-Response-mPayload:
example:
a_objVariableobject:
- null
- null
pkiNotificationtestID: 0
properties:
pkiNotificationtestID:
type: integer
a_objVariableobject:
items:
$ref: '#/components/schemas/Custom-Variableobject-Response'
type: array
required:
- a_objVariableobject
- pkiNotificationtestID
type: object
_foo_get_default_response:
example:
string:

View File

@ -8,6 +8,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| [**GetCountry**](DefaultApi.md#getcountry) | **POST** /country | |
| [**Hello**](DefaultApi.md#hello) | **GET** /hello | Hello |
| [**RolesReportGet**](DefaultApi.md#rolesreportget) | **GET** /roles/report | |
| [**Test**](DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest&#39;s Elements |
<a id="fooget"></a>
# **FooGet**
@ -342,3 +343,87 @@ No authorization required
[[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)
<a id="test"></a>
# **Test**
> NotificationtestGetElementsV1ResponseMPayload Test ()
Retrieve an existing Notificationtest's Elements
### Example
```csharp
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class TestExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new DefaultApi(config);
try
{
// Retrieve an existing Notificationtest's Elements
NotificationtestGetElementsV1ResponseMPayload result = apiInstance.Test();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.Test: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```
#### Using the TestWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
```csharp
try
{
// Retrieve an existing Notificationtest's Elements
ApiResponse<NotificationtestGetElementsV1ResponseMPayload> response = apiInstance.TestWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.TestWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**NotificationtestGetElementsV1ResponseMPayload**](NotificationtestGetElementsV1ResponseMPayload.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Successful response | - |
[[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)

View File

@ -0,0 +1,11 @@
# Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**PkiNotificationtestID** | **int** | |
**AObjVariableobject** | **List&lt;Dictionary&lt;string, Object&gt;&gt;** | |
[[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

@ -0,0 +1,75 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using Xunit;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Org.OpenAPITools.Model;
using Org.OpenAPITools.Client;
using System.Reflection;
using Newtonsoft.Json;
namespace Org.OpenAPITools.Test.Model
{
/// <summary>
/// Class for testing NotificationtestGetElementsV1ResponseMPayload
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
public class NotificationtestGetElementsV1ResponseMPayloadTests : IDisposable
{
// TODO uncomment below to declare an instance variable for NotificationtestGetElementsV1ResponseMPayload
//private NotificationtestGetElementsV1ResponseMPayload instance;
public NotificationtestGetElementsV1ResponseMPayloadTests()
{
// TODO uncomment below to create an instance of NotificationtestGetElementsV1ResponseMPayload
//instance = new NotificationtestGetElementsV1ResponseMPayload();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of NotificationtestGetElementsV1ResponseMPayload
/// </summary>
[Fact]
public void NotificationtestGetElementsV1ResponseMPayloadInstanceTest()
{
// TODO uncomment below to test "IsType" NotificationtestGetElementsV1ResponseMPayload
//Assert.IsType<NotificationtestGetElementsV1ResponseMPayload>(instance);
}
/// <summary>
/// Test the property 'PkiNotificationtestID'
/// </summary>
[Fact]
public void PkiNotificationtestIDTest()
{
// TODO unit test for the property 'PkiNotificationtestID'
}
/// <summary>
/// Test the property 'AObjVariableobject'
/// </summary>
[Fact]
public void AObjVariableobjectTest()
{
// TODO unit test for the property 'AObjVariableobject'
}
}
}

View File

@ -104,6 +104,24 @@ namespace Org.OpenAPITools.Api
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of List&lt;List&lt;RolesReportsHash&gt;&gt;</returns>
ApiResponse<List<List<RolesReportsHash>>> RolesReportGetWithHttpInfo(int operationIndex = 0);
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>NotificationtestGetElementsV1ResponseMPayload</returns>
NotificationtestGetElementsV1ResponseMPayload Test(int operationIndex = 0);
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of NotificationtestGetElementsV1ResponseMPayload</returns>
ApiResponse<NotificationtestGetElementsV1ResponseMPayload> TestWithHttpInfo(int operationIndex = 0);
#endregion Synchronous Operations
}
@ -207,6 +225,29 @@ namespace Org.OpenAPITools.Api
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (List&lt;List&lt;RolesReportsHash&gt;&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<List<RolesReportsHash>>>> RolesReportGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of NotificationtestGetElementsV1ResponseMPayload</returns>
System.Threading.Tasks.Task<NotificationtestGetElementsV1ResponseMPayload> TestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)</returns>
System.Threading.Tasks.Task<ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
#endregion Asynchronous Operations
}
@ -847,5 +888,131 @@ namespace Org.OpenAPITools.Api
return localVarResponse;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>NotificationtestGetElementsV1ResponseMPayload</returns>
public NotificationtestGetElementsV1ResponseMPayload Test(int operationIndex = 0)
{
Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> localVarResponse = TestWithHttpInfo();
return localVarResponse.Data;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of NotificationtestGetElementsV1ResponseMPayload</returns>
public Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> TestWithHttpInfo(int operationIndex = 0)
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
string[] _contentTypes = new string[] {
};
// to determine the Accept header
string[] _accepts = new string[] {
"application/json"
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
localVarRequestOptions.Operation = "DefaultApi.Test";
localVarRequestOptions.OperationIndex = operationIndex;
// make the HTTP request
var localVarResponse = this.Client.Get<NotificationtestGetElementsV1ResponseMPayload>("/test", localVarRequestOptions, this.Configuration);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("Test", localVarResponse);
if (_exception != null)
{
throw _exception;
}
}
return localVarResponse;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of NotificationtestGetElementsV1ResponseMPayload</returns>
public async System.Threading.Tasks.Task<NotificationtestGetElementsV1ResponseMPayload> TestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> localVarResponse = await TestWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)</returns>
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
string[] _contentTypes = new string[] {
};
// to determine the Accept header
string[] _accepts = new string[] {
"application/json"
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
localVarRequestOptions.Operation = "DefaultApi.Test";
localVarRequestOptions.OperationIndex = operationIndex;
// make the HTTP request
var localVarResponse = await this.AsynchronousClient.GetAsync<NotificationtestGetElementsV1ResponseMPayload>("/test", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("Test", localVarResponse);
if (_exception != null)
{
throw _exception;
}
}
return localVarResponse;
}
}
}

View File

@ -0,0 +1,155 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model
{
/// <summary>
/// NotificationtestGetElementsV1ResponseMPayload
/// </summary>
[DataContract(Name = "notificationtest-getElements-v1-Response-mPayload")]
public partial class NotificationtestGetElementsV1ResponseMPayload : IEquatable<NotificationtestGetElementsV1ResponseMPayload>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="NotificationtestGetElementsV1ResponseMPayload" /> class.
/// </summary>
[JsonConstructorAttribute]
protected NotificationtestGetElementsV1ResponseMPayload()
{
this.AdditionalProperties = new Dictionary<string, object>();
}
/// <summary>
/// Initializes a new instance of the <see cref="NotificationtestGetElementsV1ResponseMPayload" /> class.
/// </summary>
/// <param name="pkiNotificationtestID">pkiNotificationtestID (required).</param>
/// <param name="aObjVariableobject">aObjVariableobject (required).</param>
public NotificationtestGetElementsV1ResponseMPayload(int pkiNotificationtestID = default(int), List<Dictionary<string, Object>> aObjVariableobject = default(List<Dictionary<string, Object>>))
{
this.PkiNotificationtestID = pkiNotificationtestID;
// to ensure "aObjVariableobject" is required (not null)
if (aObjVariableobject == null)
{
throw new ArgumentNullException("aObjVariableobject is a required property for NotificationtestGetElementsV1ResponseMPayload and cannot be null");
}
this.AObjVariableobject = aObjVariableobject;
this.AdditionalProperties = new Dictionary<string, object>();
}
/// <summary>
/// Gets or Sets PkiNotificationtestID
/// </summary>
[DataMember(Name = "pkiNotificationtestID", IsRequired = true, EmitDefaultValue = true)]
public int PkiNotificationtestID { get; set; }
/// <summary>
/// Gets or Sets AObjVariableobject
/// </summary>
[DataMember(Name = "a_objVariableobject", IsRequired = true, EmitDefaultValue = true)]
public List<Dictionary<string, Object>> AObjVariableobject { get; set; }
/// <summary>
/// Gets or Sets additional properties
/// </summary>
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class NotificationtestGetElementsV1ResponseMPayload {\n");
sb.Append(" PkiNotificationtestID: ").Append(PkiNotificationtestID).Append("\n");
sb.Append(" AObjVariableobject: ").Append(AObjVariableobject).Append("\n");
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return OpenAPIClientUtils.compareLogic.Compare(this, input as NotificationtestGetElementsV1ResponseMPayload).AreEqual;
}
/// <summary>
/// Returns true if NotificationtestGetElementsV1ResponseMPayload instances are equal
/// </summary>
/// <param name="input">Instance of NotificationtestGetElementsV1ResponseMPayload to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(NotificationtestGetElementsV1ResponseMPayload input)
{
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
hashCode = (hashCode * 59) + this.PkiNotificationtestID.GetHashCode();
if (this.AObjVariableobject != null)
{
hashCode = (hashCode * 59) + this.AObjVariableobject.GetHashCode();
}
if (this.AdditionalProperties != null)
{
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
}
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}

View File

@ -53,6 +53,7 @@ docs/MixedPropertiesAndAdditionalPropertiesClass.md
docs/Model200Response.md
docs/ModelClient.md
docs/Name.md
docs/NotificationtestGetElementsV1ResponseMPayload.md
docs/NullableClass.md
docs/NullableGuidClass.md
docs/NullableShape.md
@ -170,6 +171,7 @@ src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs
src/Org.OpenAPITools/Model/Name.cs
src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
src/Org.OpenAPITools/Model/NullableClass.cs
src/Org.OpenAPITools/Model/NullableGuidClass.cs
src/Org.OpenAPITools/Model/NullableShape.cs

View File

@ -94,6 +94,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**GetCountry**](DefaultApi.md#getcountry) | **POST** /country |
*DefaultApi* | [**Hello**](DefaultApi.md#hello) | **GET** /hello | Hello
*DefaultApi* | [**RolesReportGet**](DefaultApi.md#rolesreportget) | **GET** /roles/report |
*DefaultApi* | [**Test**](DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements
*FakeApi* | [**FakeHealthGet**](FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
*FakeApi* | [**FakeOuterBooleanSerialize**](FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
*FakeApi* | [**FakeOuterCompositeSerialize**](FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
@ -184,6 +185,7 @@ Class | Method | HTTP request | Description
- [Model.Model200Response](Model200Response.md)
- [Model.ModelClient](ModelClient.md)
- [Model.Name](Name.md)
- [Model.NotificationtestGetElementsV1ResponseMPayload](NotificationtestGetElementsV1ResponseMPayload.md)
- [Model.NullableClass](NullableClass.md)
- [Model.NullableGuidClass](NullableGuidClass.md)
- [Model.NullableShape](NullableShape.md)

View File

@ -1156,6 +1156,17 @@ paths:
responses:
"200":
description: OK
/test:
get:
operationId: Test
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/notificationtest-getElements-v1-Response-mPayload'
description: Successful response
summary: Retrieve an existing Notificationtest's Elements
components:
requestBodies:
UserArray:
@ -2294,6 +2305,29 @@ components:
- notUnknown
type: string
type: object
Custom-Variableobject-Response:
additionalProperties: true
description: A Variable object without predefined property names
type: object
Field-pkiNotificationtestID:
type: integer
notificationtest-getElements-v1-Response-mPayload:
example:
a_objVariableobject:
- null
- null
pkiNotificationtestID: 0
properties:
pkiNotificationtestID:
type: integer
a_objVariableobject:
items:
$ref: '#/components/schemas/Custom-Variableobject-Response'
type: array
required:
- a_objVariableobject
- pkiNotificationtestID
type: object
_foo_get_default_response:
example:
string:

View File

@ -8,6 +8,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| [**GetCountry**](DefaultApi.md#getcountry) | **POST** /country | |
| [**Hello**](DefaultApi.md#hello) | **GET** /hello | Hello |
| [**RolesReportGet**](DefaultApi.md#rolesreportget) | **GET** /roles/report | |
| [**Test**](DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest&#39;s Elements |
<a id="fooget"></a>
# **FooGet**
@ -342,3 +343,87 @@ No authorization required
[[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)
<a id="test"></a>
# **Test**
> NotificationtestGetElementsV1ResponseMPayload Test ()
Retrieve an existing Notificationtest's Elements
### Example
```csharp
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class TestExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new DefaultApi(config);
try
{
// Retrieve an existing Notificationtest's Elements
NotificationtestGetElementsV1ResponseMPayload result = apiInstance.Test();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.Test: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```
#### Using the TestWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
```csharp
try
{
// Retrieve an existing Notificationtest's Elements
ApiResponse<NotificationtestGetElementsV1ResponseMPayload> response = apiInstance.TestWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.TestWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**NotificationtestGetElementsV1ResponseMPayload**](NotificationtestGetElementsV1ResponseMPayload.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Successful response | - |
[[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)

View File

@ -0,0 +1,11 @@
# Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**PkiNotificationtestID** | **int** | |
**AObjVariableobject** | **List&lt;Dictionary&lt;string, Object&gt;&gt;** | |
[[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

@ -0,0 +1,74 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Model;
using Org.OpenAPITools.Client;
using System.Reflection;
using Newtonsoft.Json;
using NUnit.Framework;
namespace Org.OpenAPITools.Test.Model
{
/// <summary>
/// Class for testing NotificationtestGetElementsV1ResponseMPayload
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
public class NotificationtestGetElementsV1ResponseMPayloadTests : IDisposable
{
// TODO uncomment below to declare an instance variable for NotificationtestGetElementsV1ResponseMPayload
//private NotificationtestGetElementsV1ResponseMPayload instance;
public NotificationtestGetElementsV1ResponseMPayloadTests()
{
// TODO uncomment below to create an instance of NotificationtestGetElementsV1ResponseMPayload
//instance = new NotificationtestGetElementsV1ResponseMPayload();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of NotificationtestGetElementsV1ResponseMPayload
/// </summary>
[Test]
public void NotificationtestGetElementsV1ResponseMPayloadInstanceTest()
{
// TODO uncomment below to test "IsType" NotificationtestGetElementsV1ResponseMPayload
//Assert.IsType<NotificationtestGetElementsV1ResponseMPayload>(instance);
}
/// <summary>
/// Test the property 'PkiNotificationtestID'
/// </summary>
[Test]
public void PkiNotificationtestIDTest()
{
// TODO unit test for the property 'PkiNotificationtestID'
}
/// <summary>
/// Test the property 'AObjVariableobject'
/// </summary>
[Test]
public void AObjVariableobjectTest()
{
// TODO unit test for the property 'AObjVariableobject'
}
}
}

View File

@ -95,6 +95,22 @@ namespace Org.OpenAPITools.Api
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <returns>ApiResponse of List&lt;List&lt;RolesReportsHash&gt;&gt;</returns>
ApiResponse<List<List<RolesReportsHash>>> RolesReportGetWithHttpInfo();
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <returns>NotificationtestGetElementsV1ResponseMPayload</returns>
NotificationtestGetElementsV1ResponseMPayload Test();
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <returns>ApiResponse of NotificationtestGetElementsV1ResponseMPayload</returns>
ApiResponse<NotificationtestGetElementsV1ResponseMPayload> TestWithHttpInfo();
#endregion Synchronous Operations
}
@ -190,6 +206,27 @@ namespace Org.OpenAPITools.Api
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (List&lt;List&lt;RolesReportsHash&gt;&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<List<RolesReportsHash>>>> RolesReportGetWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of NotificationtestGetElementsV1ResponseMPayload</returns>
System.Threading.Tasks.Task<NotificationtestGetElementsV1ResponseMPayload> TestAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)</returns>
System.Threading.Tasks.Task<ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
#endregion Asynchronous Operations
}
@ -794,5 +831,117 @@ namespace Org.OpenAPITools.Api
return localVarResponse;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <returns>NotificationtestGetElementsV1ResponseMPayload</returns>
public NotificationtestGetElementsV1ResponseMPayload Test()
{
Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> localVarResponse = TestWithHttpInfo();
return localVarResponse.Data;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <returns>ApiResponse of NotificationtestGetElementsV1ResponseMPayload</returns>
public Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> TestWithHttpInfo()
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
string[] _contentTypes = new string[] {
};
// to determine the Accept header
string[] _accepts = new string[] {
"application/json"
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
// make the HTTP request
var localVarResponse = this.Client.Get<NotificationtestGetElementsV1ResponseMPayload>("/test", localVarRequestOptions, this.Configuration);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("Test", localVarResponse);
if (_exception != null) throw _exception;
}
return localVarResponse;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of NotificationtestGetElementsV1ResponseMPayload</returns>
public async System.Threading.Tasks.Task<NotificationtestGetElementsV1ResponseMPayload> TestAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
var task = TestWithHttpInfoAsync(cancellationToken);
#if UNITY_EDITOR || !UNITY_WEBGL
Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> localVarResponse = await task.ConfigureAwait(false);
#else
Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> localVarResponse = await task;
#endif
return localVarResponse.Data;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)</returns>
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
string[] _contentTypes = new string[] {
};
// to determine the Accept header
string[] _accepts = new string[] {
"application/json"
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
// make the HTTP request
var task = this.AsynchronousClient.GetAsync<NotificationtestGetElementsV1ResponseMPayload>("/test", localVarRequestOptions, this.Configuration, cancellationToken);
#if UNITY_EDITOR || !UNITY_WEBGL
var localVarResponse = await task.ConfigureAwait(false);
#else
var localVarResponse = await task;
#endif
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("Test", localVarResponse);
if (_exception != null) throw _exception;
}
return localVarResponse;
}
}
}

View File

@ -0,0 +1,143 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
namespace Org.OpenAPITools.Model
{
/// <summary>
/// NotificationtestGetElementsV1ResponseMPayload
/// </summary>
[DataContract(Name = "notificationtest-getElements-v1-Response-mPayload")]
public partial class NotificationtestGetElementsV1ResponseMPayload : IEquatable<NotificationtestGetElementsV1ResponseMPayload>
{
/// <summary>
/// Initializes a new instance of the <see cref="NotificationtestGetElementsV1ResponseMPayload" /> class.
/// </summary>
[JsonConstructorAttribute]
protected NotificationtestGetElementsV1ResponseMPayload() { }
/// <summary>
/// Initializes a new instance of the <see cref="NotificationtestGetElementsV1ResponseMPayload" /> class.
/// </summary>
/// <param name="pkiNotificationtestID">pkiNotificationtestID (required).</param>
/// <param name="aObjVariableobject">aObjVariableobject (required).</param>
public NotificationtestGetElementsV1ResponseMPayload(int pkiNotificationtestID = default(int), List<Dictionary<string, Object>> aObjVariableobject = default(List<Dictionary<string, Object>>))
{
this.PkiNotificationtestID = pkiNotificationtestID;
// to ensure "aObjVariableobject" is required (not null)
if (aObjVariableobject == null)
{
throw new ArgumentNullException("aObjVariableobject is a required property for NotificationtestGetElementsV1ResponseMPayload and cannot be null");
}
this.AObjVariableobject = aObjVariableobject;
}
/// <summary>
/// Gets or Sets PkiNotificationtestID
/// </summary>
[DataMember(Name = "pkiNotificationtestID", IsRequired = true, EmitDefaultValue = true)]
public int PkiNotificationtestID { get; set; }
/// <summary>
/// Gets or Sets AObjVariableobject
/// </summary>
[DataMember(Name = "a_objVariableobject", IsRequired = true, EmitDefaultValue = true)]
public List<Dictionary<string, Object>> AObjVariableobject { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class NotificationtestGetElementsV1ResponseMPayload {\n");
sb.Append(" PkiNotificationtestID: ").Append(PkiNotificationtestID).Append("\n");
sb.Append(" AObjVariableobject: ").Append(AObjVariableobject).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as NotificationtestGetElementsV1ResponseMPayload);
}
/// <summary>
/// Returns true if NotificationtestGetElementsV1ResponseMPayload instances are equal
/// </summary>
/// <param name="input">Instance of NotificationtestGetElementsV1ResponseMPayload to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(NotificationtestGetElementsV1ResponseMPayload input)
{
if (input == null)
{
return false;
}
return
(
this.PkiNotificationtestID == input.PkiNotificationtestID ||
this.PkiNotificationtestID.Equals(input.PkiNotificationtestID)
) &&
(
this.AObjVariableobject == input.AObjVariableobject ||
this.AObjVariableobject != null &&
input.AObjVariableobject != null &&
this.AObjVariableobject.SequenceEqual(input.AObjVariableobject)
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
hashCode = (hashCode * 59) + this.PkiNotificationtestID.GetHashCode();
if (this.AObjVariableobject != null)
{
hashCode = (hashCode * 59) + this.AObjVariableobject.GetHashCode();
}
return hashCode;
}
}
}
}

View File

@ -55,6 +55,7 @@ docs/MixedPropertiesAndAdditionalPropertiesClass.md
docs/Model200Response.md
docs/ModelClient.md
docs/Name.md
docs/NotificationtestGetElementsV1ResponseMPayload.md
docs/NullableClass.md
docs/NullableGuidClass.md
docs/NullableShape.md
@ -173,6 +174,7 @@ src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs
src/Org.OpenAPITools/Model/Name.cs
src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
src/Org.OpenAPITools/Model/NullableClass.cs
src/Org.OpenAPITools/Model/NullableGuidClass.cs
src/Org.OpenAPITools/Model/NullableShape.cs

View File

@ -108,6 +108,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**GetCountry**](docs/DefaultApi.md#getcountry) | **POST** /country |
*DefaultApi* | [**Hello**](docs/DefaultApi.md#hello) | **GET** /hello | Hello
*DefaultApi* | [**RolesReportGet**](docs/DefaultApi.md#rolesreportget) | **GET** /roles/report |
*DefaultApi* | [**Test**](docs/DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements
*FakeApi* | [**FakeHealthGet**](docs/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
*FakeApi* | [**FakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
@ -198,6 +199,7 @@ Class | Method | HTTP request | Description
- [Model.Model200Response](docs/Model200Response.md)
- [Model.ModelClient](docs/ModelClient.md)
- [Model.Name](docs/Name.md)
- [Model.NotificationtestGetElementsV1ResponseMPayload](docs/NotificationtestGetElementsV1ResponseMPayload.md)
- [Model.NullableClass](docs/NullableClass.md)
- [Model.NullableGuidClass](docs/NullableGuidClass.md)
- [Model.NullableShape](docs/NullableShape.md)

View File

@ -1156,6 +1156,17 @@ paths:
responses:
"200":
description: OK
/test:
get:
operationId: Test
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/notificationtest-getElements-v1-Response-mPayload'
description: Successful response
summary: Retrieve an existing Notificationtest's Elements
components:
requestBodies:
UserArray:
@ -2294,6 +2305,29 @@ components:
- notUnknown
type: string
type: object
Custom-Variableobject-Response:
additionalProperties: true
description: A Variable object without predefined property names
type: object
Field-pkiNotificationtestID:
type: integer
notificationtest-getElements-v1-Response-mPayload:
example:
a_objVariableobject:
- null
- null
pkiNotificationtestID: 0
properties:
pkiNotificationtestID:
type: integer
a_objVariableobject:
items:
$ref: '#/components/schemas/Custom-Variableobject-Response'
type: array
required:
- a_objVariableobject
- pkiNotificationtestID
type: object
_foo_get_default_response:
example:
string:

View File

@ -8,6 +8,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| [**GetCountry**](DefaultApi.md#getcountry) | **POST** /country | |
| [**Hello**](DefaultApi.md#hello) | **GET** /hello | Hello |
| [**RolesReportGet**](DefaultApi.md#rolesreportget) | **GET** /roles/report | |
| [**Test**](DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest&#39;s Elements |
<a id="fooget"></a>
# **FooGet**
@ -342,3 +343,87 @@ No authorization required
[[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)
<a id="test"></a>
# **Test**
> NotificationtestGetElementsV1ResponseMPayload Test ()
Retrieve an existing Notificationtest's Elements
### Example
```csharp
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class TestExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new DefaultApi(config);
try
{
// Retrieve an existing Notificationtest's Elements
NotificationtestGetElementsV1ResponseMPayload result = apiInstance.Test();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.Test: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```
#### Using the TestWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
```csharp
try
{
// Retrieve an existing Notificationtest's Elements
ApiResponse<NotificationtestGetElementsV1ResponseMPayload> response = apiInstance.TestWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.TestWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**NotificationtestGetElementsV1ResponseMPayload**](NotificationtestGetElementsV1ResponseMPayload.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Successful response | - |
[[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)

View File

@ -0,0 +1,11 @@
# Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**PkiNotificationtestID** | **int** | |
**AObjVariableobject** | **List&lt;Dictionary&lt;string, Object&gt;&gt;** | |
[[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

@ -0,0 +1,75 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using Xunit;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Org.OpenAPITools.Model;
using Org.OpenAPITools.Client;
using System.Reflection;
using Newtonsoft.Json;
namespace Org.OpenAPITools.Test.Model
{
/// <summary>
/// Class for testing NotificationtestGetElementsV1ResponseMPayload
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
public class NotificationtestGetElementsV1ResponseMPayloadTests : IDisposable
{
// TODO uncomment below to declare an instance variable for NotificationtestGetElementsV1ResponseMPayload
//private NotificationtestGetElementsV1ResponseMPayload instance;
public NotificationtestGetElementsV1ResponseMPayloadTests()
{
// TODO uncomment below to create an instance of NotificationtestGetElementsV1ResponseMPayload
//instance = new NotificationtestGetElementsV1ResponseMPayload();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of NotificationtestGetElementsV1ResponseMPayload
/// </summary>
[Fact]
public void NotificationtestGetElementsV1ResponseMPayloadInstanceTest()
{
// TODO uncomment below to test "IsType" NotificationtestGetElementsV1ResponseMPayload
//Assert.IsType<NotificationtestGetElementsV1ResponseMPayload>(instance);
}
/// <summary>
/// Test the property 'PkiNotificationtestID'
/// </summary>
[Fact]
public void PkiNotificationtestIDTest()
{
// TODO unit test for the property 'PkiNotificationtestID'
}
/// <summary>
/// Test the property 'AObjVariableobject'
/// </summary>
[Fact]
public void AObjVariableobjectTest()
{
// TODO unit test for the property 'AObjVariableobject'
}
}
}

View File

@ -104,6 +104,24 @@ namespace Org.OpenAPITools.Api
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of List&lt;List&lt;RolesReportsHash&gt;&gt;</returns>
ApiResponse<List<List<RolesReportsHash>>> RolesReportGetWithHttpInfo(int operationIndex = 0);
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>NotificationtestGetElementsV1ResponseMPayload</returns>
NotificationtestGetElementsV1ResponseMPayload Test(int operationIndex = 0);
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of NotificationtestGetElementsV1ResponseMPayload</returns>
ApiResponse<NotificationtestGetElementsV1ResponseMPayload> TestWithHttpInfo(int operationIndex = 0);
#endregion Synchronous Operations
}
@ -207,6 +225,29 @@ namespace Org.OpenAPITools.Api
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (List&lt;List&lt;RolesReportsHash&gt;&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<List<RolesReportsHash>>>> RolesReportGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of NotificationtestGetElementsV1ResponseMPayload</returns>
System.Threading.Tasks.Task<NotificationtestGetElementsV1ResponseMPayload> TestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)</returns>
System.Threading.Tasks.Task<ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
#endregion Asynchronous Operations
}
@ -847,5 +888,131 @@ namespace Org.OpenAPITools.Api
return localVarResponse;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>NotificationtestGetElementsV1ResponseMPayload</returns>
public NotificationtestGetElementsV1ResponseMPayload Test(int operationIndex = 0)
{
Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> localVarResponse = TestWithHttpInfo();
return localVarResponse.Data;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of NotificationtestGetElementsV1ResponseMPayload</returns>
public Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> TestWithHttpInfo(int operationIndex = 0)
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
string[] _contentTypes = new string[] {
};
// to determine the Accept header
string[] _accepts = new string[] {
"application/json"
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
localVarRequestOptions.Operation = "DefaultApi.Test";
localVarRequestOptions.OperationIndex = operationIndex;
// make the HTTP request
var localVarResponse = this.Client.Get<NotificationtestGetElementsV1ResponseMPayload>("/test", localVarRequestOptions, this.Configuration);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("Test", localVarResponse);
if (_exception != null)
{
throw _exception;
}
}
return localVarResponse;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of NotificationtestGetElementsV1ResponseMPayload</returns>
public async System.Threading.Tasks.Task<NotificationtestGetElementsV1ResponseMPayload> TestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> localVarResponse = await TestWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)</returns>
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
string[] _contentTypes = new string[] {
};
// to determine the Accept header
string[] _accepts = new string[] {
"application/json"
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
localVarRequestOptions.Operation = "DefaultApi.Test";
localVarRequestOptions.OperationIndex = operationIndex;
// make the HTTP request
var localVarResponse = await this.AsynchronousClient.GetAsync<NotificationtestGetElementsV1ResponseMPayload>("/test", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("Test", localVarResponse);
if (_exception != null)
{
throw _exception;
}
}
return localVarResponse;
}
}
}

View File

@ -0,0 +1,155 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model
{
/// <summary>
/// NotificationtestGetElementsV1ResponseMPayload
/// </summary>
[DataContract(Name = "notificationtest-getElements-v1-Response-mPayload")]
public partial class NotificationtestGetElementsV1ResponseMPayload : IEquatable<NotificationtestGetElementsV1ResponseMPayload>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="NotificationtestGetElementsV1ResponseMPayload" /> class.
/// </summary>
[JsonConstructorAttribute]
protected NotificationtestGetElementsV1ResponseMPayload()
{
this.AdditionalProperties = new Dictionary<string, object>();
}
/// <summary>
/// Initializes a new instance of the <see cref="NotificationtestGetElementsV1ResponseMPayload" /> class.
/// </summary>
/// <param name="pkiNotificationtestID">pkiNotificationtestID (required).</param>
/// <param name="aObjVariableobject">aObjVariableobject (required).</param>
public NotificationtestGetElementsV1ResponseMPayload(int pkiNotificationtestID = default(int), List<Dictionary<string, Object>> aObjVariableobject = default(List<Dictionary<string, Object>>))
{
this.PkiNotificationtestID = pkiNotificationtestID;
// to ensure "aObjVariableobject" is required (not null)
if (aObjVariableobject == null)
{
throw new ArgumentNullException("aObjVariableobject is a required property for NotificationtestGetElementsV1ResponseMPayload and cannot be null");
}
this.AObjVariableobject = aObjVariableobject;
this.AdditionalProperties = new Dictionary<string, object>();
}
/// <summary>
/// Gets or Sets PkiNotificationtestID
/// </summary>
[DataMember(Name = "pkiNotificationtestID", IsRequired = true, EmitDefaultValue = true)]
public int PkiNotificationtestID { get; set; }
/// <summary>
/// Gets or Sets AObjVariableobject
/// </summary>
[DataMember(Name = "a_objVariableobject", IsRequired = true, EmitDefaultValue = true)]
public List<Dictionary<string, Object>> AObjVariableobject { get; set; }
/// <summary>
/// Gets or Sets additional properties
/// </summary>
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class NotificationtestGetElementsV1ResponseMPayload {\n");
sb.Append(" PkiNotificationtestID: ").Append(PkiNotificationtestID).Append("\n");
sb.Append(" AObjVariableobject: ").Append(AObjVariableobject).Append("\n");
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return OpenAPIClientUtils.compareLogic.Compare(this, input as NotificationtestGetElementsV1ResponseMPayload).AreEqual;
}
/// <summary>
/// Returns true if NotificationtestGetElementsV1ResponseMPayload instances are equal
/// </summary>
/// <param name="input">Instance of NotificationtestGetElementsV1ResponseMPayload to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(NotificationtestGetElementsV1ResponseMPayload input)
{
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
hashCode = (hashCode * 59) + this.PkiNotificationtestID.GetHashCode();
if (this.AObjVariableobject != null)
{
hashCode = (hashCode * 59) + this.AObjVariableobject.GetHashCode();
}
if (this.AdditionalProperties != null)
{
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
}
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}

View File

@ -55,6 +55,7 @@ docs/MixedPropertiesAndAdditionalPropertiesClass.md
docs/Model200Response.md
docs/ModelClient.md
docs/Name.md
docs/NotificationtestGetElementsV1ResponseMPayload.md
docs/NullableClass.md
docs/NullableGuidClass.md
docs/NullableShape.md
@ -173,6 +174,7 @@ src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs
src/Org.OpenAPITools/Model/Name.cs
src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
src/Org.OpenAPITools/Model/NullableClass.cs
src/Org.OpenAPITools/Model/NullableGuidClass.cs
src/Org.OpenAPITools/Model/NullableShape.cs

View File

@ -120,6 +120,7 @@ Class | Method | HTTP request | Description
*DefaultApi* | [**GetCountry**](docs/DefaultApi.md#getcountry) | **POST** /country |
*DefaultApi* | [**Hello**](docs/DefaultApi.md#hello) | **GET** /hello | Hello
*DefaultApi* | [**RolesReportGet**](docs/DefaultApi.md#rolesreportget) | **GET** /roles/report |
*DefaultApi* | [**Test**](docs/DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest's Elements
*FakeApi* | [**FakeHealthGet**](docs/FakeApi.md#fakehealthget) | **GET** /fake/health | Health check endpoint
*FakeApi* | [**FakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
@ -210,6 +211,7 @@ Class | Method | HTTP request | Description
- [Model.Model200Response](docs/Model200Response.md)
- [Model.ModelClient](docs/ModelClient.md)
- [Model.Name](docs/Name.md)
- [Model.NotificationtestGetElementsV1ResponseMPayload](docs/NotificationtestGetElementsV1ResponseMPayload.md)
- [Model.NullableClass](docs/NullableClass.md)
- [Model.NullableGuidClass](docs/NullableGuidClass.md)
- [Model.NullableShape](docs/NullableShape.md)

View File

@ -1156,6 +1156,17 @@ paths:
responses:
"200":
description: OK
/test:
get:
operationId: Test
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/notificationtest-getElements-v1-Response-mPayload'
description: Successful response
summary: Retrieve an existing Notificationtest's Elements
components:
requestBodies:
UserArray:
@ -2294,6 +2305,29 @@ components:
- notUnknown
type: string
type: object
Custom-Variableobject-Response:
additionalProperties: true
description: A Variable object without predefined property names
type: object
Field-pkiNotificationtestID:
type: integer
notificationtest-getElements-v1-Response-mPayload:
example:
a_objVariableobject:
- null
- null
pkiNotificationtestID: 0
properties:
pkiNotificationtestID:
type: integer
a_objVariableobject:
items:
$ref: '#/components/schemas/Custom-Variableobject-Response'
type: array
required:
- a_objVariableobject
- pkiNotificationtestID
type: object
_foo_get_default_response:
example:
string:

View File

@ -8,6 +8,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| [**GetCountry**](DefaultApi.md#getcountry) | **POST** /country | |
| [**Hello**](DefaultApi.md#hello) | **GET** /hello | Hello |
| [**RolesReportGet**](DefaultApi.md#rolesreportget) | **GET** /roles/report | |
| [**Test**](DefaultApi.md#test) | **GET** /test | Retrieve an existing Notificationtest&#39;s Elements |
<a id="fooget"></a>
# **FooGet**
@ -342,3 +343,87 @@ No authorization required
[[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)
<a id="test"></a>
# **Test**
> NotificationtestGetElementsV1ResponseMPayload Test ()
Retrieve an existing Notificationtest's Elements
### Example
```csharp
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class TestExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "http://petstore.swagger.io:80/v2";
var apiInstance = new DefaultApi(config);
try
{
// Retrieve an existing Notificationtest's Elements
NotificationtestGetElementsV1ResponseMPayload result = apiInstance.Test();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.Test: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```
#### Using the TestWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
```csharp
try
{
// Retrieve an existing Notificationtest's Elements
ApiResponse<NotificationtestGetElementsV1ResponseMPayload> response = apiInstance.TestWithHttpInfo();
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling DefaultApi.TestWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
```
### Parameters
This endpoint does not need any parameter.
### Return type
[**NotificationtestGetElementsV1ResponseMPayload**](NotificationtestGetElementsV1ResponseMPayload.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Successful response | - |
[[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)

View File

@ -0,0 +1,11 @@
# Org.OpenAPITools.Model.NotificationtestGetElementsV1ResponseMPayload
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**PkiNotificationtestID** | **int** | |
**AObjVariableobject** | **List&lt;Dictionary&lt;string, Object&gt;&gt;** | |
[[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

@ -0,0 +1,75 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using Xunit;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Org.OpenAPITools.Model;
using Org.OpenAPITools.Client;
using System.Reflection;
using Newtonsoft.Json;
namespace Org.OpenAPITools.Test.Model
{
/// <summary>
/// Class for testing NotificationtestGetElementsV1ResponseMPayload
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
public class NotificationtestGetElementsV1ResponseMPayloadTests : IDisposable
{
// TODO uncomment below to declare an instance variable for NotificationtestGetElementsV1ResponseMPayload
//private NotificationtestGetElementsV1ResponseMPayload instance;
public NotificationtestGetElementsV1ResponseMPayloadTests()
{
// TODO uncomment below to create an instance of NotificationtestGetElementsV1ResponseMPayload
//instance = new NotificationtestGetElementsV1ResponseMPayload();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of NotificationtestGetElementsV1ResponseMPayload
/// </summary>
[Fact]
public void NotificationtestGetElementsV1ResponseMPayloadInstanceTest()
{
// TODO uncomment below to test "IsType" NotificationtestGetElementsV1ResponseMPayload
//Assert.IsType<NotificationtestGetElementsV1ResponseMPayload>(instance);
}
/// <summary>
/// Test the property 'PkiNotificationtestID'
/// </summary>
[Fact]
public void PkiNotificationtestIDTest()
{
// TODO unit test for the property 'PkiNotificationtestID'
}
/// <summary>
/// Test the property 'AObjVariableobject'
/// </summary>
[Fact]
public void AObjVariableobjectTest()
{
// TODO unit test for the property 'AObjVariableobject'
}
}
}

View File

@ -104,6 +104,24 @@ namespace Org.OpenAPITools.Api
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of List&lt;List&lt;RolesReportsHash&gt;&gt;</returns>
ApiResponse<List<List<RolesReportsHash>>> RolesReportGetWithHttpInfo(int operationIndex = 0);
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>NotificationtestGetElementsV1ResponseMPayload</returns>
NotificationtestGetElementsV1ResponseMPayload Test(int operationIndex = 0);
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of NotificationtestGetElementsV1ResponseMPayload</returns>
ApiResponse<NotificationtestGetElementsV1ResponseMPayload> TestWithHttpInfo(int operationIndex = 0);
#endregion Synchronous Operations
}
@ -207,6 +225,29 @@ namespace Org.OpenAPITools.Api
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (List&lt;List&lt;RolesReportsHash&gt;&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<List<RolesReportsHash>>>> RolesReportGetWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of NotificationtestGetElementsV1ResponseMPayload</returns>
System.Threading.Tasks.Task<NotificationtestGetElementsV1ResponseMPayload> TestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <remarks>
///
/// </remarks>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)</returns>
System.Threading.Tasks.Task<ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
#endregion Asynchronous Operations
}
@ -847,5 +888,131 @@ namespace Org.OpenAPITools.Api
return localVarResponse;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>NotificationtestGetElementsV1ResponseMPayload</returns>
public NotificationtestGetElementsV1ResponseMPayload Test(int operationIndex = 0)
{
Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> localVarResponse = TestWithHttpInfo();
return localVarResponse.Data;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <returns>ApiResponse of NotificationtestGetElementsV1ResponseMPayload</returns>
public Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> TestWithHttpInfo(int operationIndex = 0)
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
string[] _contentTypes = new string[] {
};
// to determine the Accept header
string[] _accepts = new string[] {
"application/json"
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
localVarRequestOptions.Operation = "DefaultApi.Test";
localVarRequestOptions.OperationIndex = operationIndex;
// make the HTTP request
var localVarResponse = this.Client.Get<NotificationtestGetElementsV1ResponseMPayload>("/test", localVarRequestOptions, this.Configuration);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("Test", localVarResponse);
if (_exception != null)
{
throw _exception;
}
}
return localVarResponse;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of NotificationtestGetElementsV1ResponseMPayload</returns>
public async System.Threading.Tasks.Task<NotificationtestGetElementsV1ResponseMPayload> TestAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload> localVarResponse = await TestWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false);
return localVarResponse.Data;
}
/// <summary>
/// Retrieve an existing Notificationtest&#39;s Elements
/// </summary>
/// <exception cref="Org.OpenAPITools.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="operationIndex">Index associated with the operation.</param>
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
/// <returns>Task of ApiResponse (NotificationtestGetElementsV1ResponseMPayload)</returns>
public async System.Threading.Tasks.Task<Org.OpenAPITools.Client.ApiResponse<NotificationtestGetElementsV1ResponseMPayload>> TestWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
{
Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions();
string[] _contentTypes = new string[] {
};
// to determine the Accept header
string[] _accepts = new string[] {
"application/json"
};
var localVarContentType = Org.OpenAPITools.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
if (localVarContentType != null)
{
localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
}
var localVarAccept = Org.OpenAPITools.Client.ClientUtils.SelectHeaderAccept(_accepts);
if (localVarAccept != null)
{
localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
}
localVarRequestOptions.Operation = "DefaultApi.Test";
localVarRequestOptions.OperationIndex = operationIndex;
// make the HTTP request
var localVarResponse = await this.AsynchronousClient.GetAsync<NotificationtestGetElementsV1ResponseMPayload>("/test", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
if (this.ExceptionFactory != null)
{
Exception _exception = this.ExceptionFactory("Test", localVarResponse);
if (_exception != null)
{
throw _exception;
}
}
return localVarResponse;
}
}
}

View File

@ -0,0 +1,140 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model
{
/// <summary>
/// NotificationtestGetElementsV1ResponseMPayload
/// </summary>
[DataContract(Name = "notificationtest-getElements-v1-Response-mPayload")]
public partial class NotificationtestGetElementsV1ResponseMPayload : IEquatable<NotificationtestGetElementsV1ResponseMPayload>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="NotificationtestGetElementsV1ResponseMPayload" /> class.
/// </summary>
[JsonConstructorAttribute]
protected NotificationtestGetElementsV1ResponseMPayload() { }
/// <summary>
/// Initializes a new instance of the <see cref="NotificationtestGetElementsV1ResponseMPayload" /> class.
/// </summary>
/// <param name="pkiNotificationtestID">pkiNotificationtestID (required).</param>
/// <param name="aObjVariableobject">aObjVariableobject (required).</param>
public NotificationtestGetElementsV1ResponseMPayload(int pkiNotificationtestID = default(int), List<Dictionary<string, Object>> aObjVariableobject = default(List<Dictionary<string, Object>>))
{
this.PkiNotificationtestID = pkiNotificationtestID;
// to ensure "aObjVariableobject" is required (not null)
if (aObjVariableobject == null)
{
throw new ArgumentNullException("aObjVariableobject is a required property for NotificationtestGetElementsV1ResponseMPayload and cannot be null");
}
this.AObjVariableobject = aObjVariableobject;
}
/// <summary>
/// Gets or Sets PkiNotificationtestID
/// </summary>
[DataMember(Name = "pkiNotificationtestID", IsRequired = true, EmitDefaultValue = true)]
public int PkiNotificationtestID { get; set; }
/// <summary>
/// Gets or Sets AObjVariableobject
/// </summary>
[DataMember(Name = "a_objVariableobject", IsRequired = true, EmitDefaultValue = true)]
public List<Dictionary<string, Object>> AObjVariableobject { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class NotificationtestGetElementsV1ResponseMPayload {\n");
sb.Append(" PkiNotificationtestID: ").Append(PkiNotificationtestID).Append("\n");
sb.Append(" AObjVariableobject: ").Append(AObjVariableobject).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return OpenAPIClientUtils.compareLogic.Compare(this, input as NotificationtestGetElementsV1ResponseMPayload).AreEqual;
}
/// <summary>
/// Returns true if NotificationtestGetElementsV1ResponseMPayload instances are equal
/// </summary>
/// <param name="input">Instance of NotificationtestGetElementsV1ResponseMPayload to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(NotificationtestGetElementsV1ResponseMPayload input)
{
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
hashCode = (hashCode * 59) + this.PkiNotificationtestID.GetHashCode();
if (this.AObjVariableobject != null)
{
hashCode = (hashCode * 59) + this.AObjVariableobject.GetHashCode();
}
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}