diff --git a/.github/.test/samples.json b/.github/.test/samples.json
index 86f0d8d410e..835338ead6b 100644
--- a/.github/.test/samples.json
+++ b/.github/.test/samples.json
@@ -91,12 +91,6 @@
"Client: C++"
]
},
- {
- "input": "csharp-dotnet2-petstore.sh",
- "matches": [
- "Client: C-Sharp"
- ]
- },
{
"input": "csharp-petstore-net-35.sh",
"matches": [
diff --git a/.github/auto-labeler.yml b/.github/auto-labeler.yml
index 1cc6d47e68e..8f47eed6438 100644
--- a/.github/auto-labeler.yml
+++ b/.github/auto-labeler.yml
@@ -34,7 +34,6 @@ labels:
'Client: C-Sharp':
- '\s*?-[gl] csharp(?!-)\b'
- '\s*?[cC]-[sS]harp [cC]lient\s*?'
- - '\s*?-[gl] csharp-dotnet2\s*?'
- '\s*?-[gl] csharp-refactor?\s*?'
- '\s*?\[[Cc]#\]'
- '\s*?\[csharp\]\s*?'
diff --git a/bin/csharp-dotnet2-petstore.sh b/bin/csharp-dotnet2-petstore.sh
deleted file mode 100755
index d3641ed1ce5..00000000000
--- a/bin/csharp-dotnet2-petstore.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-
-SCRIPT="$0"
-echo "# START SCRIPT: $SCRIPT"
-
-while [ -h "$SCRIPT" ] ; do
- ls=`ls -ld "$SCRIPT"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '/.*' > /dev/null; then
- SCRIPT="$link"
- else
- SCRIPT=`dirname "$SCRIPT"`/"$link"
- fi
-done
-
-if [ ! -d "${APP_DIR}" ]; then
- APP_DIR=`dirname "$SCRIPT"`/..
- APP_DIR=`cd "${APP_DIR}"; pwd`
-fi
-
-executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
-
-if [ ! -f "$executable" ]
-then
- mvn -B clean package
-fi
-
-# if you've executed sbt assembly previously it will use that instead.
-export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
-ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g csharp-dotnet2 -o samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient --additional-properties hideGenerationTimestamp=true $@"
-
-java $JAVA_OPTS -jar $executable $ags
diff --git a/bin/openapi3/csharp-dotnet2-petstore.sh b/bin/openapi3/csharp-dotnet2-petstore.sh
deleted file mode 100755
index 7b0aa62696e..00000000000
--- a/bin/openapi3/csharp-dotnet2-petstore.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-
-SCRIPT="$0"
-echo "# START SCRIPT: $SCRIPT"
-
-while [ -h "$SCRIPT" ] ; do
- ls=`ls -ld "$SCRIPT"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '/.*' > /dev/null; then
- SCRIPT="$link"
- else
- SCRIPT=`dirname "$SCRIPT"`/"$link"
- fi
-done
-
-if [ ! -d "${APP_DIR}" ]; then
- APP_DIR=`dirname "$SCRIPT"`/..
- APP_DIR=`cd "${APP_DIR}"; pwd`
-fi
-
-executable="./modules/openapi-generator-cli/target/openapi-generator-cli.jar"
-
-if [ ! -f "$executable" ]
-then
- mvn clean package
-fi
-
-# if you've executed sbt assembly previously it will use that instead.
-export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
-ags="generate -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g csharp-dotnet2 -o samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient --additional-properties hideGenerationTimestamp=true $@"
-
-java $JAVA_OPTS -jar $executable $ags
diff --git a/bin/windows/csharp-dotnet2-petstore.bat b/bin/windows/csharp-dotnet2-petstore.bat
deleted file mode 100755
index ec36de485a0..00000000000
--- a/bin/windows/csharp-dotnet2-petstore.bat
+++ /dev/null
@@ -1,10 +0,0 @@
-set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar
-
-If Not Exist %executable% (
- mvn clean package
-)
-
-REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M
-set ags=generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g csharp-dotnet2 -o samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient --additional-properties hideGenerationTimestamp=true
-
-java %JAVA_OPTS% -jar %executable% %ags%
diff --git a/bin/windows/csharp-petstore-all.bat b/bin/windows/csharp-petstore-all.bat
index 20808357fa5..3024ffbe1f1 100755
--- a/bin/windows/csharp-petstore-all.bat
+++ b/bin/windows/csharp-petstore-all.bat
@@ -7,8 +7,6 @@ call .\bin\windows\csharp-property-changed-petstore.bat
REM C# Petstore API client (v5.0 for .net standarnd 1.3+)
call .\bin\windows\csharp-petstore-netstandard.bat
-call .\bin\windows\csharp-dotnet2-petstore.bat
-
call .\bin\windows\csharp-petstore-netcore-project.bat
call .\bin\windows\csharp-property-changed-petstore.bat
diff --git a/docs/generators.md b/docs/generators.md
index aae6c610bb0..62e27e6c934 100644
--- a/docs/generators.md
+++ b/docs/generators.md
@@ -16,7 +16,6 @@ The following generators are available:
- [cpp-restsdk](generators/cpp-restsdk.md)
- [cpp-tizen](generators/cpp-tizen.md)
- [csharp](generators/csharp.md)
- - [csharp-dotnet2](generators/csharp-dotnet2.md)
- [csharp-netcore](generators/csharp-netcore.md)
- [dart](generators/dart.md)
- [dart-jaguar](generators/dart-jaguar.md)
diff --git a/docs/generators/README.md b/docs/generators/README.md
index 6c3328cc072..02a6006a3a3 100644
--- a/docs/generators/README.md
+++ b/docs/generators/README.md
@@ -11,7 +11,6 @@ The following generators are available:
- [cpp-restsdk](cpp-restsdk.md)
- [cpp-tizen](cpp-tizen.md)
- [csharp](csharp.md)
- - [csharp-dotnet2](csharp-dotnet2.md)
- [csharp-refactor](csharp-refactor.md)
- [dart](dart.md)
- [dart-jaguar](dart-jaguar.md)
diff --git a/docs/generators/csharp-dotnet2.md b/docs/generators/csharp-dotnet2.md
deleted file mode 100644
index 319b2b190f5..00000000000
--- a/docs/generators/csharp-dotnet2.md
+++ /dev/null
@@ -1,12 +0,0 @@
-
----
-id: generator-opts-client-csharp-dotnet2
-title: Config Options for csharp-dotnet2
-sidebar_label: csharp-dotnet2
----
-
-| Option | Description | Values | Default |
-| ------ | ----------- | ------ | ------- |
-|packageName|C# package name (convention: Camel.Case).| |Org.OpenAPITools|
-|packageVersion|C# package version.| |1.0.0|
-|clientPackage|C# client package name (convention: Camel.Case).| |Org.OpenAPITools.Client|
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpDotNet2ClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpDotNet2ClientCodegen.java
deleted file mode 100644
index 94ea8a12a6b..00000000000
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpDotNet2ClientCodegen.java
+++ /dev/null
@@ -1,144 +0,0 @@
-/*
- * Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech)
- * Copyright 2018 SmartBear Software
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.openapitools.codegen.languages;
-
-import org.openapitools.codegen.CliOption;
-import org.openapitools.codegen.CodegenConstants;
-import org.openapitools.codegen.CodegenType;
-import org.openapitools.codegen.SupportingFile;
-
-import java.io.File;
-
-public class CSharpDotNet2ClientCodegen extends AbstractCSharpCodegen {
- public static final String CLIENT_PACKAGE = "clientPackage";
- protected String clientPackage = "Org.OpenAPITools.Client";
- protected String apiDocPath = "docs/";
- protected String modelDocPath = "docs/";
-
- public CSharpDotNet2ClientCodegen() {
- super();
-
- // clear import mapping (from default generator) as C# (2.0) does not use it
- // at the moment
- importMapping.clear();
-
- modelTemplateFiles.put("model.mustache", ".cs");
- apiTemplateFiles.put("api.mustache", ".cs");
-
- setApiPackage(packageName + ".Api");
- setModelPackage(packageName + ".Model");
- setClientPackage(packageName + ".Client");
- setSourceFolder("src" + File.separator + "main" + File.separator + "CsharpDotNet2");
-
- modelDocTemplateFiles.put("model_doc.mustache", ".md");
- apiDocTemplateFiles.put("api_doc.mustache", ".md");
-
- cliOptions.clear();
- cliOptions.add(new CliOption(CodegenConstants.PACKAGE_NAME,
- "C# package name (convention: Camel.Case).")
- .defaultValue(packageName));
- cliOptions.add(new CliOption(CodegenConstants.PACKAGE_VERSION,
- "C# package version.")
- .defaultValue(packageVersion));
- cliOptions.add(new CliOption(CLIENT_PACKAGE,
- "C# client package name (convention: Camel.Case).")
- .defaultValue(clientPackage));
- }
-
- @Override
- public void processOpts() {
- super.processOpts();
-
- if (additionalProperties.containsKey(CLIENT_PACKAGE)) {
- setClientPackage((String) additionalProperties.get(CLIENT_PACKAGE));
- } else {
- additionalProperties.put(CLIENT_PACKAGE, getClientPackage());
- }
-
- final String clientPackage = getClientPackage();
- final String clientPackagePath = clientPackage.replace(".", java.io.File.separator);
-
- additionalProperties.put("apiDocPath", apiDocPath);
- additionalProperties.put("modelDocPath", modelDocPath);
-
- supportingFiles.add(new SupportingFile("Configuration.mustache",
- sourceFolder + File.separator + clientPackagePath, "Configuration.cs"));
- supportingFiles.add(new SupportingFile("ApiClient.mustache",
- sourceFolder + File.separator + clientPackagePath, "ApiClient.cs"));
- supportingFiles.add(new SupportingFile("ApiException.mustache",
- sourceFolder + File.separator + clientPackagePath, "ApiException.cs"));
- supportingFiles.add(new SupportingFile("packages.config.mustache", "vendor", "packages.config"));
- supportingFiles.add(new SupportingFile("compile-mono.sh.mustache", "", "compile-mono.sh"));
- supportingFiles.add(new SupportingFile("README.mustache", "", "README.md"));
-
- }
-
- @Override
- public String apiPackage() {
- return packageName + ".Api";
- }
-
- @Override
- public String modelPackage() {
- return packageName + ".Model";
- }
-
- public String getClientPackage() {
- return clientPackage;
- }
-
- public void setClientPackage(String clientPackage) {
- this.clientPackage = clientPackage;
- }
-
- @Override
- public CodegenType getTag() {
- return CodegenType.CLIENT;
- }
-
- @Override
- public String getName() {
- return "csharp-dotnet2";
- }
-
- @Override
- public String getHelp() {
- return "Generates a C# .Net 2.0 client library (beta).";
- }
-
- @Override
- public String apiFileFolder() {
- return outputFolder + File.separator + sourceFolder + File.separator + apiPackage().replace('.', File.separatorChar);
- }
-
- @Override
- public String modelFileFolder() {
- return outputFolder + File.separator + sourceFolder + File.separator + modelPackage().replace('.', File.separatorChar);
- }
-
- @Override
- public String apiDocFileFolder() {
- return outputFolder + File.separator + apiDocPath.replace('/', File.separatorChar);
- }
-
- @Override
- public String modelDocFileFolder() {
- return outputFolder + File.separator + modelDocPath.replace('/', File.separatorChar);
- }
-
-}
diff --git a/modules/openapi-generator/src/main/resources/META-INF/services/org.openapitools.codegen.CodegenConfig b/modules/openapi-generator/src/main/resources/META-INF/services/org.openapitools.codegen.CodegenConfig
index 24b65ad72c3..72b9b5d095a 100644
--- a/modules/openapi-generator/src/main/resources/META-INF/services/org.openapitools.codegen.CodegenConfig
+++ b/modules/openapi-generator/src/main/resources/META-INF/services/org.openapitools.codegen.CodegenConfig
@@ -16,7 +16,6 @@ org.openapitools.codegen.languages.CppRestSdkClientCodegen
org.openapitools.codegen.languages.CppTizenClientCodegen
org.openapitools.codegen.languages.CSharpClientCodegen
org.openapitools.codegen.languages.CSharpNetCoreClientCodegen
-org.openapitools.codegen.languages.CSharpDotNet2ClientCodegen
org.openapitools.codegen.languages.CSharpNancyFXServerCodegen
org.openapitools.codegen.languages.DartClientCodegen
org.openapitools.codegen.languages.DartJaguarClientCodegen
diff --git a/modules/openapi-generator/src/main/resources/csharp-dotnet2/ApiClient.mustache b/modules/openapi-generator/src/main/resources/csharp-dotnet2/ApiClient.mustache
deleted file mode 100644
index 4c8d13c5a99..00000000000
--- a/modules/openapi-generator/src/main/resources/csharp-dotnet2/ApiClient.mustache
+++ /dev/null
@@ -1,295 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Text.RegularExpressions;
-using System.IO;
-using System.Web;
-using System.Linq;
-using System.Net;
-using System.Text;
-using Newtonsoft.Json;
-using RestSharp;
-using RestSharp.Extensions;
-
-namespace {{clientPackage}}
-{
- ///
- /// API client is mainly responible for making the HTTP call to the API backend.
- ///
- public class ApiClient
- {
- private readonly Dictionary _defaultHeaderMap = new Dictionary();
-
- ///
- /// Initializes a new instance of the class.
- ///
- /// The base path.
- public ApiClient(String basePath="{{{basePath}}}")
- {
- BasePath = basePath;
- RestClient = new RestClient(BasePath);
- }
-
- ///
- /// Gets or sets the base path.
- ///
- /// The base path
- public string BasePath { get; set; }
-
- ///
- /// Gets or sets the RestClient.
- ///
- /// An instance of the RestClient
- public RestClient RestClient { get; set; }
-
- ///
- /// Gets the default header.
- ///
- public Dictionary DefaultHeader
- {
- get { return _defaultHeaderMap; }
- }
-
- ///
- /// Makes the HTTP request (Sync).
- ///
- /// URL path.
- /// HTTP method.
- /// Query parameters.
- /// HTTP body (POST request).
- /// Header parameters.
- /// Form parameters.
- /// File parameters.
- /// Authentication settings.
- /// Object
- public Object CallApi(String path, RestSharp.Method method, Dictionary queryParams, String postBody,
- Dictionary headerParams, Dictionary formParams,
- Dictionary fileParams, String[] authSettings)
- {
-
- var request = new RestRequest(path, method);
-
- UpdateParamsForAuth(queryParams, headerParams, authSettings);
-
- // add default header, if any
- foreach(var defaultHeader in _defaultHeaderMap)
- request.AddHeader(defaultHeader.Key, defaultHeader.Value);
-
- // add header parameter, if any
- foreach(var param in headerParams)
- request.AddHeader(param.Key, param.Value);
-
- // add query parameter, if any
- foreach(var param in queryParams)
- request.AddParameter(param.Key, param.Value, ParameterType.GetOrPost);
-
- // add form parameter, if any
- foreach(var param in formParams)
- request.AddParameter(param.Key, param.Value, ParameterType.GetOrPost);
-
- // add file parameter, if any
- foreach(var param in fileParams)
- request.AddFile(param.Value.Name, param.Value.Writer, param.Value.FileName, param.Value.ContentType);
-
- if (postBody != null) // http body (model) parameter
- request.AddParameter("application/json", postBody, ParameterType.RequestBody);
-
- return (Object)RestClient.Execute(request);
-
- }
-
- ///
- /// Add default header.
- ///
- /// Header field name.
- /// Header field value.
- ///
- public void AddDefaultHeader(string key, string value)
- {
- _defaultHeaderMap.Add(key, value);
- }
-
- ///
- /// Escape string (url-encoded).
- ///
- /// String to be escaped.
- /// Escaped string.
- public string EscapeString(string str)
- {
- return RestSharp.Contrib.HttpUtility.UrlEncode(str);
- }
-
- ///
- /// Create FileParameter based on Stream.
- ///
- /// Parameter name.
- /// Input stream.
- /// FileParameter.
- public FileParameter ParameterToFile(string name, Stream stream)
- {
- if (stream is FileStream)
- return FileParameter.Create(name, stream.ReadAsBytes(), Path.GetFileName(((FileStream)stream).Name));
- else
- return FileParameter.Create(name, stream.ReadAsBytes(), "no_file_name_provided");
- }
-
- ///
- /// If parameter is DateTime, output in a formatted string (default ISO 8601), customizable with Configuration.DateTime.
- /// If parameter is a list of string, join the list with ",".
- /// Otherwise just return the string.
- ///
- /// The parameter (header, path, query, form).
- /// Formatted string.
- public string ParameterToString(object obj)
- {
- if (obj is DateTime)
- // Return a formatted date string - Can be customized with Configuration.DateTimeFormat
- // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o")
- // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8
- // For example: 2009-06-15T13:45:30.0000000
- return ((DateTime)obj).ToString (Configuration.DateTimeFormat);
- else if (obj is List)
- return String.Join(",", (obj as List).ToArray());
- else
- return Convert.ToString (obj);
- }
-
- ///
- /// Deserialize the JSON string into a proper object.
- ///
- /// HTTP body (e.g. string, JSON).
- /// Object type.
- /// HTTP headers.
- /// Object representation of the JSON string.
- public object Deserialize(string content, Type type, IList headers=null)
- {
- if (type == typeof(Object)) // return an object
- {
- return content;
- }
-
- if (type == typeof(Stream))
- {
- var filePath = String.IsNullOrEmpty(Configuration.TempFolderPath)
- ? Path.GetTempPath()
- : Configuration.TempFolderPath;
-
- var fileName = filePath + Guid.NewGuid();
- if (headers != null)
- {
- var regex = new Regex(@"Content-Disposition:.*filename=['""]?([^'""\s]+)['""]?$");
- var match = regex.Match(headers.ToString());
- if (match.Success)
- fileName = filePath + match.Value.Replace("\"", "").Replace("'", "");
- }
- File.WriteAllText(fileName, content);
- return new FileStream(fileName, FileMode.Open);
-
- }
-
- if (type.Name.StartsWith("System.Nullable`1[[System.DateTime")) // return a datetime object
- {
- return DateTime.Parse(content, null, System.Globalization.DateTimeStyles.RoundtripKind);
- }
-
- if (type == typeof(String) || type.Name.StartsWith("System.Nullable")) // return primitive type
- {
- return ConvertType(content, type);
- }
-
- // at this point, it must be a model (json)
- try
- {
- return JsonConvert.DeserializeObject(content, type);
- }
- catch (IOException e)
- {
- throw new ApiException(500, e.Message);
- }
- }
-
- ///
- /// Serialize an object into JSON string.
- ///
- /// Object.
- /// JSON string.
- public string Serialize(object obj)
- {
- try
- {
- return obj != null ? JsonConvert.SerializeObject(obj) : null;
- }
- catch (Exception e)
- {
- throw new ApiException(500, e.Message);
- }
- }
-
- ///
- /// Get the API key with prefix.
- ///
- /// API key identifier (authentication scheme).
- /// API key with prefix.
- public string GetApiKeyWithPrefix (string apiKeyIdentifier)
- {
- var apiKeyValue = "";
- Configuration.ApiKey.TryGetValue (apiKeyIdentifier, out apiKeyValue);
- var apiKeyPrefix = "";
- if (Configuration.ApiKeyPrefix.TryGetValue (apiKeyIdentifier, out apiKeyPrefix))
- return apiKeyPrefix + " " + apiKeyValue;
- else
- return apiKeyValue;
- }
-
- ///
- /// Update parameters based on authentication.
- ///
- /// Query parameters.
- /// Header parameters.
- /// Authentication settings.
- public void UpdateParamsForAuth(Dictionary queryParams, Dictionary headerParams, string[] authSettings)
- {
- if (authSettings == null || authSettings.Length == 0)
- return;
-
- foreach (string auth in authSettings)
- {
- // determine which one to use
- switch(auth)
- {
- {{#authMethods}}
- case "{{name}}":
- {{#isApiKey}}{{#isKeyInHeader}}headerParams["{{keyParamName}}"] = GetApiKeyWithPrefix("{{keyParamName}}");{{/isKeyInHeader}}{{#isKeyInQuery}}queryParams["{{keyParamName}}"] = GetApiKeyWithPrefix("{{keyParamName}}");{{/isKeyInQuery}}{{/isApiKey}}{{#isBasic}}headerParams["Authorization"] = "Basic " + Base64Encode(Configuration.Username + ":" + Configuration.Password);{{/isBasic}}
- {{#isOAuth}}//TODO support oauth{{/isOAuth}}
- break;
- {{/authMethods}}
- default:
- //TODO show warning about security definition not found
- break;
- }
- }
- }
-
- ///
- /// Encode string in base64 format.
- ///
- /// String to be encoded.
- /// Encoded string.
- public static string Base64Encode(string text)
- {
- var textByte = System.Text.Encoding.UTF8.GetBytes(text);
- return System.Convert.ToBase64String(textByte);
- }
-
- ///
- /// Dynamically cast the object into target type.
- ///
- /// Object to be casted
- /// Target type
- /// Casted object
- public static Object ConvertType(Object fromObject, Type toObject) {
- return Convert.ChangeType(fromObject, toObject);
- }
-
- }
-}
diff --git a/modules/openapi-generator/src/main/resources/csharp-dotnet2/ApiException.mustache b/modules/openapi-generator/src/main/resources/csharp-dotnet2/ApiException.mustache
deleted file mode 100644
index 1bc6d7c5a6f..00000000000
--- a/modules/openapi-generator/src/main/resources/csharp-dotnet2/ApiException.mustache
+++ /dev/null
@@ -1,47 +0,0 @@
-using System;
-
-namespace {{clientPackage}} {
- ///
- /// API Exception
- ///
- public class ApiException : Exception {
- ///
- /// Gets or sets the error code (HTTP status code)
- ///
- /// The error code (HTTP status code).
- public int ErrorCode { get; set; }
-
- ///
- /// Gets or sets the error content (body json object)
- ///
- /// The error content (Http response body).
- public Object ErrorContent { get; private set; }
-
- ///
- /// Initializes a new instance of the class.
- ///
- public ApiException() {}
-
- ///
- /// Initializes a new instance of the class.
- ///
- /// HTTP status code.
- /// Error message.
- public ApiException(int errorCode, string message) : base(message) {
- this.ErrorCode = errorCode;
- }
-
- ///
- /// Initializes a new instance of the class.
- ///
- /// HTTP status code.
- /// Error message.
- /// Error content.
- public ApiException(int errorCode, string message, Object errorContent = null) : base(message) {
- this.ErrorCode = errorCode;
- this.ErrorContent = errorContent;
- }
-
- }
-
-}
diff --git a/modules/openapi-generator/src/main/resources/csharp-dotnet2/Configuration.mustache b/modules/openapi-generator/src/main/resources/csharp-dotnet2/Configuration.mustache
deleted file mode 100644
index e09f39fc601..00000000000
--- a/modules/openapi-generator/src/main/resources/csharp-dotnet2/Configuration.mustache
+++ /dev/null
@@ -1,132 +0,0 @@
-using System;
-using System.Reflection;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Text;
-
-namespace {{clientPackage}}
-{
- ///
- /// Represents a set of configuration settings
- ///
- public class Configuration
- {
-
- ///
- /// Version of the package.
- ///
- /// Version of the package.
- public const string Version = "{{packageVersion}}";
-
- ///
- /// Gets or sets the default API client for making HTTP calls.
- ///
- /// The API client.
- public static ApiClient DefaultApiClient = new ApiClient();
-
- ///
- /// Gets or sets the username (HTTP basic authentication).
- ///
- /// The username.
- public static String Username { get; set; }
-
- ///
- /// Gets or sets the password (HTTP basic authentication).
- ///
- /// The password.
- public static String Password { get; set; }
-
- ///
- /// Gets or sets the API key based on the authentication name.
- ///
- /// The API key.
- public static Dictionary ApiKey = new Dictionary();
-
- ///
- /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name.
- ///
- /// The prefix of the API key.
- public static Dictionary ApiKeyPrefix = new Dictionary();
-
- private static string _tempFolderPath = Path.GetTempPath();
-
- ///
- /// Gets or sets the temporary folder path to store the files downloaded from the server.
- ///
- /// Folder path.
- public static String TempFolderPath
- {
- get { return _tempFolderPath; }
-
- set
- {
- if (String.IsNullOrEmpty(value))
- {
- _tempFolderPath = value;
- return;
- }
-
- // create the directory if it does not exist
- if (!Directory.Exists(value))
- Directory.CreateDirectory(value);
-
- // check if the path contains directory separator at the end
- if (value[value.Length - 1] == Path.DirectorySeparatorChar)
- _tempFolderPath = value;
- else
- _tempFolderPath = value + Path.DirectorySeparatorChar;
- }
- }
-
- private const string ISO8601_DATETIME_FORMAT = "o";
-
- private static string _dateTimeFormat = ISO8601_DATETIME_FORMAT;
-
- ///
- /// Gets or sets the date time format used when serializing in the ApiClient
- /// By default, it's set to ISO 8601 - "o", for others see:
- /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx
- /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx
- /// No validation is done to ensure that the string you're providing is valid
- ///
- /// The DateTimeFormat string
- public static String DateTimeFormat
- {
- get
- {
- return _dateTimeFormat;
- }
- set
- {
- if (string.IsNullOrEmpty(value))
- {
- // Never allow a blank or null string, go back to the default
- _dateTimeFormat = ISO8601_DATETIME_FORMAT;
- return;
- }
-
- // Caution, no validation when you choose date time format other than ISO 8601
- // Take a look at the above links
- _dateTimeFormat = value;
- }
- }
-
- ///
- /// Returns a string with essential information for debugging.
- ///
- public static String ToDebugReport()
- {
- String report = "C# SDK ({{packageName}}) Debug Report:\n";
- report += " OS: " + Environment.OSVersion + "\n";
- report += " .NET Framework Version: " + Assembly
- .GetExecutingAssembly()
- .GetReferencedAssemblies()
- .Where(x => x.Name == "System.Core").First().Version.ToString() + "\n";
- report += " Version of the API: {{version}}\n";
- report += " SDK Package Version: {{packageVersion}}\n";
-
- return report;
- }
- }
-}
diff --git a/modules/openapi-generator/src/main/resources/csharp-dotnet2/README.mustache b/modules/openapi-generator/src/main/resources/csharp-dotnet2/README.mustache
deleted file mode 100644
index 38a2937a476..00000000000
--- a/modules/openapi-generator/src/main/resources/csharp-dotnet2/README.mustache
+++ /dev/null
@@ -1,148 +0,0 @@
-# {{packageName}} - the C# library for the {{appName}}
-
-{{#appDescription}}
-{{{appDescription}}}
-{{/appDescription}}
-
-This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
-
-- API version: {{appVersion}}
-- SDK version: {{packageVersion}}
-{{^hideGenerationTimestamp}}
-- Build date: {{generatedDate}}
-{{/hideGenerationTimestamp}}
-- Build package: {{generatorClass}}
-{{#infoUrl}}
- For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}})
-{{/infoUrl}}
-
-
-## Frameworks supported
-- .NET 2.0
-
-
-## Dependencies
-- Mono compiler
-- Newtonsoft.Json.7.0.1
-- RestSharp.Net2.1.1.11
-
-Note: NuGet is downloaded by the mono compilation script and packages are installed with it. No dependency DLLs are bundled with this generator
-
-
-## Installation
-Run the following command to generate the DLL
-- [Mac/Linux] `/bin/sh compile-mono.sh`
-- [Windows] TODO
-
-Then include the DLL (under the `bin` folder) in the C# project, and use the namespaces:
-```csharp
-using {{apiPackage}};
-using {{clientPackage}};
-using {{modelPackage}};
-```
-
-## Getting Started
-
-```csharp
-using System;
-using System.Diagnostics;
-using {{apiPackage}};
-using {{clientPackage}};
-using {{modelPackage}};
-
-namespace Example
-{
- public class {{operationId}}Example
- {
- public void main()
- {
- {{#apiInfo}}{{#apis}}{{#-first}}{{#operations}}{{#operation}}{{#-first}}{{#hasAuthMethods}}{{#authMethods}}{{#isBasic}}
- // Configure HTTP basic authorization: {{{name}}}
- Configuration.Default.Username = "YOUR_USERNAME";
- Configuration.Default.Password = "YOUR_PASSWORD";{{/isBasic}}{{#isApiKey}}
- // Configure API key authorization: {{{name}}}
- Configuration.Default.ApiKey.Add("{{{keyParamName}}}", "YOUR_API_KEY");
- // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
- // Configuration.Default.ApiKeyPrefix.Add("{{{keyParamName}}}", "Bearer");{{/isApiKey}}{{#isOAuth}}
- // Configure OAuth2 access token for authorization: {{{name}}}
- Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";{{/isOAuth}}{{/authMethods}}
- {{/hasAuthMethods}}
-
- var apiInstance = new {{classname}}();
- {{#allParams}}
- {{#isPrimitiveType}}
- var {{paramName}} = {{{example}}}; // {{{dataType}}} | {{{description}}}{{^required}} (optional) {{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}}
- {{/isPrimitiveType}}
- {{^isPrimitiveType}}
- var {{paramName}} = new {{{dataType}}}(); // {{{dataType}}} | {{{description}}}{{^required}} (optional) {{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}}
- {{/isPrimitiveType}}
- {{/allParams}}
-
- try
- {
- {{#summary}}
- // {{{.}}}
- {{/summary}}
- {{#returnType}}{{{.}}} result = {{/returnType}}apiInstance.{{{operationId}}}({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});{{#returnType}}
- Debug.WriteLine(result);{{/returnType}}
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling {{classname}}.{{operationId}}: " + e.Message );
- }
- }
- }
-}{{/-first}}{{/operation}}{{/operations}}{{/-first}}{{/apis}}{{/apiInfo}}
-```
-
-
-## Documentation for API Endpoints
-
-All URIs are relative to *{{{basePath}}}*
-
-Class | Method | HTTP request | Description
------------- | ------------- | ------------- | -------------
-{{#apiInfo}}{{#apis}}{{#operations}}{{#operation}}*{{classname}}* | [**{{operationId}}**]({{apiDocPath}}{{classname}}.md#{{operationIdLowerCase}}) | **{{httpMethod}}** {{path}} | {{#summary}}{{{summary}}}{{/summary}}
-{{/operation}}{{/operations}}{{/apis}}{{/apiInfo}}
-
-
-## Documentation for Models
-
-{{#modelPackage}}
-{{#models}}{{#model}} - [{{{modelPackage}}}.{{{classname}}}]({{modelDocPath}}{{{classname}}}.md)
-{{/model}}{{/models}}
-{{/modelPackage}}
-{{^modelPackage}}
-No model defined in this package
-{{/modelPackage}}
-
-
-## Documentation for Authorization
-
-{{^authMethods}}
-All endpoints do not require authorization.
-{{/authMethods}}
-{{#authMethods}}
-{{#last}}
-Authentication schemes defined for the API:
-{{/last}}
-{{/authMethods}}
-{{#authMethods}}
-
-### {{name}}
-
-{{#isApiKey}}- **Type**: API key
-- **API key parameter name**: {{keyParamName}}
-- **Location**: {{#isKeyInQuery}}URL query string{{/isKeyInQuery}}{{#isKeyInHeader}}HTTP header{{/isKeyInHeader}}
-{{/isApiKey}}
-{{#isBasic}}- **Type**: HTTP basic authentication
-{{/isBasic}}
-{{#isOAuth}}- **Type**: OAuth
-- **Flow**: {{flow}}
-- **Authorization URL**: {{authorizationUrl}}
-- **Scopes**: {{^scopes}}N/A{{/scopes}}
-{{#scopes}} - {{scope}}: {{description}}
-{{/scopes}}
-{{/isOAuth}}
-
-{{/authMethods}}
diff --git a/modules/openapi-generator/src/main/resources/csharp-dotnet2/api.mustache b/modules/openapi-generator/src/main/resources/csharp-dotnet2/api.mustache
deleted file mode 100644
index 4a7ccbbe378..00000000000
--- a/modules/openapi-generator/src/main/resources/csharp-dotnet2/api.mustache
+++ /dev/null
@@ -1,129 +0,0 @@
-using System;
-using System.Collections.Generic;
-using RestSharp;
-using {{clientPackage}};
-{{#hasImport}}using {{modelPackage}};
-{{/hasImport}}
-
-namespace {{apiPackage}}
-{
- {{#operations}}
- ///
- /// Represents a collection of functions to interact with the API endpoints
- ///
- public interface I{{classname}}
- {
- {{#operation}}
- ///
- /// {{summary}} {{notes}}
- ///
- {{#allParams}}/// {{description}}
- {{/allParams}}/// {{#returnType}}{{returnType}}{{/returnType}}
- {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{nickname}} ({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
- {{/operation}}
- }
-
- ///
- /// Represents a collection of functions to interact with the API endpoints
- ///
- public class {{classname}} : I{{classname}}
- {
- ///
- /// Initializes a new instance of the class.
- ///
- /// an instance of ApiClient (optional)
- ///
- public {{classname}}(ApiClient apiClient = null)
- {
- if (apiClient == null) // use the default one in Configuration
- this.ApiClient = Configuration.DefaultApiClient;
- else
- this.ApiClient = apiClient;
- }
-
- ///
- /// Initializes a new instance of the class.
- ///
- ///
- public {{classname}}(String basePath)
- {
- this.ApiClient = new ApiClient(basePath);
- }
-
- ///
- /// Sets the base path of the API client.
- ///
- /// The base path
- /// The base path
- public void SetBasePath(String basePath)
- {
- this.ApiClient.BasePath = basePath;
- }
-
- ///
- /// Gets the base path of the API client.
- ///
- /// The base path
- /// The base path
- public String GetBasePath(String basePath)
- {
- return this.ApiClient.BasePath;
- }
-
- ///
- /// Gets or sets the API client.
- ///
- /// An instance of the ApiClient
- public ApiClient ApiClient {get; set;}
-
- {{#operation}}
- ///
- /// {{summary}} {{notes}}
- ///
- {{#allParams}}/// {{description}}
- {{/allParams}}/// {{#returnType}}{{returnType}}{{/returnType}}
- public {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{nickname}} ({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
- {
- {{#allParams}}{{#required}}
- // verify the required parameter '{{paramName}}' is set
- if ({{paramName}} == null) throw new ApiException(400, "Missing required parameter '{{paramName}}' when calling {{nickname}}");
- {{/required}}{{/allParams}}
-
- var path = "{{{path}}}";
- path = path.Replace("{format}", "json");
- {{#pathParams}}path = path.Replace("{" + "{{baseName}}" + "}", ApiClient.ParameterToString({{{paramName}}}));
- {{/pathParams}}
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
- {{#queryParams}} if ({{paramName}} != null) queryParams.Add("{{baseName}}", ApiClient.ParameterToString({{paramName}})); // query parameter
- {{/queryParams}}
- {{#headerParams}} if ({{paramName}} != null) headerParams.Add("{{baseName}}", ApiClient.ParameterToString({{paramName}})); // header parameter
- {{/headerParams}}
- {{#formParams}}if ({{paramName}} != null) {{#isFile}}fileParams.Add("{{baseName}}", ApiClient.ParameterToFile("{{baseName}}", {{paramName}}));{{/isFile}}{{^isFile}}formParams.Add("{{baseName}}", ApiClient.ParameterToString({{paramName}})); // form parameter{{/isFile}}
- {{/formParams}}
- {{#bodyParam}}postBody = ApiClient.Serialize({{paramName}}); // http body (model) parameter
- {{/bodyParam}}
-
- // authentication setting, if any
- String[] authSettings = new String[] { {{#authMethods}}"{{name}}"{{#hasMore}}, {{/hasMore}}{{/authMethods}} };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.{{httpMethod}}, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling {{nickname}}: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling {{nickname}}: " + response.ErrorMessage, response.ErrorMessage);
-
- {{#returnType}}return ({{{returnType}}}) ApiClient.Deserialize(response.Content, typeof({{{returnType}}}), response.Headers);{{/returnType}}{{^returnType}}return;{{/returnType}}
- }
-
- {{/operation}}
- }
- {{/operations}}
-}
diff --git a/modules/openapi-generator/src/main/resources/csharp-dotnet2/api_doc.mustache b/modules/openapi-generator/src/main/resources/csharp-dotnet2/api_doc.mustache
deleted file mode 100644
index 1a772761894..00000000000
--- a/modules/openapi-generator/src/main/resources/csharp-dotnet2/api_doc.mustache
+++ /dev/null
@@ -1,102 +0,0 @@
-# {{apiPackage}}.{{classname}}{{#description}}
-{{description}}{{/description}}
-
-All URIs are relative to *{{{basePath}}}*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-{{#operations}}{{#operation}}[**{{operationId}}**]({{classname}}.md#{{operationIdLowerCase}}) | **{{httpMethod}}** {{path}} | {{#summary}}{{summary}}{{/summary}}
-{{/operation}}{{/operations}}
-
-{{#operations}}
-{{#operation}}
-
-# **{{{operationId}}}**
-> {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{operationId}} ({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = null{{/optionalMethodArgument}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}})
-
-{{{summary}}}{{#notes}}
-
-{{{notes}}}{{/notes}}
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using {{apiPackage}};
-using {{clientPackage}};
-using {{modelPackage}};
-
-namespace Example
-{
- public class {{operationId}}Example
- {
- public void main()
- {
- {{#hasAuthMethods}}{{#authMethods}}{{#isBasic}}
- // Configure HTTP basic authorization: {{{name}}}
- Configuration.Default.Username = "YOUR_USERNAME";
- Configuration.Default.Password = "YOUR_PASSWORD";{{/isBasic}}{{#isApiKey}}
- // Configure API key authorization: {{{name}}}
- Configuration.Default.ApiKey.Add("{{{keyParamName}}}", "YOUR_API_KEY");
- // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
- // Configuration.Default.ApiKeyPrefix.Add("{{{keyParamName}}}", "Bearer");{{/isApiKey}}{{#isOAuth}}
- // Configure OAuth2 access token for authorization: {{{name}}}
- Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";{{/isOAuth}}{{/authMethods}}
- {{/hasAuthMethods}}
-
- var apiInstance = new {{classname}}();
- {{#allParams}}
- {{#isPrimitiveType}}
- {{^isBinary}}
- var {{paramName}} = {{{example}}}; // {{{dataType}}} | {{{description}}}{{^required}} (optional) {{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}}
- {{/isBinary}}
- {{#isBinary}}
- var {{paramName}} = new {{{dataType}}}(); // {{{dataType}}} | {{{description}}}{{^required}} (optional) {{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}}
- {{/isBinary}}
- {{/isPrimitiveType}}
- {{^isPrimitiveType}}
- var {{paramName}} = new {{{dataType}}}(); // {{{dataType}}} | {{{description}}}{{^required}} (optional) {{/required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}}
- {{/isPrimitiveType}}
- {{/allParams}}
-
- try
- {
- {{#summary}}
- // {{{.}}}
- {{/summary}}
- {{#returnType}}{{returnType}} result = {{/returnType}}apiInstance.{{{operationId}}}({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});{{#returnType}}
- Debug.WriteLine(result);{{/returnType}}
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling {{classname}}.{{operationId}}: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-{{^allParams}}This endpoint does not need any parameter.{{/allParams}}{{#allParams}}{{#-last}}
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------{{/-last}}{{/allParams}}
-{{#allParams}} **{{paramName}}** | {{#isPrimitiveType}}**{{{dataType}}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{{dataType}}}**]({{baseType}}.md){{/isPrimitiveType}}| {{description}} | {{^required}}[optional] {{/required}}{{#defaultValue}}[default to {{defaultValue}}]{{/defaultValue}}
-{{/allParams}}
-
-### Return type
-
-{{#returnType}}{{#returnTypeIsPrimitive}}**{{{returnType}}}**{{/returnTypeIsPrimitive}}{{^returnTypeIsPrimitive}}[**{{{returnType}}}**]({{returnBaseType}}.md){{/returnTypeIsPrimitive}}{{/returnType}}{{^returnType}}void (empty response body){{/returnType}}
-
-### Authorization
-
-{{^authMethods}}No authorization required{{/authMethods}}{{#authMethods}}[{{{name}}}](../README.md#{{{name}}}){{^-last}}, {{/-last}}{{/authMethods}}
-
-### HTTP request headers
-
- - **Content-Type**: {{#consumes}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/consumes}}{{^consumes}}Not defined{{/consumes}}
- - **Accept**: {{#produces}}{{{mediaType}}}{{#hasMore}}, {{/hasMore}}{{/produces}}{{^produces}}Not defined{{/produces}}
-
-[[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)
-
-{{/operation}}
-{{/operations}}
diff --git a/modules/openapi-generator/src/main/resources/csharp-dotnet2/compile-mono.sh.mustache b/modules/openapi-generator/src/main/resources/csharp-dotnet2/compile-mono.sh.mustache
deleted file mode 100644
index 2287344892a..00000000000
--- a/modules/openapi-generator/src/main/resources/csharp-dotnet2/compile-mono.sh.mustache
+++ /dev/null
@@ -1,12 +0,0 @@
-wget -nc https://dist.nuget.org/win-x86-commandline/latest/nuget.exe;
-mozroots --import --sync
-mono nuget.exe install vendor/packages.config -o vendor;
-mkdir -p bin;
-mcs -sdk:2 -r:vendor/Newtonsoft.Json.7.0.1/lib/net20/Newtonsoft.Json.dll,\
-vendor/RestSharp.Net2.1.1.11/lib/net20/RestSharp.Net2.dll,\
-System.Runtime.Serialization.dll \
--target:library \
--out:bin/{{packageName}}.dll \
--recurse:'src/*.cs' \
--doc:bin/{{packageName}}.xml \
--platform:anycpu
diff --git a/modules/openapi-generator/src/main/resources/csharp-dotnet2/model.mustache b/modules/openapi-generator/src/main/resources/csharp-dotnet2/model.mustache
deleted file mode 100644
index 92cdefea3a6..00000000000
--- a/modules/openapi-generator/src/main/resources/csharp-dotnet2/model.mustache
+++ /dev/null
@@ -1,53 +0,0 @@
-using System;
-using System.Text;
-using System.Collections;
-using System.Collections.Generic;
-using System.Runtime.Serialization;
-using Newtonsoft.Json;
-
-{{#models}}
-{{#model}}
-namespace {{modelPackage}} {
-
- ///
- /// {{description}}
- ///
- [DataContract]
- public class {{classname}}{{#parent}} : {{{parent}}}{{/parent}} {
- {{#vars}}
- ///
- /// {{^description}}Gets or Sets {{{name}}}{{/description}}{{#description}}{{{description}}}{{/description}}
- /// {{#description}}
- /// {{{description}}}{{/description}}
- [DataMember(Name="{{baseName}}", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "{{baseName}}")]
- public {{{dataType}}} {{name}} { get; set; }
-
- {{/vars}}
-
- ///
- /// Get the string presentation of the object
- ///
- /// String presentation of the object
- public override string ToString() {
- var sb = new StringBuilder();
- sb.Append("class {{classname}} {\n");
- {{#vars}}
- sb.Append(" {{name}}: ").Append({{name}}).Append("\n");
- {{/vars}}
- sb.Append("}\n");
- return sb.ToString();
- }
-
- ///
- /// Get the JSON string presentation of the object
- ///
- /// JSON string presentation of the object
- public {{#parent}} new {{/parent}}string ToJson() {
- return JsonConvert.SerializeObject(this, Formatting.Indented);
- }
-
-}
-{{/model}}
-{{/models}}
-}
diff --git a/modules/openapi-generator/src/main/resources/csharp-dotnet2/model_doc.mustache b/modules/openapi-generator/src/main/resources/csharp-dotnet2/model_doc.mustache
deleted file mode 100644
index c4ee91dacb6..00000000000
--- a/modules/openapi-generator/src/main/resources/csharp-dotnet2/model_doc.mustache
+++ /dev/null
@@ -1,14 +0,0 @@
-{{#models}}
-{{#model}}
-# {{{modelPackage}}}.{{{classname}}}
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-{{#vars}}**{{name}}** | {{#isPrimitiveType}}**{{{dataType}}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{{dataType}}}**]({{complexType}}.md){{/isPrimitiveType}} | {{description}} | {{^required}}[optional] {{/required}}{{#readOnly}}[readonly] {{/readOnly}}{{#defaultValue}}[default to {{{.}}}]{{/defaultValue}}
-{{/vars}}
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-{{/model}}
-{{/models}}
diff --git a/modules/openapi-generator/src/main/resources/csharp-dotnet2/packages.config.mustache b/modules/openapi-generator/src/main/resources/csharp-dotnet2/packages.config.mustache
deleted file mode 100644
index 7b9cf186303..00000000000
--- a/modules/openapi-generator/src/main/resources/csharp-dotnet2/packages.config.mustache
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/.openapi-generator-ignore b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/.openapi-generator-ignore
deleted file mode 100644
index 7484ee590a3..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/.openapi-generator-ignore
+++ /dev/null
@@ -1,23 +0,0 @@
-# OpenAPI Generator Ignore
-# Generated by openapi-generator https://github.com/openapitools/openapi-generator
-
-# Use this file to prevent files from being overwritten by the generator.
-# The patterns follow closely to .gitignore or .dockerignore.
-
-# As an example, the C# client generator defines ApiClient.cs.
-# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
-#ApiClient.cs
-
-# You can match any string of characters against a directory, file or extension with a single asterisk (*):
-#foo/*/qux
-# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
-
-# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
-#foo/**/qux
-# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
-
-# You can also negate patterns with an exclamation (!).
-# For example, you can ignore all files in a docs folder with the file extension .md:
-#docs/*.md
-# Then explicitly reverse the ignore rule for a single file:
-#!docs/README.md
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/.openapi-generator/VERSION b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/.openapi-generator/VERSION
deleted file mode 100644
index afa63656064..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/.openapi-generator/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-4.0.0-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/README.md b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/README.md
deleted file mode 100644
index b68ca22592a..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/README.md
+++ /dev/null
@@ -1,131 +0,0 @@
-# Org.OpenAPITools - the C# library for the OpenAPI Petstore
-
-This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
-
-This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
-
-- API version: 1.0.0
-- SDK version: 1.0.0
-- Build package: org.openapitools.codegen.languages.CSharpDotNet2ClientCodegen
-
-
-## Frameworks supported
-- .NET 2.0
-
-
-## Dependencies
-- Mono compiler
-- Newtonsoft.Json.7.0.1
-- RestSharp.Net2.1.1.11
-
-Note: NuGet is downloaded by the mono compilation script and packages are installed with it. No dependency DLLs are bundled with this generator
-
-
-## Installation
-Run the following command to generate the DLL
-- [Mac/Linux] `/bin/sh compile-mono.sh`
-- [Windows] TODO
-
-Then include the DLL (under the `bin` folder) in the C# project, and use the namespaces:
-```csharp
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-```
-
-## Getting Started
-
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class Example
- {
- public void main()
- {
-
- // Configure OAuth2 access token for authorization: petstore_auth
- Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
-
- var apiInstance = new PetApi();
- var body = new Pet(); // Pet | Pet object that needs to be added to the store
-
- try
- {
- // Add a new pet to the store
- apiInstance.AddPet(body);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling PetApi.AddPet: " + e.Message );
- }
- }
- }
-}
-```
-
-
-## Documentation for API Endpoints
-
-All URIs are relative to *http://petstore.swagger.io/v2*
-
-Class | Method | HTTP request | Description
------------- | ------------- | ------------- | -------------
-*PetApi* | [**AddPet**](docs/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store
-*PetApi* | [**DeletePet**](docs/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
-*PetApi* | [**FindPetsByStatus**](docs/PetApi.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status
-*PetApi* | [**FindPetsByTags**](docs/PetApi.md#findpetsbytags) | **GET** /pet/findByTags | Finds Pets by tags
-*PetApi* | [**GetPetById**](docs/PetApi.md#getpetbyid) | **GET** /pet/{petId} | Find pet by ID
-*PetApi* | [**UpdatePet**](docs/PetApi.md#updatepet) | **PUT** /pet | Update an existing pet
-*PetApi* | [**UpdatePetWithForm**](docs/PetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
-*PetApi* | [**UploadFile**](docs/PetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
-*StoreApi* | [**DeleteOrder**](docs/StoreApi.md#deleteorder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID
-*StoreApi* | [**GetInventory**](docs/StoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
-*StoreApi* | [**GetOrderById**](docs/StoreApi.md#getorderbyid) | **GET** /store/order/{orderId} | Find purchase order by ID
-*StoreApi* | [**PlaceOrder**](docs/StoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet
-*UserApi* | [**CreateUser**](docs/UserApi.md#createuser) | **POST** /user | Create user
-*UserApi* | [**CreateUsersWithArrayInput**](docs/UserApi.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array
-*UserApi* | [**CreateUsersWithListInput**](docs/UserApi.md#createuserswithlistinput) | **POST** /user/createWithList | Creates list of users with given input array
-*UserApi* | [**DeleteUser**](docs/UserApi.md#deleteuser) | **DELETE** /user/{username} | Delete user
-*UserApi* | [**GetUserByName**](docs/UserApi.md#getuserbyname) | **GET** /user/{username} | Get user by user name
-*UserApi* | [**LoginUser**](docs/UserApi.md#loginuser) | **GET** /user/login | Logs user into the system
-*UserApi* | [**LogoutUser**](docs/UserApi.md#logoutuser) | **GET** /user/logout | Logs out current logged in user session
-*UserApi* | [**UpdateUser**](docs/UserApi.md#updateuser) | **PUT** /user/{username} | Updated user
-
-
-
-## Documentation for Models
-
- - [Org.OpenAPITools.Model.ApiResponse](docs/ApiResponse.md)
- - [Org.OpenAPITools.Model.Category](docs/Category.md)
- - [Org.OpenAPITools.Model.Order](docs/Order.md)
- - [Org.OpenAPITools.Model.Pet](docs/Pet.md)
- - [Org.OpenAPITools.Model.Tag](docs/Tag.md)
- - [Org.OpenAPITools.Model.User](docs/User.md)
-
-
-
-## Documentation for Authorization
-
-
-### api_key
-
-- **Type**: API key
-- **API key parameter name**: api_key
-- **Location**: HTTP header
-
-
-### petstore_auth
-
-- **Type**: OAuth
-- **Flow**: implicit
-- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog
-- **Scopes**:
- - write:pets: modify pets in your account
- - read:pets: read your pets
-
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/compile-mono.sh b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/compile-mono.sh
deleted file mode 100644
index 8e6e23eba08..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/compile-mono.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-wget -nc https://dist.nuget.org/win-x86-commandline/latest/nuget.exe;
-mozroots --import --sync
-mono nuget.exe install vendor/packages.config -o vendor;
-mkdir -p bin;
-mcs -sdk:2 -r:vendor/Newtonsoft.Json.7.0.1/lib/net20/Newtonsoft.Json.dll,\
-vendor/RestSharp.Net2.1.1.11/lib/net20/RestSharp.Net2.dll,\
-System.Runtime.Serialization.dll \
--target:library \
--out:bin/Org.OpenAPITools.dll \
--recurse:'src/*.cs' \
--doc:bin/Org.OpenAPITools.xml \
--platform:anycpu
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/ApiResponse.md b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/ApiResponse.md
deleted file mode 100644
index 01b35815bd4..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/ApiResponse.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# Org.OpenAPITools.Model.ApiResponse
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Code** | **int?** | | [optional]
-**Type** | **string** | | [optional]
-**Message** | **string** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/Category.md b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/Category.md
deleted file mode 100644
index 860a468e35c..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/Category.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Org.OpenAPITools.Model.Category
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **long?** | | [optional]
-**Name** | **string** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/Inline_object.md b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/Inline_object.md
deleted file mode 100644
index 40e16da1bb7..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/Inline_object.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Org.OpenAPITools.Model.InlineObject
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Name** | **string** | Updated name of the pet | [optional]
-**Status** | **string** | Updated status of the pet | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/Inline_object_1.md b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/Inline_object_1.md
deleted file mode 100644
index 2e6d226754e..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/Inline_object_1.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Org.OpenAPITools.Model.InlineObject1
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**AdditionalMetadata** | **string** | Additional data to pass to server | [optional]
-**File** | **System.IO.Stream** | file to upload | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/Order.md b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/Order.md
deleted file mode 100644
index 984bd5ca063..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/Order.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# Org.OpenAPITools.Model.Order
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **long?** | | [optional]
-**PetId** | **long?** | | [optional]
-**Quantity** | **int?** | | [optional]
-**ShipDate** | **DateTime?** | | [optional]
-**Status** | **string** | Order Status | [optional]
-**Complete** | **bool?** | | [optional] [default to false]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/Pet.md b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/Pet.md
deleted file mode 100644
index ce9fe873cd2..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/Pet.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# Org.OpenAPITools.Model.Pet
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **long?** | | [optional]
-**Category** | [**Category**](Category.md) | | [optional]
-**Name** | **string** | |
-**PhotoUrls** | **List** | |
-**Tags** | [**List**](Tag.md) | | [optional]
-**Status** | **string** | pet status in the store | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/PetApi.md b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/PetApi.md
deleted file mode 100644
index 3ce062d25aa..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/PetApi.md
+++ /dev/null
@@ -1,534 +0,0 @@
-# Org.OpenAPITools.Api.PetApi
-
-All URIs are relative to *http://petstore.swagger.io/v2*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**AddPet**](PetApi.md#addpet) | **POST** /pet | Add a new pet to the store
-[**DeletePet**](PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
-[**FindPetsByStatus**](PetApi.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status
-[**FindPetsByTags**](PetApi.md#findpetsbytags) | **GET** /pet/findByTags | Finds Pets by tags
-[**GetPetById**](PetApi.md#getpetbyid) | **GET** /pet/{petId} | Find pet by ID
-[**UpdatePet**](PetApi.md#updatepet) | **PUT** /pet | Update an existing pet
-[**UpdatePetWithForm**](PetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
-[**UploadFile**](PetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
-
-
-
-# **AddPet**
-> void AddPet (Pet body)
-
-Add a new pet to the store
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class AddPetExample
- {
- public void main()
- {
-
- // Configure OAuth2 access token for authorization: petstore_auth
- Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
-
- var apiInstance = new PetApi();
- var body = new Pet(); // Pet | Pet object that needs to be added to the store
-
- try
- {
- // Add a new pet to the store
- apiInstance.AddPet(body);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling PetApi.AddPet: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: application/json, application/xml
- - **Accept**: Not defined
-
-[[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)
-
-
-# **DeletePet**
-> void DeletePet (long? petId, string apiKey)
-
-Deletes a pet
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class DeletePetExample
- {
- public void main()
- {
-
- // Configure OAuth2 access token for authorization: petstore_auth
- Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
-
- var apiInstance = new PetApi();
- var petId = 789; // long? | Pet id to delete
- var apiKey = apiKey_example; // string | (optional)
-
- try
- {
- // Deletes a pet
- apiInstance.DeletePet(petId, apiKey);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling PetApi.DeletePet: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **petId** | **long?**| Pet id to delete |
- **apiKey** | **string**| | [optional]
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-[[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)
-
-
-# **FindPetsByStatus**
-> List FindPetsByStatus (List status)
-
-Finds Pets by status
-
-Multiple status values can be provided with comma separated strings
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class FindPetsByStatusExample
- {
- public void main()
- {
-
- // Configure OAuth2 access token for authorization: petstore_auth
- Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
-
- var apiInstance = new PetApi();
- var status = status_example; // List | Status values that need to be considered for filter
-
- try
- {
- // Finds Pets by status
- List<Pet> result = apiInstance.FindPetsByStatus(status);
- Debug.WriteLine(result);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling PetApi.FindPetsByStatus: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **status** | **List**| Status values that need to be considered for filter |
-
-### Return type
-
-[**List**](Pet.md)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-[[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)
-
-
-# **FindPetsByTags**
-> List FindPetsByTags (List tags)
-
-Finds Pets by tags
-
-Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class FindPetsByTagsExample
- {
- public void main()
- {
-
- // Configure OAuth2 access token for authorization: petstore_auth
- Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
-
- var apiInstance = new PetApi();
- var tags = new List(); // List | Tags to filter by
-
- try
- {
- // Finds Pets by tags
- List<Pet> result = apiInstance.FindPetsByTags(tags);
- Debug.WriteLine(result);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling PetApi.FindPetsByTags: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **tags** | [**List**](string.md)| Tags to filter by |
-
-### Return type
-
-[**List**](Pet.md)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-[[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)
-
-
-# **GetPetById**
-> Pet GetPetById (long? petId)
-
-Find pet by ID
-
-Returns a single pet
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class GetPetByIdExample
- {
- public void main()
- {
-
- // Configure API key authorization: api_key
- Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
- // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
- // Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");
-
- var apiInstance = new PetApi();
- var petId = 789; // long? | ID of pet to return
-
- try
- {
- // Find pet by ID
- Pet result = apiInstance.GetPetById(petId);
- Debug.WriteLine(result);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling PetApi.GetPetById: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **petId** | **long?**| ID of pet to return |
-
-### Return type
-
-[**Pet**](Pet.md)
-
-### Authorization
-
-[api_key](../README.md#api_key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-[[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)
-
-
-# **UpdatePet**
-> void UpdatePet (Pet body)
-
-Update an existing pet
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class UpdatePetExample
- {
- public void main()
- {
-
- // Configure OAuth2 access token for authorization: petstore_auth
- Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
-
- var apiInstance = new PetApi();
- var body = new Pet(); // Pet | Pet object that needs to be added to the store
-
- try
- {
- // Update an existing pet
- apiInstance.UpdatePet(body);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling PetApi.UpdatePet: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: application/json, application/xml
- - **Accept**: Not defined
-
-[[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)
-
-
-# **UpdatePetWithForm**
-> void UpdatePetWithForm (long? petId, string name, string status)
-
-Updates a pet in the store with form data
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class UpdatePetWithFormExample
- {
- public void main()
- {
-
- // Configure OAuth2 access token for authorization: petstore_auth
- Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
-
- var apiInstance = new PetApi();
- var petId = 789; // long? | ID of pet that needs to be updated
- var name = name_example; // string | Updated name of the pet (optional)
- var status = status_example; // string | Updated status of the pet (optional)
-
- try
- {
- // Updates a pet in the store with form data
- apiInstance.UpdatePetWithForm(petId, name, status);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling PetApi.UpdatePetWithForm: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **petId** | **long?**| ID of pet that needs to be updated |
- **name** | **string**| Updated name of the pet | [optional]
- **status** | **string**| Updated status of the pet | [optional]
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: application/x-www-form-urlencoded
- - **Accept**: Not defined
-
-[[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)
-
-
-# **UploadFile**
-> ApiResponse UploadFile (long? petId, string additionalMetadata, System.IO.Stream file)
-
-uploads an image
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class UploadFileExample
- {
- public void main()
- {
-
- // Configure OAuth2 access token for authorization: petstore_auth
- Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
-
- var apiInstance = new PetApi();
- var petId = 789; // long? | ID of pet to update
- var additionalMetadata = additionalMetadata_example; // string | Additional data to pass to server (optional)
- var file = new System.IO.Stream(); // System.IO.Stream | file to upload (optional)
-
- try
- {
- // uploads an image
- ApiResponse result = apiInstance.UploadFile(petId, additionalMetadata, file);
- Debug.WriteLine(result);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling PetApi.UploadFile: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **petId** | **long?**| ID of pet to update |
- **additionalMetadata** | **string**| Additional data to pass to server | [optional]
- **file** | **System.IO.Stream**| file to upload | [optional]
-
-### Return type
-
-[**ApiResponse**](ApiResponse.md)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: multipart/form-data
- - **Accept**: application/json
-
-[[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)
-
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/StoreApi.md b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/StoreApi.md
deleted file mode 100644
index 9ee43d09cc1..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/StoreApi.md
+++ /dev/null
@@ -1,258 +0,0 @@
-# Org.OpenAPITools.Api.StoreApi
-
-All URIs are relative to *http://petstore.swagger.io/v2*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**DeleteOrder**](StoreApi.md#deleteorder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID
-[**GetInventory**](StoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
-[**GetOrderById**](StoreApi.md#getorderbyid) | **GET** /store/order/{orderId} | Find purchase order by ID
-[**PlaceOrder**](StoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet
-
-
-
-# **DeleteOrder**
-> void DeleteOrder (string orderId)
-
-Delete purchase order by ID
-
-For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class DeleteOrderExample
- {
- public void main()
- {
-
- var apiInstance = new StoreApi();
- var orderId = orderId_example; // string | ID of the order that needs to be deleted
-
- try
- {
- // Delete purchase order by ID
- apiInstance.DeleteOrder(orderId);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling StoreApi.DeleteOrder: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **orderId** | **string**| ID of the order that needs to be deleted |
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-[[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)
-
-
-# **GetInventory**
-> Dictionary GetInventory ()
-
-Returns pet inventories by status
-
-Returns a map of status codes to quantities
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class GetInventoryExample
- {
- public void main()
- {
-
- // Configure API key authorization: api_key
- Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
- // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
- // Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");
-
- var apiInstance = new StoreApi();
-
- try
- {
- // Returns pet inventories by status
- Dictionary<string, int?> result = apiInstance.GetInventory();
- Debug.WriteLine(result);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling StoreApi.GetInventory: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-### Return type
-
-**Dictionary**
-
-### Authorization
-
-[api_key](../README.md#api_key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-[[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)
-
-
-# **GetOrderById**
-> Order GetOrderById (long? orderId)
-
-Find purchase order by ID
-
-For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class GetOrderByIdExample
- {
- public void main()
- {
-
- var apiInstance = new StoreApi();
- var orderId = 789; // long? | ID of pet that needs to be fetched
-
- try
- {
- // Find purchase order by ID
- Order result = apiInstance.GetOrderById(orderId);
- Debug.WriteLine(result);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling StoreApi.GetOrderById: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **orderId** | **long?**| ID of pet that needs to be fetched |
-
-### Return type
-
-[**Order**](Order.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-[[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)
-
-
-# **PlaceOrder**
-> Order PlaceOrder (Order body)
-
-Place an order for a pet
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class PlaceOrderExample
- {
- public void main()
- {
-
- var apiInstance = new StoreApi();
- var body = new Order(); // Order | order placed for purchasing the pet
-
- try
- {
- // Place an order for a pet
- Order result = apiInstance.PlaceOrder(body);
- Debug.WriteLine(result);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling StoreApi.PlaceOrder: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**Order**](Order.md)| order placed for purchasing the pet |
-
-### Return type
-
-[**Order**](Order.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-[[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)
-
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/Tag.md b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/Tag.md
deleted file mode 100644
index 6a76c28595f..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/Tag.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Org.OpenAPITools.Model.Tag
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **long?** | | [optional]
-**Name** | **string** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/User.md b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/User.md
deleted file mode 100644
index 04dd24a3423..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/User.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# Org.OpenAPITools.Model.User
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **long?** | | [optional]
-**Username** | **string** | | [optional]
-**FirstName** | **string** | | [optional]
-**LastName** | **string** | | [optional]
-**Email** | **string** | | [optional]
-**Password** | **string** | | [optional]
-**Phone** | **string** | | [optional]
-**UserStatus** | **int?** | User Status | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/UserApi.md b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/UserApi.md
deleted file mode 100644
index 75a3595de6c..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/docs/UserApi.md
+++ /dev/null
@@ -1,496 +0,0 @@
-# Org.OpenAPITools.Api.UserApi
-
-All URIs are relative to *http://petstore.swagger.io/v2*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**CreateUser**](UserApi.md#createuser) | **POST** /user | Create user
-[**CreateUsersWithArrayInput**](UserApi.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array
-[**CreateUsersWithListInput**](UserApi.md#createuserswithlistinput) | **POST** /user/createWithList | Creates list of users with given input array
-[**DeleteUser**](UserApi.md#deleteuser) | **DELETE** /user/{username} | Delete user
-[**GetUserByName**](UserApi.md#getuserbyname) | **GET** /user/{username} | Get user by user name
-[**LoginUser**](UserApi.md#loginuser) | **GET** /user/login | Logs user into the system
-[**LogoutUser**](UserApi.md#logoutuser) | **GET** /user/logout | Logs out current logged in user session
-[**UpdateUser**](UserApi.md#updateuser) | **PUT** /user/{username} | Updated user
-
-
-
-# **CreateUser**
-> void CreateUser (User body)
-
-Create user
-
-This can only be done by the logged in user.
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class CreateUserExample
- {
- public void main()
- {
-
- var apiInstance = new UserApi();
- var body = new User(); // User | Created user object
-
- try
- {
- // Create user
- apiInstance.CreateUser(body);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling UserApi.CreateUser: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**User**](User.md)| Created user object |
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-[[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)
-
-
-# **CreateUsersWithArrayInput**
-> void CreateUsersWithArrayInput (List body)
-
-Creates list of users with given input array
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class CreateUsersWithArrayInputExample
- {
- public void main()
- {
-
- var apiInstance = new UserApi();
- var body = new List(); // List | List of user object
-
- try
- {
- // Creates list of users with given input array
- apiInstance.CreateUsersWithArrayInput(body);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling UserApi.CreateUsersWithArrayInput: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**List**](List.md)| List of user object |
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-[[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)
-
-
-# **CreateUsersWithListInput**
-> void CreateUsersWithListInput (List body)
-
-Creates list of users with given input array
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class CreateUsersWithListInputExample
- {
- public void main()
- {
-
- var apiInstance = new UserApi();
- var body = new List(); // List | List of user object
-
- try
- {
- // Creates list of users with given input array
- apiInstance.CreateUsersWithListInput(body);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling UserApi.CreateUsersWithListInput: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | [**List**](List.md)| List of user object |
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-[[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)
-
-
-# **DeleteUser**
-> void DeleteUser (string username)
-
-Delete user
-
-This can only be done by the logged in user.
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class DeleteUserExample
- {
- public void main()
- {
-
- var apiInstance = new UserApi();
- var username = username_example; // string | The name that needs to be deleted
-
- try
- {
- // Delete user
- apiInstance.DeleteUser(username);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling UserApi.DeleteUser: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **username** | **string**| The name that needs to be deleted |
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-[[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)
-
-
-# **GetUserByName**
-> User GetUserByName (string username)
-
-Get user by user name
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class GetUserByNameExample
- {
- public void main()
- {
-
- var apiInstance = new UserApi();
- var username = username_example; // string | The name that needs to be fetched. Use user1 for testing.
-
- try
- {
- // Get user by user name
- User result = apiInstance.GetUserByName(username);
- Debug.WriteLine(result);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling UserApi.GetUserByName: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **username** | **string**| The name that needs to be fetched. Use user1 for testing. |
-
-### Return type
-
-[**User**](User.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-[[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)
-
-
-# **LoginUser**
-> string LoginUser (string username, string password)
-
-Logs user into the system
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class LoginUserExample
- {
- public void main()
- {
-
- var apiInstance = new UserApi();
- var username = username_example; // string | The user name for login
- var password = password_example; // string | The password for login in clear text
-
- try
- {
- // Logs user into the system
- string result = apiInstance.LoginUser(username, password);
- Debug.WriteLine(result);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling UserApi.LoginUser: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **username** | **string**| The user name for login |
- **password** | **string**| The password for login in clear text |
-
-### Return type
-
-**string**
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-[[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)
-
-
-# **LogoutUser**
-> void LogoutUser ()
-
-Logs out current logged in user session
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class LogoutUserExample
- {
- public void main()
- {
-
- var apiInstance = new UserApi();
-
- try
- {
- // Logs out current logged in user session
- apiInstance.LogoutUser();
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling UserApi.LogoutUser: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-[[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)
-
-
-# **UpdateUser**
-> void UpdateUser (string username, User body)
-
-Updated user
-
-This can only be done by the logged in user.
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class UpdateUserExample
- {
- public void main()
- {
-
- var apiInstance = new UserApi();
- var username = username_example; // string | name that need to be deleted
- var body = new User(); // User | Updated user object
-
- try
- {
- // Updated user
- apiInstance.UpdateUser(username, body);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling UserApi.UpdateUser: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **username** | **string**| name that need to be deleted |
- **body** | [**User**](User.md)| Updated user object |
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-[[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)
-
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/nuget.exe b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/nuget.exe
deleted file mode 100644
index 0cc40884a0d..00000000000
Binary files a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/nuget.exe and /dev/null differ
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/PetApi.cs
deleted file mode 100644
index 48b1119b50a..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/PetApi.cs
+++ /dev/null
@@ -1,429 +0,0 @@
-using System;
-using System.Collections.Generic;
-using RestSharp;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Org.OpenAPITools.Api
-{
- ///
- /// Represents a collection of functions to interact with the API endpoints
- ///
- public interface IPetApi
- {
- ///
- /// Add a new pet to the store
- ///
- /// Pet object that needs to be added to the store
- ///
- void AddPet (Pet body);
- ///
- /// Deletes a pet
- ///
- /// Pet id to delete
- ///
- ///
- void DeletePet (long? petId, string apiKey);
- ///
- /// Finds Pets by status Multiple status values can be provided with comma separated strings
- ///
- /// Status values that need to be considered for filter
- /// List<Pet>
- List FindPetsByStatus (List status);
- ///
- /// Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
- ///
- /// Tags to filter by
- /// List<Pet>
- List FindPetsByTags (List tags);
- ///
- /// Find pet by ID Returns a single pet
- ///
- /// ID of pet to return
- /// Pet
- Pet GetPetById (long? petId);
- ///
- /// Update an existing pet
- ///
- /// Pet object that needs to be added to the store
- ///
- void UpdatePet (Pet body);
- ///
- /// Updates a pet in the store with form data
- ///
- /// ID of pet that needs to be updated
- /// Updated name of the pet
- /// Updated status of the pet
- ///
- void UpdatePetWithForm (long? petId, string name, string status);
- ///
- /// uploads an image
- ///
- /// ID of pet to update
- /// Additional data to pass to server
- /// file to upload
- /// ApiResponse
- ApiResponse UploadFile (long? petId, string additionalMetadata, System.IO.Stream file);
- }
-
- ///
- /// Represents a collection of functions to interact with the API endpoints
- ///
- public class PetApi : IPetApi
- {
- ///
- /// Initializes a new instance of the class.
- ///
- /// an instance of ApiClient (optional)
- ///
- public PetApi(ApiClient apiClient = null)
- {
- if (apiClient == null) // use the default one in Configuration
- this.ApiClient = Configuration.DefaultApiClient;
- else
- this.ApiClient = apiClient;
- }
-
- ///
- /// Initializes a new instance of the class.
- ///
- ///
- public PetApi(String basePath)
- {
- this.ApiClient = new ApiClient(basePath);
- }
-
- ///
- /// Sets the base path of the API client.
- ///
- /// The base path
- /// The base path
- public void SetBasePath(String basePath)
- {
- this.ApiClient.BasePath = basePath;
- }
-
- ///
- /// Gets the base path of the API client.
- ///
- /// The base path
- /// The base path
- public String GetBasePath(String basePath)
- {
- return this.ApiClient.BasePath;
- }
-
- ///
- /// Gets or sets the API client.
- ///
- /// An instance of the ApiClient
- public ApiClient ApiClient {get; set;}
-
- ///
- /// Add a new pet to the store
- ///
- /// Pet object that needs to be added to the store
- ///
- public void AddPet (Pet body)
- {
-
- // verify the required parameter 'body' is set
- if (body == null) throw new ApiException(400, "Missing required parameter 'body' when calling AddPet");
-
-
- var path = "/pet";
- path = path.Replace("{format}", "json");
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
- postBody = ApiClient.Serialize(body); // http body (model) parameter
-
- // authentication setting, if any
- String[] authSettings = new String[] { "petstore_auth" };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling AddPet: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling AddPet: " + response.ErrorMessage, response.ErrorMessage);
-
- return;
- }
-
- ///
- /// Deletes a pet
- ///
- /// Pet id to delete
- ///
- ///
- public void DeletePet (long? petId, string apiKey)
- {
-
- // verify the required parameter 'petId' is set
- if (petId == null) throw new ApiException(400, "Missing required parameter 'petId' when calling DeletePet");
-
-
- var path = "/pet/{petId}";
- path = path.Replace("{format}", "json");
- path = path.Replace("{" + "petId" + "}", ApiClient.ParameterToString(petId));
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
- if (apiKey != null) headerParams.Add("api_key", ApiClient.ParameterToString(apiKey)); // header parameter
-
- // authentication setting, if any
- String[] authSettings = new String[] { "petstore_auth" };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.DELETE, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling DeletePet: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling DeletePet: " + response.ErrorMessage, response.ErrorMessage);
-
- return;
- }
-
- ///
- /// Finds Pets by status Multiple status values can be provided with comma separated strings
- ///
- /// Status values that need to be considered for filter
- /// List<Pet>
- public List FindPetsByStatus (List status)
- {
-
- // verify the required parameter 'status' is set
- if (status == null) throw new ApiException(400, "Missing required parameter 'status' when calling FindPetsByStatus");
-
-
- var path = "/pet/findByStatus";
- path = path.Replace("{format}", "json");
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
- if (status != null) queryParams.Add("status", ApiClient.ParameterToString(status)); // query parameter
-
- // authentication setting, if any
- String[] authSettings = new String[] { "petstore_auth" };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling FindPetsByStatus: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling FindPetsByStatus: " + response.ErrorMessage, response.ErrorMessage);
-
- return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers);
- }
-
- ///
- /// Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
- ///
- /// Tags to filter by
- /// List<Pet>
- public List FindPetsByTags (List tags)
- {
-
- // verify the required parameter 'tags' is set
- if (tags == null) throw new ApiException(400, "Missing required parameter 'tags' when calling FindPetsByTags");
-
-
- var path = "/pet/findByTags";
- path = path.Replace("{format}", "json");
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
- if (tags != null) queryParams.Add("tags", ApiClient.ParameterToString(tags)); // query parameter
-
- // authentication setting, if any
- String[] authSettings = new String[] { "petstore_auth" };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling FindPetsByTags: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling FindPetsByTags: " + response.ErrorMessage, response.ErrorMessage);
-
- return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers);
- }
-
- ///
- /// Find pet by ID Returns a single pet
- ///
- /// ID of pet to return
- /// Pet
- public Pet GetPetById (long? petId)
- {
-
- // verify the required parameter 'petId' is set
- if (petId == null) throw new ApiException(400, "Missing required parameter 'petId' when calling GetPetById");
-
-
- var path = "/pet/{petId}";
- path = path.Replace("{format}", "json");
- path = path.Replace("{" + "petId" + "}", ApiClient.ParameterToString(petId));
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
-
- // authentication setting, if any
- String[] authSettings = new String[] { "api_key" };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling GetPetById: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling GetPetById: " + response.ErrorMessage, response.ErrorMessage);
-
- return (Pet) ApiClient.Deserialize(response.Content, typeof(Pet), response.Headers);
- }
-
- ///
- /// Update an existing pet
- ///
- /// Pet object that needs to be added to the store
- ///
- public void UpdatePet (Pet body)
- {
-
- // verify the required parameter 'body' is set
- if (body == null) throw new ApiException(400, "Missing required parameter 'body' when calling UpdatePet");
-
-
- var path = "/pet";
- path = path.Replace("{format}", "json");
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
- postBody = ApiClient.Serialize(body); // http body (model) parameter
-
- // authentication setting, if any
- String[] authSettings = new String[] { "petstore_auth" };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.PUT, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling UpdatePet: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling UpdatePet: " + response.ErrorMessage, response.ErrorMessage);
-
- return;
- }
-
- ///
- /// Updates a pet in the store with form data
- ///
- /// ID of pet that needs to be updated
- /// Updated name of the pet
- /// Updated status of the pet
- ///
- public void UpdatePetWithForm (long? petId, string name, string status)
- {
-
- // verify the required parameter 'petId' is set
- if (petId == null) throw new ApiException(400, "Missing required parameter 'petId' when calling UpdatePetWithForm");
-
-
- var path = "/pet/{petId}";
- path = path.Replace("{format}", "json");
- path = path.Replace("{" + "petId" + "}", ApiClient.ParameterToString(petId));
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
- if (name != null) formParams.Add("name", ApiClient.ParameterToString(name)); // form parameter
-if (status != null) formParams.Add("status", ApiClient.ParameterToString(status)); // form parameter
-
- // authentication setting, if any
- String[] authSettings = new String[] { "petstore_auth" };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling UpdatePetWithForm: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling UpdatePetWithForm: " + response.ErrorMessage, response.ErrorMessage);
-
- return;
- }
-
- ///
- /// uploads an image
- ///
- /// ID of pet to update
- /// Additional data to pass to server
- /// file to upload
- /// ApiResponse
- public ApiResponse UploadFile (long? petId, string additionalMetadata, System.IO.Stream file)
- {
-
- // verify the required parameter 'petId' is set
- if (petId == null) throw new ApiException(400, "Missing required parameter 'petId' when calling UploadFile");
-
-
- var path = "/pet/{petId}/uploadImage";
- path = path.Replace("{format}", "json");
- path = path.Replace("{" + "petId" + "}", ApiClient.ParameterToString(petId));
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
- if (additionalMetadata != null) formParams.Add("additionalMetadata", ApiClient.ParameterToString(additionalMetadata)); // form parameter
-if (file != null) fileParams.Add("file", ApiClient.ParameterToFile("file", file));
-
- // authentication setting, if any
- String[] authSettings = new String[] { "petstore_auth" };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling UploadFile: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling UploadFile: " + response.ErrorMessage, response.ErrorMessage);
-
- return (ApiResponse) ApiClient.Deserialize(response.Content, typeof(ApiResponse), response.Headers);
- }
-
- }
-}
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/StoreApi.cs
deleted file mode 100644
index df7be44e7b9..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/StoreApi.cs
+++ /dev/null
@@ -1,236 +0,0 @@
-using System;
-using System.Collections.Generic;
-using RestSharp;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Org.OpenAPITools.Api
-{
- ///
- /// Represents a collection of functions to interact with the API endpoints
- ///
- public interface IStoreApi
- {
- ///
- /// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
- ///
- /// ID of the order that needs to be deleted
- ///
- void DeleteOrder (string orderId);
- ///
- /// Returns pet inventories by status Returns a map of status codes to quantities
- ///
- /// Dictionary<string, int?>
- Dictionary GetInventory ();
- ///
- /// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
- ///
- /// ID of pet that needs to be fetched
- /// Order
- Order GetOrderById (long? orderId);
- ///
- /// Place an order for a pet
- ///
- /// order placed for purchasing the pet
- /// Order
- Order PlaceOrder (Order body);
- }
-
- ///
- /// Represents a collection of functions to interact with the API endpoints
- ///
- public class StoreApi : IStoreApi
- {
- ///
- /// Initializes a new instance of the class.
- ///
- /// an instance of ApiClient (optional)
- ///
- public StoreApi(ApiClient apiClient = null)
- {
- if (apiClient == null) // use the default one in Configuration
- this.ApiClient = Configuration.DefaultApiClient;
- else
- this.ApiClient = apiClient;
- }
-
- ///
- /// Initializes a new instance of the class.
- ///
- ///
- public StoreApi(String basePath)
- {
- this.ApiClient = new ApiClient(basePath);
- }
-
- ///
- /// Sets the base path of the API client.
- ///
- /// The base path
- /// The base path
- public void SetBasePath(String basePath)
- {
- this.ApiClient.BasePath = basePath;
- }
-
- ///
- /// Gets the base path of the API client.
- ///
- /// The base path
- /// The base path
- public String GetBasePath(String basePath)
- {
- return this.ApiClient.BasePath;
- }
-
- ///
- /// Gets or sets the API client.
- ///
- /// An instance of the ApiClient
- public ApiClient ApiClient {get; set;}
-
- ///
- /// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
- ///
- /// ID of the order that needs to be deleted
- ///
- public void DeleteOrder (string orderId)
- {
-
- // verify the required parameter 'orderId' is set
- if (orderId == null) throw new ApiException(400, "Missing required parameter 'orderId' when calling DeleteOrder");
-
-
- var path = "/store/order/{orderId}";
- path = path.Replace("{format}", "json");
- path = path.Replace("{" + "orderId" + "}", ApiClient.ParameterToString(orderId));
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
-
- // authentication setting, if any
- String[] authSettings = new String[] { };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.DELETE, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling DeleteOrder: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling DeleteOrder: " + response.ErrorMessage, response.ErrorMessage);
-
- return;
- }
-
- ///
- /// Returns pet inventories by status Returns a map of status codes to quantities
- ///
- /// Dictionary<string, int?>
- public Dictionary GetInventory ()
- {
-
-
- var path = "/store/inventory";
- path = path.Replace("{format}", "json");
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
-
- // authentication setting, if any
- String[] authSettings = new String[] { "api_key" };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling GetInventory: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling GetInventory: " + response.ErrorMessage, response.ErrorMessage);
-
- return (Dictionary) ApiClient.Deserialize(response.Content, typeof(Dictionary), response.Headers);
- }
-
- ///
- /// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
- ///
- /// ID of pet that needs to be fetched
- /// Order
- public Order GetOrderById (long? orderId)
- {
-
- // verify the required parameter 'orderId' is set
- if (orderId == null) throw new ApiException(400, "Missing required parameter 'orderId' when calling GetOrderById");
-
-
- var path = "/store/order/{orderId}";
- path = path.Replace("{format}", "json");
- path = path.Replace("{" + "orderId" + "}", ApiClient.ParameterToString(orderId));
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
-
- // authentication setting, if any
- String[] authSettings = new String[] { };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling GetOrderById: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling GetOrderById: " + response.ErrorMessage, response.ErrorMessage);
-
- return (Order) ApiClient.Deserialize(response.Content, typeof(Order), response.Headers);
- }
-
- ///
- /// Place an order for a pet
- ///
- /// order placed for purchasing the pet
- /// Order
- public Order PlaceOrder (Order body)
- {
-
- // verify the required parameter 'body' is set
- if (body == null) throw new ApiException(400, "Missing required parameter 'body' when calling PlaceOrder");
-
-
- var path = "/store/order";
- path = path.Replace("{format}", "json");
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
- postBody = ApiClient.Serialize(body); // http body (model) parameter
-
- // authentication setting, if any
- String[] authSettings = new String[] { };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling PlaceOrder: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling PlaceOrder: " + response.ErrorMessage, response.ErrorMessage);
-
- return (Order) ApiClient.Deserialize(response.Content, typeof(Order), response.Headers);
- }
-
- }
-}
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/UserApi.cs
deleted file mode 100644
index 3f453e6b9b2..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/UserApi.cs
+++ /dev/null
@@ -1,420 +0,0 @@
-using System;
-using System.Collections.Generic;
-using RestSharp;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Org.OpenAPITools.Api
-{
- ///
- /// Represents a collection of functions to interact with the API endpoints
- ///
- public interface IUserApi
- {
- ///
- /// Create user This can only be done by the logged in user.
- ///
- /// Created user object
- ///
- void CreateUser (User body);
- ///
- /// Creates list of users with given input array
- ///
- /// List of user object
- ///
- void CreateUsersWithArrayInput (List body);
- ///
- /// Creates list of users with given input array
- ///
- /// List of user object
- ///
- void CreateUsersWithListInput (List body);
- ///
- /// Delete user This can only be done by the logged in user.
- ///
- /// The name that needs to be deleted
- ///
- void DeleteUser (string username);
- ///
- /// Get user by user name
- ///
- /// The name that needs to be fetched. Use user1 for testing.
- /// User
- User GetUserByName (string username);
- ///
- /// Logs user into the system
- ///
- /// The user name for login
- /// The password for login in clear text
- /// string
- string LoginUser (string username, string password);
- ///
- /// Logs out current logged in user session
- ///
- ///
- void LogoutUser ();
- ///
- /// Updated user This can only be done by the logged in user.
- ///
- /// name that need to be deleted
- /// Updated user object
- ///
- void UpdateUser (string username, User body);
- }
-
- ///
- /// Represents a collection of functions to interact with the API endpoints
- ///
- public class UserApi : IUserApi
- {
- ///
- /// Initializes a new instance of the class.
- ///
- /// an instance of ApiClient (optional)
- ///
- public UserApi(ApiClient apiClient = null)
- {
- if (apiClient == null) // use the default one in Configuration
- this.ApiClient = Configuration.DefaultApiClient;
- else
- this.ApiClient = apiClient;
- }
-
- ///
- /// Initializes a new instance of the class.
- ///
- ///
- public UserApi(String basePath)
- {
- this.ApiClient = new ApiClient(basePath);
- }
-
- ///
- /// Sets the base path of the API client.
- ///
- /// The base path
- /// The base path
- public void SetBasePath(String basePath)
- {
- this.ApiClient.BasePath = basePath;
- }
-
- ///
- /// Gets the base path of the API client.
- ///
- /// The base path
- /// The base path
- public String GetBasePath(String basePath)
- {
- return this.ApiClient.BasePath;
- }
-
- ///
- /// Gets or sets the API client.
- ///
- /// An instance of the ApiClient
- public ApiClient ApiClient {get; set;}
-
- ///
- /// Create user This can only be done by the logged in user.
- ///
- /// Created user object
- ///
- public void CreateUser (User body)
- {
-
- // verify the required parameter 'body' is set
- if (body == null) throw new ApiException(400, "Missing required parameter 'body' when calling CreateUser");
-
-
- var path = "/user";
- path = path.Replace("{format}", "json");
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
- postBody = ApiClient.Serialize(body); // http body (model) parameter
-
- // authentication setting, if any
- String[] authSettings = new String[] { };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling CreateUser: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling CreateUser: " + response.ErrorMessage, response.ErrorMessage);
-
- return;
- }
-
- ///
- /// Creates list of users with given input array
- ///
- /// List of user object
- ///
- public void CreateUsersWithArrayInput (List body)
- {
-
- // verify the required parameter 'body' is set
- if (body == null) throw new ApiException(400, "Missing required parameter 'body' when calling CreateUsersWithArrayInput");
-
-
- var path = "/user/createWithArray";
- path = path.Replace("{format}", "json");
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
- postBody = ApiClient.Serialize(body); // http body (model) parameter
-
- // authentication setting, if any
- String[] authSettings = new String[] { };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling CreateUsersWithArrayInput: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling CreateUsersWithArrayInput: " + response.ErrorMessage, response.ErrorMessage);
-
- return;
- }
-
- ///
- /// Creates list of users with given input array
- ///
- /// List of user object
- ///
- public void CreateUsersWithListInput (List body)
- {
-
- // verify the required parameter 'body' is set
- if (body == null) throw new ApiException(400, "Missing required parameter 'body' when calling CreateUsersWithListInput");
-
-
- var path = "/user/createWithList";
- path = path.Replace("{format}", "json");
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
- postBody = ApiClient.Serialize(body); // http body (model) parameter
-
- // authentication setting, if any
- String[] authSettings = new String[] { };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling CreateUsersWithListInput: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling CreateUsersWithListInput: " + response.ErrorMessage, response.ErrorMessage);
-
- return;
- }
-
- ///
- /// Delete user This can only be done by the logged in user.
- ///
- /// The name that needs to be deleted
- ///
- public void DeleteUser (string username)
- {
-
- // verify the required parameter 'username' is set
- if (username == null) throw new ApiException(400, "Missing required parameter 'username' when calling DeleteUser");
-
-
- var path = "/user/{username}";
- path = path.Replace("{format}", "json");
- path = path.Replace("{" + "username" + "}", ApiClient.ParameterToString(username));
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
-
- // authentication setting, if any
- String[] authSettings = new String[] { };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.DELETE, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling DeleteUser: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling DeleteUser: " + response.ErrorMessage, response.ErrorMessage);
-
- return;
- }
-
- ///
- /// Get user by user name
- ///
- /// The name that needs to be fetched. Use user1 for testing.
- /// User
- public User GetUserByName (string username)
- {
-
- // verify the required parameter 'username' is set
- if (username == null) throw new ApiException(400, "Missing required parameter 'username' when calling GetUserByName");
-
-
- var path = "/user/{username}";
- path = path.Replace("{format}", "json");
- path = path.Replace("{" + "username" + "}", ApiClient.ParameterToString(username));
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
-
- // authentication setting, if any
- String[] authSettings = new String[] { };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling GetUserByName: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling GetUserByName: " + response.ErrorMessage, response.ErrorMessage);
-
- return (User) ApiClient.Deserialize(response.Content, typeof(User), response.Headers);
- }
-
- ///
- /// Logs user into the system
- ///
- /// The user name for login
- /// The password for login in clear text
- /// string
- public string LoginUser (string username, string password)
- {
-
- // verify the required parameter 'username' is set
- if (username == null) throw new ApiException(400, "Missing required parameter 'username' when calling LoginUser");
-
- // verify the required parameter 'password' is set
- if (password == null) throw new ApiException(400, "Missing required parameter 'password' when calling LoginUser");
-
-
- var path = "/user/login";
- path = path.Replace("{format}", "json");
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
- if (username != null) queryParams.Add("username", ApiClient.ParameterToString(username)); // query parameter
- if (password != null) queryParams.Add("password", ApiClient.ParameterToString(password)); // query parameter
-
- // authentication setting, if any
- String[] authSettings = new String[] { };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling LoginUser: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling LoginUser: " + response.ErrorMessage, response.ErrorMessage);
-
- return (string) ApiClient.Deserialize(response.Content, typeof(string), response.Headers);
- }
-
- ///
- /// Logs out current logged in user session
- ///
- ///
- public void LogoutUser ()
- {
-
-
- var path = "/user/logout";
- path = path.Replace("{format}", "json");
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
-
- // authentication setting, if any
- String[] authSettings = new String[] { };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling LogoutUser: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling LogoutUser: " + response.ErrorMessage, response.ErrorMessage);
-
- return;
- }
-
- ///
- /// Updated user This can only be done by the logged in user.
- ///
- /// name that need to be deleted
- /// Updated user object
- ///
- public void UpdateUser (string username, User body)
- {
-
- // verify the required parameter 'username' is set
- if (username == null) throw new ApiException(400, "Missing required parameter 'username' when calling UpdateUser");
-
- // verify the required parameter 'body' is set
- if (body == null) throw new ApiException(400, "Missing required parameter 'body' when calling UpdateUser");
-
-
- var path = "/user/{username}";
- path = path.Replace("{format}", "json");
- path = path.Replace("{" + "username" + "}", ApiClient.ParameterToString(username));
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
- postBody = ApiClient.Serialize(body); // http body (model) parameter
-
- // authentication setting, if any
- String[] authSettings = new String[] { };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.PUT, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling UpdateUser: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling UpdateUser: " + response.ErrorMessage, response.ErrorMessage);
-
- return;
- }
-
- }
-}
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Client/ApiClient.cs b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Client/ApiClient.cs
deleted file mode 100644
index 095f97997ec..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Client/ApiClient.cs
+++ /dev/null
@@ -1,297 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Text.RegularExpressions;
-using System.IO;
-using System.Web;
-using System.Linq;
-using System.Net;
-using System.Text;
-using Newtonsoft.Json;
-using RestSharp;
-using RestSharp.Extensions;
-
-namespace Org.OpenAPITools.Client
-{
- ///
- /// API client is mainly responible for making the HTTP call to the API backend.
- ///
- public class ApiClient
- {
- private readonly Dictionary _defaultHeaderMap = new Dictionary();
-
- ///
- /// Initializes a new instance of the class.
- ///
- /// The base path.
- public ApiClient(String basePath="http://petstore.swagger.io/v2")
- {
- BasePath = basePath;
- RestClient = new RestClient(BasePath);
- }
-
- ///
- /// Gets or sets the base path.
- ///
- /// The base path
- public string BasePath { get; set; }
-
- ///
- /// Gets or sets the RestClient.
- ///
- /// An instance of the RestClient
- public RestClient RestClient { get; set; }
-
- ///
- /// Gets the default header.
- ///
- public Dictionary DefaultHeader
- {
- get { return _defaultHeaderMap; }
- }
-
- ///
- /// Makes the HTTP request (Sync).
- ///
- /// URL path.
- /// HTTP method.
- /// Query parameters.
- /// HTTP body (POST request).
- /// Header parameters.
- /// Form parameters.
- /// File parameters.
- /// Authentication settings.
- /// Object
- public Object CallApi(String path, RestSharp.Method method, Dictionary queryParams, String postBody,
- Dictionary headerParams, Dictionary formParams,
- Dictionary fileParams, String[] authSettings)
- {
-
- var request = new RestRequest(path, method);
-
- UpdateParamsForAuth(queryParams, headerParams, authSettings);
-
- // add default header, if any
- foreach(var defaultHeader in _defaultHeaderMap)
- request.AddHeader(defaultHeader.Key, defaultHeader.Value);
-
- // add header parameter, if any
- foreach(var param in headerParams)
- request.AddHeader(param.Key, param.Value);
-
- // add query parameter, if any
- foreach(var param in queryParams)
- request.AddParameter(param.Key, param.Value, ParameterType.GetOrPost);
-
- // add form parameter, if any
- foreach(var param in formParams)
- request.AddParameter(param.Key, param.Value, ParameterType.GetOrPost);
-
- // add file parameter, if any
- foreach(var param in fileParams)
- request.AddFile(param.Value.Name, param.Value.Writer, param.Value.FileName, param.Value.ContentType);
-
- if (postBody != null) // http body (model) parameter
- request.AddParameter("application/json", postBody, ParameterType.RequestBody);
-
- return (Object)RestClient.Execute(request);
-
- }
-
- ///
- /// Add default header.
- ///
- /// Header field name.
- /// Header field value.
- ///
- public void AddDefaultHeader(string key, string value)
- {
- _defaultHeaderMap.Add(key, value);
- }
-
- ///
- /// Escape string (url-encoded).
- ///
- /// String to be escaped.
- /// Escaped string.
- public string EscapeString(string str)
- {
- return RestSharp.Contrib.HttpUtility.UrlEncode(str);
- }
-
- ///
- /// Create FileParameter based on Stream.
- ///
- /// Parameter name.
- /// Input stream.
- /// FileParameter.
- public FileParameter ParameterToFile(string name, Stream stream)
- {
- if (stream is FileStream)
- return FileParameter.Create(name, stream.ReadAsBytes(), Path.GetFileName(((FileStream)stream).Name));
- else
- return FileParameter.Create(name, stream.ReadAsBytes(), "no_file_name_provided");
- }
-
- ///
- /// If parameter is DateTime, output in a formatted string (default ISO 8601), customizable with Configuration.DateTime.
- /// If parameter is a list of string, join the list with ",".
- /// Otherwise just return the string.
- ///
- /// The parameter (header, path, query, form).
- /// Formatted string.
- public string ParameterToString(object obj)
- {
- if (obj is DateTime)
- // Return a formatted date string - Can be customized with Configuration.DateTimeFormat
- // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o")
- // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8
- // For example: 2009-06-15T13:45:30.0000000
- return ((DateTime)obj).ToString (Configuration.DateTimeFormat);
- else if (obj is List)
- return String.Join(",", (obj as List).ToArray());
- else
- return Convert.ToString (obj);
- }
-
- ///
- /// Deserialize the JSON string into a proper object.
- ///
- /// HTTP body (e.g. string, JSON).
- /// Object type.
- /// HTTP headers.
- /// Object representation of the JSON string.
- public object Deserialize(string content, Type type, IList headers=null)
- {
- if (type == typeof(Object)) // return an object
- {
- return content;
- }
-
- if (type == typeof(Stream))
- {
- var filePath = String.IsNullOrEmpty(Configuration.TempFolderPath)
- ? Path.GetTempPath()
- : Configuration.TempFolderPath;
-
- var fileName = filePath + Guid.NewGuid();
- if (headers != null)
- {
- var regex = new Regex(@"Content-Disposition:.*filename=['""]?([^'""\s]+)['""]?$");
- var match = regex.Match(headers.ToString());
- if (match.Success)
- fileName = filePath + match.Value.Replace("\"", "").Replace("'", "");
- }
- File.WriteAllText(fileName, content);
- return new FileStream(fileName, FileMode.Open);
-
- }
-
- if (type.Name.StartsWith("System.Nullable`1[[System.DateTime")) // return a datetime object
- {
- return DateTime.Parse(content, null, System.Globalization.DateTimeStyles.RoundtripKind);
- }
-
- if (type == typeof(String) || type.Name.StartsWith("System.Nullable")) // return primitive type
- {
- return ConvertType(content, type);
- }
-
- // at this point, it must be a model (json)
- try
- {
- return JsonConvert.DeserializeObject(content, type);
- }
- catch (IOException e)
- {
- throw new ApiException(500, e.Message);
- }
- }
-
- ///
- /// Serialize an object into JSON string.
- ///
- /// Object.
- /// JSON string.
- public string Serialize(object obj)
- {
- try
- {
- return obj != null ? JsonConvert.SerializeObject(obj) : null;
- }
- catch (Exception e)
- {
- throw new ApiException(500, e.Message);
- }
- }
-
- ///
- /// Get the API key with prefix.
- ///
- /// API key identifier (authentication scheme).
- /// API key with prefix.
- public string GetApiKeyWithPrefix (string apiKeyIdentifier)
- {
- var apiKeyValue = "";
- Configuration.ApiKey.TryGetValue (apiKeyIdentifier, out apiKeyValue);
- var apiKeyPrefix = "";
- if (Configuration.ApiKeyPrefix.TryGetValue (apiKeyIdentifier, out apiKeyPrefix))
- return apiKeyPrefix + " " + apiKeyValue;
- else
- return apiKeyValue;
- }
-
- ///
- /// Update parameters based on authentication.
- ///
- /// Query parameters.
- /// Header parameters.
- /// Authentication settings.
- public void UpdateParamsForAuth(Dictionary queryParams, Dictionary headerParams, string[] authSettings)
- {
- if (authSettings == null || authSettings.Length == 0)
- return;
-
- foreach (string auth in authSettings)
- {
- // determine which one to use
- switch(auth)
- {
- case "api_key":
- headerParams["api_key"] = GetApiKeyWithPrefix("api_key");
-
- break;
- case "petstore_auth":
-
- //TODO support oauth
- break;
- default:
- //TODO show warning about security definition not found
- break;
- }
- }
- }
-
- ///
- /// Encode string in base64 format.
- ///
- /// String to be encoded.
- /// Encoded string.
- public static string Base64Encode(string text)
- {
- var textByte = System.Text.Encoding.UTF8.GetBytes(text);
- return System.Convert.ToBase64String(textByte);
- }
-
- ///
- /// Dynamically cast the object into target type.
- ///
- /// Object to be casted
- /// Target type
- /// Casted object
- public static Object ConvertType(Object fromObject, Type toObject) {
- return Convert.ChangeType(fromObject, toObject);
- }
-
- }
-}
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Client/ApiException.cs b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Client/ApiException.cs
deleted file mode 100644
index 7985897b93e..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Client/ApiException.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-using System;
-
-namespace Org.OpenAPITools.Client {
- ///
- /// API Exception
- ///
- public class ApiException : Exception {
- ///
- /// Gets or sets the error code (HTTP status code)
- ///
- /// The error code (HTTP status code).
- public int ErrorCode { get; set; }
-
- ///
- /// Gets or sets the error content (body json object)
- ///
- /// The error content (Http response body).
- public Object ErrorContent { get; private set; }
-
- ///
- /// Initializes a new instance of the class.
- ///
- public ApiException() {}
-
- ///
- /// Initializes a new instance of the class.
- ///
- /// HTTP status code.
- /// Error message.
- public ApiException(int errorCode, string message) : base(message) {
- this.ErrorCode = errorCode;
- }
-
- ///
- /// Initializes a new instance of the class.
- ///
- /// HTTP status code.
- /// Error message.
- /// Error content.
- public ApiException(int errorCode, string message, Object errorContent = null) : base(message) {
- this.ErrorCode = errorCode;
- this.ErrorContent = errorContent;
- }
-
- }
-
-}
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Client/Configuration.cs b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Client/Configuration.cs
deleted file mode 100644
index 7546607fa99..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Client/Configuration.cs
+++ /dev/null
@@ -1,132 +0,0 @@
-using System;
-using System.Reflection;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Text;
-
-namespace Org.OpenAPITools.Client
-{
- ///
- /// Represents a set of configuration settings
- ///
- public class Configuration
- {
-
- ///
- /// Version of the package.
- ///
- /// Version of the package.
- public const string Version = "1.0.0";
-
- ///
- /// Gets or sets the default API client for making HTTP calls.
- ///
- /// The API client.
- public static ApiClient DefaultApiClient = new ApiClient();
-
- ///
- /// Gets or sets the username (HTTP basic authentication).
- ///
- /// The username.
- public static String Username { get; set; }
-
- ///
- /// Gets or sets the password (HTTP basic authentication).
- ///
- /// The password.
- public static String Password { get; set; }
-
- ///
- /// Gets or sets the API key based on the authentication name.
- ///
- /// The API key.
- public static Dictionary ApiKey = new Dictionary();
-
- ///
- /// Gets or sets the prefix (e.g. Token) of the API key based on the authentication name.
- ///
- /// The prefix of the API key.
- public static Dictionary ApiKeyPrefix = new Dictionary();
-
- private static string _tempFolderPath = Path.GetTempPath();
-
- ///
- /// Gets or sets the temporary folder path to store the files downloaded from the server.
- ///
- /// Folder path.
- public static String TempFolderPath
- {
- get { return _tempFolderPath; }
-
- set
- {
- if (String.IsNullOrEmpty(value))
- {
- _tempFolderPath = value;
- return;
- }
-
- // create the directory if it does not exist
- if (!Directory.Exists(value))
- Directory.CreateDirectory(value);
-
- // check if the path contains directory separator at the end
- if (value[value.Length - 1] == Path.DirectorySeparatorChar)
- _tempFolderPath = value;
- else
- _tempFolderPath = value + Path.DirectorySeparatorChar;
- }
- }
-
- private const string ISO8601_DATETIME_FORMAT = "o";
-
- private static string _dateTimeFormat = ISO8601_DATETIME_FORMAT;
-
- ///
- /// Gets or sets the date time format used when serializing in the ApiClient
- /// By default, it's set to ISO 8601 - "o", for others see:
- /// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx
- /// and https://msdn.microsoft.com/en-us/library/8kb3ddd4(v=vs.110).aspx
- /// No validation is done to ensure that the string you're providing is valid
- ///
- /// The DateTimeFormat string
- public static String DateTimeFormat
- {
- get
- {
- return _dateTimeFormat;
- }
- set
- {
- if (string.IsNullOrEmpty(value))
- {
- // Never allow a blank or null string, go back to the default
- _dateTimeFormat = ISO8601_DATETIME_FORMAT;
- return;
- }
-
- // Caution, no validation when you choose date time format other than ISO 8601
- // Take a look at the above links
- _dateTimeFormat = value;
- }
- }
-
- ///
- /// Returns a string with essential information for debugging.
- ///
- public static String ToDebugReport()
- {
- String report = "C# SDK (Org.OpenAPITools) Debug Report:\n";
- report += " OS: " + Environment.OSVersion + "\n";
- report += " .NET Framework Version: " + Assembly
- .GetExecutingAssembly()
- .GetReferencedAssemblies()
- .Where(x => x.Name == "System.Core").First().Version.ToString() + "\n";
- report += " Version of the API: 1.0.0\n";
- report += " SDK Package Version: 1.0.0\n";
-
- return report;
- }
- }
-}
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Model/ApiResponse.cs
deleted file mode 100644
index 648aaeba5b1..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Model/ApiResponse.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-using System;
-using System.Text;
-using System.Collections;
-using System.Collections.Generic;
-using System.Runtime.Serialization;
-using Newtonsoft.Json;
-
-namespace Org.OpenAPITools.Model {
-
- ///
- /// Describes the result of uploading an image resource
- ///
- [DataContract]
- public class ApiResponse {
- ///
- /// Gets or Sets Code
- ///
- [DataMember(Name="code", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "code")]
- public int? Code { get; set; }
-
- ///
- /// Gets or Sets Type
- ///
- [DataMember(Name="type", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "type")]
- public string Type { get; set; }
-
- ///
- /// Gets or Sets Message
- ///
- [DataMember(Name="message", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "message")]
- public string Message { get; set; }
-
-
- ///
- /// Get the string presentation of the object
- ///
- /// String presentation of the object
- public override string ToString() {
- var sb = new StringBuilder();
- sb.Append("class ApiResponse {\n");
- sb.Append(" Code: ").Append(Code).Append("\n");
- sb.Append(" Type: ").Append(Type).Append("\n");
- sb.Append(" Message: ").Append(Message).Append("\n");
- sb.Append("}\n");
- return sb.ToString();
- }
-
- ///
- /// Get the JSON string presentation of the object
- ///
- /// JSON string presentation of the object
- public string ToJson() {
- return JsonConvert.SerializeObject(this, Formatting.Indented);
- }
-
-}
-}
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Model/Category.cs
deleted file mode 100644
index 847279502e2..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Model/Category.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-using System;
-using System.Text;
-using System.Collections;
-using System.Collections.Generic;
-using System.Runtime.Serialization;
-using Newtonsoft.Json;
-
-namespace Org.OpenAPITools.Model {
-
- ///
- /// A category for a pet
- ///
- [DataContract]
- public class Category {
- ///
- /// Gets or Sets Id
- ///
- [DataMember(Name="id", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "id")]
- public long? Id { get; set; }
-
- ///
- /// Gets or Sets Name
- ///
- [DataMember(Name="name", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "name")]
- public string Name { get; set; }
-
-
- ///
- /// Get the string presentation of the object
- ///
- /// String presentation of the object
- public override string ToString() {
- var sb = new StringBuilder();
- sb.Append("class Category {\n");
- sb.Append(" Id: ").Append(Id).Append("\n");
- sb.Append(" Name: ").Append(Name).Append("\n");
- sb.Append("}\n");
- return sb.ToString();
- }
-
- ///
- /// Get the JSON string presentation of the object
- ///
- /// JSON string presentation of the object
- public string ToJson() {
- return JsonConvert.SerializeObject(this, Formatting.Indented);
- }
-
-}
-}
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Model/InlineObject.cs b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Model/InlineObject.cs
deleted file mode 100644
index 2de88324c58..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Model/InlineObject.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-using System;
-using System.Text;
-using System.Collections;
-using System.Collections.Generic;
-using System.Runtime.Serialization;
-using Newtonsoft.Json;
-
-namespace Org.OpenAPITools.Model {
-
- ///
- ///
- ///
- [DataContract]
- public class InlineObject {
- ///
- /// Updated name of the pet
- ///
- /// Updated name of the pet
- [DataMember(Name="name", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "name")]
- public string Name { get; set; }
-
- ///
- /// Updated status of the pet
- ///
- /// Updated status of the pet
- [DataMember(Name="status", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "status")]
- public string Status { get; set; }
-
-
- ///
- /// Get the string presentation of the object
- ///
- /// String presentation of the object
- public override string ToString() {
- var sb = new StringBuilder();
- sb.Append("class InlineObject {\n");
- sb.Append(" Name: ").Append(Name).Append("\n");
- sb.Append(" Status: ").Append(Status).Append("\n");
- sb.Append("}\n");
- return sb.ToString();
- }
-
- ///
- /// Get the JSON string presentation of the object
- ///
- /// JSON string presentation of the object
- public string ToJson() {
- return JsonConvert.SerializeObject(this, Formatting.Indented);
- }
-
-}
-}
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Model/InlineObject1.cs b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Model/InlineObject1.cs
deleted file mode 100644
index 03d1fa0c786..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Model/InlineObject1.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-using System;
-using System.Text;
-using System.Collections;
-using System.Collections.Generic;
-using System.Runtime.Serialization;
-using Newtonsoft.Json;
-
-namespace Org.OpenAPITools.Model {
-
- ///
- ///
- ///
- [DataContract]
- public class InlineObject1 {
- ///
- /// Additional data to pass to server
- ///
- /// Additional data to pass to server
- [DataMember(Name="additionalMetadata", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "additionalMetadata")]
- public string AdditionalMetadata { get; set; }
-
- ///
- /// file to upload
- ///
- /// file to upload
- [DataMember(Name="file", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "file")]
- public System.IO.Stream File { get; set; }
-
-
- ///
- /// Get the string presentation of the object
- ///
- /// String presentation of the object
- public override string ToString() {
- var sb = new StringBuilder();
- sb.Append("class InlineObject1 {\n");
- sb.Append(" AdditionalMetadata: ").Append(AdditionalMetadata).Append("\n");
- sb.Append(" File: ").Append(File).Append("\n");
- sb.Append("}\n");
- return sb.ToString();
- }
-
- ///
- /// Get the JSON string presentation of the object
- ///
- /// JSON string presentation of the object
- public string ToJson() {
- return JsonConvert.SerializeObject(this, Formatting.Indented);
- }
-
-}
-}
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Model/Order.cs
deleted file mode 100644
index c19511ca3f8..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Model/Order.cs
+++ /dev/null
@@ -1,85 +0,0 @@
-using System;
-using System.Text;
-using System.Collections;
-using System.Collections.Generic;
-using System.Runtime.Serialization;
-using Newtonsoft.Json;
-
-namespace Org.OpenAPITools.Model {
-
- ///
- /// An order for a pets from the pet store
- ///
- [DataContract]
- public class Order {
- ///
- /// Gets or Sets Id
- ///
- [DataMember(Name="id", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "id")]
- public long? Id { get; set; }
-
- ///
- /// Gets or Sets PetId
- ///
- [DataMember(Name="petId", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "petId")]
- public long? PetId { get; set; }
-
- ///
- /// Gets or Sets Quantity
- ///
- [DataMember(Name="quantity", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "quantity")]
- public int? Quantity { get; set; }
-
- ///
- /// Gets or Sets ShipDate
- ///
- [DataMember(Name="shipDate", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "shipDate")]
- public DateTime? ShipDate { get; set; }
-
- ///
- /// Order Status
- ///
- /// Order Status
- [DataMember(Name="status", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "status")]
- public string Status { get; set; }
-
- ///
- /// Gets or Sets Complete
- ///
- [DataMember(Name="complete", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "complete")]
- public bool? Complete { get; set; }
-
-
- ///
- /// Get the string presentation of the object
- ///
- /// String presentation of the object
- public override string ToString() {
- var sb = new StringBuilder();
- sb.Append("class Order {\n");
- sb.Append(" Id: ").Append(Id).Append("\n");
- sb.Append(" PetId: ").Append(PetId).Append("\n");
- sb.Append(" Quantity: ").Append(Quantity).Append("\n");
- sb.Append(" ShipDate: ").Append(ShipDate).Append("\n");
- sb.Append(" Status: ").Append(Status).Append("\n");
- sb.Append(" Complete: ").Append(Complete).Append("\n");
- sb.Append("}\n");
- return sb.ToString();
- }
-
- ///
- /// Get the JSON string presentation of the object
- ///
- /// JSON string presentation of the object
- public string ToJson() {
- return JsonConvert.SerializeObject(this, Formatting.Indented);
- }
-
-}
-}
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Model/Pet.cs
deleted file mode 100644
index 71ec62aa9c8..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Model/Pet.cs
+++ /dev/null
@@ -1,85 +0,0 @@
-using System;
-using System.Text;
-using System.Collections;
-using System.Collections.Generic;
-using System.Runtime.Serialization;
-using Newtonsoft.Json;
-
-namespace Org.OpenAPITools.Model {
-
- ///
- /// A pet for sale in the pet store
- ///
- [DataContract]
- public class Pet {
- ///
- /// Gets or Sets Id
- ///
- [DataMember(Name="id", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "id")]
- public long? Id { get; set; }
-
- ///
- /// Gets or Sets Category
- ///
- [DataMember(Name="category", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "category")]
- public Category Category { get; set; }
-
- ///
- /// Gets or Sets Name
- ///
- [DataMember(Name="name", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "name")]
- public string Name { get; set; }
-
- ///
- /// Gets or Sets PhotoUrls
- ///
- [DataMember(Name="photoUrls", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "photoUrls")]
- public List PhotoUrls { get; set; }
-
- ///
- /// Gets or Sets Tags
- ///
- [DataMember(Name="tags", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "tags")]
- public List Tags { get; set; }
-
- ///
- /// pet status in the store
- ///
- /// pet status in the store
- [DataMember(Name="status", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "status")]
- public string Status { get; set; }
-
-
- ///
- /// Get the string presentation of the object
- ///
- /// String presentation of the object
- public override string ToString() {
- var sb = new StringBuilder();
- sb.Append("class Pet {\n");
- sb.Append(" Id: ").Append(Id).Append("\n");
- sb.Append(" Category: ").Append(Category).Append("\n");
- sb.Append(" Name: ").Append(Name).Append("\n");
- sb.Append(" PhotoUrls: ").Append(PhotoUrls).Append("\n");
- sb.Append(" Tags: ").Append(Tags).Append("\n");
- sb.Append(" Status: ").Append(Status).Append("\n");
- sb.Append("}\n");
- return sb.ToString();
- }
-
- ///
- /// Get the JSON string presentation of the object
- ///
- /// JSON string presentation of the object
- public string ToJson() {
- return JsonConvert.SerializeObject(this, Formatting.Indented);
- }
-
-}
-}
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Model/Tag.cs
deleted file mode 100644
index 6399695a50a..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Model/Tag.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-using System;
-using System.Text;
-using System.Collections;
-using System.Collections.Generic;
-using System.Runtime.Serialization;
-using Newtonsoft.Json;
-
-namespace Org.OpenAPITools.Model {
-
- ///
- /// A tag for a pet
- ///
- [DataContract]
- public class Tag {
- ///
- /// Gets or Sets Id
- ///
- [DataMember(Name="id", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "id")]
- public long? Id { get; set; }
-
- ///
- /// Gets or Sets Name
- ///
- [DataMember(Name="name", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "name")]
- public string Name { get; set; }
-
-
- ///
- /// Get the string presentation of the object
- ///
- /// String presentation of the object
- public override string ToString() {
- var sb = new StringBuilder();
- sb.Append("class Tag {\n");
- sb.Append(" Id: ").Append(Id).Append("\n");
- sb.Append(" Name: ").Append(Name).Append("\n");
- sb.Append("}\n");
- return sb.ToString();
- }
-
- ///
- /// Get the JSON string presentation of the object
- ///
- /// JSON string presentation of the object
- public string ToJson() {
- return JsonConvert.SerializeObject(this, Formatting.Indented);
- }
-
-}
-}
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Model/User.cs b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Model/User.cs
deleted file mode 100644
index c6af059dcdc..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/src/main/CsharpDotNet2/Org/OpenAPITools/Model/User.cs
+++ /dev/null
@@ -1,101 +0,0 @@
-using System;
-using System.Text;
-using System.Collections;
-using System.Collections.Generic;
-using System.Runtime.Serialization;
-using Newtonsoft.Json;
-
-namespace Org.OpenAPITools.Model {
-
- ///
- /// A User who is purchasing from the pet store
- ///
- [DataContract]
- public class User {
- ///
- /// Gets or Sets Id
- ///
- [DataMember(Name="id", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "id")]
- public long? Id { get; set; }
-
- ///
- /// Gets or Sets Username
- ///
- [DataMember(Name="username", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "username")]
- public string Username { get; set; }
-
- ///
- /// Gets or Sets FirstName
- ///
- [DataMember(Name="firstName", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "firstName")]
- public string FirstName { get; set; }
-
- ///
- /// Gets or Sets LastName
- ///
- [DataMember(Name="lastName", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "lastName")]
- public string LastName { get; set; }
-
- ///
- /// Gets or Sets Email
- ///
- [DataMember(Name="email", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "email")]
- public string Email { get; set; }
-
- ///
- /// Gets or Sets Password
- ///
- [DataMember(Name="password", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "password")]
- public string Password { get; set; }
-
- ///
- /// Gets or Sets Phone
- ///
- [DataMember(Name="phone", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "phone")]
- public string Phone { get; set; }
-
- ///
- /// User Status
- ///
- /// User Status
- [DataMember(Name="userStatus", EmitDefaultValue=false)]
- [JsonProperty(PropertyName = "userStatus")]
- public int? UserStatus { get; set; }
-
-
- ///
- /// Get the string presentation of the object
- ///
- /// String presentation of the object
- public override string ToString() {
- var sb = new StringBuilder();
- sb.Append("class User {\n");
- sb.Append(" Id: ").Append(Id).Append("\n");
- sb.Append(" Username: ").Append(Username).Append("\n");
- sb.Append(" FirstName: ").Append(FirstName).Append("\n");
- sb.Append(" LastName: ").Append(LastName).Append("\n");
- sb.Append(" Email: ").Append(Email).Append("\n");
- sb.Append(" Password: ").Append(Password).Append("\n");
- sb.Append(" Phone: ").Append(Phone).Append("\n");
- sb.Append(" UserStatus: ").Append(UserStatus).Append("\n");
- sb.Append("}\n");
- return sb.ToString();
- }
-
- ///
- /// Get the JSON string presentation of the object
- ///
- /// JSON string presentation of the object
- public string ToJson() {
- return JsonConvert.SerializeObject(this, Formatting.Indented);
- }
-
-}
-}
diff --git a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/vendor/packages.config b/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/vendor/packages.config
deleted file mode 100644
index 7b9cf186303..00000000000
--- a/samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient/vendor/packages.config
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/.openapi-generator-ignore b/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/.openapi-generator-ignore
deleted file mode 100644
index 7484ee590a3..00000000000
--- a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/.openapi-generator-ignore
+++ /dev/null
@@ -1,23 +0,0 @@
-# OpenAPI Generator Ignore
-# Generated by openapi-generator https://github.com/openapitools/openapi-generator
-
-# Use this file to prevent files from being overwritten by the generator.
-# The patterns follow closely to .gitignore or .dockerignore.
-
-# As an example, the C# client generator defines ApiClient.cs.
-# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
-#ApiClient.cs
-
-# You can match any string of characters against a directory, file or extension with a single asterisk (*):
-#foo/*/qux
-# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
-
-# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
-#foo/**/qux
-# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
-
-# You can also negate patterns with an exclamation (!).
-# For example, you can ignore all files in a docs folder with the file extension .md:
-#docs/*.md
-# Then explicitly reverse the ignore rule for a single file:
-#!docs/README.md
diff --git a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/.openapi-generator/VERSION b/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/.openapi-generator/VERSION
deleted file mode 100644
index 6d94c9c2e12..00000000000
--- a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/.openapi-generator/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-3.3.0-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/README.md b/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/README.md
deleted file mode 100644
index 6b861dfd723..00000000000
--- a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/README.md
+++ /dev/null
@@ -1,131 +0,0 @@
-# Org.OpenAPITools - the C# library for the OpenAPI Petstore
-
-This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
-
-This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
-
-- API version: 1.0.0
-- SDK version: 1.0.0
-- Build package: org.openapitools.codegen.languages.CSharpDotNet2ClientCodegen
-
-
-## Frameworks supported
-- .NET 2.0
-
-
-## Dependencies
-- Mono compiler
-- Newtonsoft.Json.7.0.1
-- RestSharp.Net2.1.1.11
-
-Note: NuGet is downloaded by the mono compilation script and packages are installed with it. No dependency DLLs are bundled with this generator
-
-
-## Installation
-Run the following command to generate the DLL
-- [Mac/Linux] `/bin/sh compile-mono.sh`
-- [Windows] TODO
-
-Then include the DLL (under the `bin` folder) in the C# project, and use the namespaces:
-```csharp
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-```
-
-## Getting Started
-
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class Example
- {
- public void main()
- {
-
- // Configure OAuth2 access token for authorization: petstore_auth
- Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
-
- var apiInstance = new PetApi();
- var pet = new Pet(); // Pet | Pet object that needs to be added to the store
-
- try
- {
- // Add a new pet to the store
- apiInstance.AddPet(pet);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling PetApi.AddPet: " + e.Message );
- }
- }
- }
-}
-```
-
-
-## Documentation for API Endpoints
-
-All URIs are relative to *http://petstore.swagger.io/v2*
-
-Class | Method | HTTP request | Description
------------- | ------------- | ------------- | -------------
-*PetApi* | [**AddPet**](docs/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store
-*PetApi* | [**DeletePet**](docs/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
-*PetApi* | [**FindPetsByStatus**](docs/PetApi.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status
-*PetApi* | [**FindPetsByTags**](docs/PetApi.md#findpetsbytags) | **GET** /pet/findByTags | Finds Pets by tags
-*PetApi* | [**GetPetById**](docs/PetApi.md#getpetbyid) | **GET** /pet/{petId} | Find pet by ID
-*PetApi* | [**UpdatePet**](docs/PetApi.md#updatepet) | **PUT** /pet | Update an existing pet
-*PetApi* | [**UpdatePetWithForm**](docs/PetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
-*PetApi* | [**UploadFile**](docs/PetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
-*StoreApi* | [**DeleteOrder**](docs/StoreApi.md#deleteorder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID
-*StoreApi* | [**GetInventory**](docs/StoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
-*StoreApi* | [**GetOrderById**](docs/StoreApi.md#getorderbyid) | **GET** /store/order/{orderId} | Find purchase order by ID
-*StoreApi* | [**PlaceOrder**](docs/StoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet
-*UserApi* | [**CreateUser**](docs/UserApi.md#createuser) | **POST** /user | Create user
-*UserApi* | [**CreateUsersWithArrayInput**](docs/UserApi.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array
-*UserApi* | [**CreateUsersWithListInput**](docs/UserApi.md#createuserswithlistinput) | **POST** /user/createWithList | Creates list of users with given input array
-*UserApi* | [**DeleteUser**](docs/UserApi.md#deleteuser) | **DELETE** /user/{username} | Delete user
-*UserApi* | [**GetUserByName**](docs/UserApi.md#getuserbyname) | **GET** /user/{username} | Get user by user name
-*UserApi* | [**LoginUser**](docs/UserApi.md#loginuser) | **GET** /user/login | Logs user into the system
-*UserApi* | [**LogoutUser**](docs/UserApi.md#logoutuser) | **GET** /user/logout | Logs out current logged in user session
-*UserApi* | [**UpdateUser**](docs/UserApi.md#updateuser) | **PUT** /user/{username} | Updated user
-
-
-
-## Documentation for Models
-
- - [Org.OpenAPITools.Model.ApiResponse](docs/ApiResponse.md)
- - [Org.OpenAPITools.Model.Category](docs/Category.md)
- - [Org.OpenAPITools.Model.Order](docs/Order.md)
- - [Org.OpenAPITools.Model.Pet](docs/Pet.md)
- - [Org.OpenAPITools.Model.Tag](docs/Tag.md)
- - [Org.OpenAPITools.Model.User](docs/User.md)
-
-
-
-## Documentation for Authorization
-
-
-### api_key
-
-- **Type**: API key
-- **API key parameter name**: api_key
-- **Location**: HTTP header
-
-
-### petstore_auth
-
-- **Type**: OAuth
-- **Flow**: implicit
-- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog
-- **Scopes**:
- - write:pets: modify pets in your account
- - read:pets: read your pets
-
diff --git a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/compile-mono.sh b/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/compile-mono.sh
deleted file mode 100644
index 8e6e23eba08..00000000000
--- a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/compile-mono.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-wget -nc https://dist.nuget.org/win-x86-commandline/latest/nuget.exe;
-mozroots --import --sync
-mono nuget.exe install vendor/packages.config -o vendor;
-mkdir -p bin;
-mcs -sdk:2 -r:vendor/Newtonsoft.Json.7.0.1/lib/net20/Newtonsoft.Json.dll,\
-vendor/RestSharp.Net2.1.1.11/lib/net20/RestSharp.Net2.dll,\
-System.Runtime.Serialization.dll \
--target:library \
--out:bin/Org.OpenAPITools.dll \
--recurse:'src/*.cs' \
--doc:bin/Org.OpenAPITools.xml \
--platform:anycpu
diff --git a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/ApiResponse.md b/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/ApiResponse.md
deleted file mode 100644
index 01b35815bd4..00000000000
--- a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/ApiResponse.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# Org.OpenAPITools.Model.ApiResponse
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Code** | **int?** | | [optional]
-**Type** | **string** | | [optional]
-**Message** | **string** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/Category.md b/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/Category.md
deleted file mode 100644
index 860a468e35c..00000000000
--- a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/Category.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Org.OpenAPITools.Model.Category
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **long?** | | [optional]
-**Name** | **string** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/Order.md b/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/Order.md
deleted file mode 100644
index 984bd5ca063..00000000000
--- a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/Order.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# Org.OpenAPITools.Model.Order
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **long?** | | [optional]
-**PetId** | **long?** | | [optional]
-**Quantity** | **int?** | | [optional]
-**ShipDate** | **DateTime?** | | [optional]
-**Status** | **string** | Order Status | [optional]
-**Complete** | **bool?** | | [optional] [default to false]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/Pet.md b/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/Pet.md
deleted file mode 100644
index ce9fe873cd2..00000000000
--- a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/Pet.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# Org.OpenAPITools.Model.Pet
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **long?** | | [optional]
-**Category** | [**Category**](Category.md) | | [optional]
-**Name** | **string** | |
-**PhotoUrls** | **List** | |
-**Tags** | [**List**](Tag.md) | | [optional]
-**Status** | **string** | pet status in the store | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/PetApi.md b/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/PetApi.md
deleted file mode 100644
index 0051c617a1d..00000000000
--- a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/PetApi.md
+++ /dev/null
@@ -1,534 +0,0 @@
-# Org.OpenAPITools.Api.PetApi
-
-All URIs are relative to *http://petstore.swagger.io/v2*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**AddPet**](PetApi.md#addpet) | **POST** /pet | Add a new pet to the store
-[**DeletePet**](PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
-[**FindPetsByStatus**](PetApi.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status
-[**FindPetsByTags**](PetApi.md#findpetsbytags) | **GET** /pet/findByTags | Finds Pets by tags
-[**GetPetById**](PetApi.md#getpetbyid) | **GET** /pet/{petId} | Find pet by ID
-[**UpdatePet**](PetApi.md#updatepet) | **PUT** /pet | Update an existing pet
-[**UpdatePetWithForm**](PetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
-[**UploadFile**](PetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
-
-
-
-# **AddPet**
-> void AddPet (Pet pet)
-
-Add a new pet to the store
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class AddPetExample
- {
- public void main()
- {
-
- // Configure OAuth2 access token for authorization: petstore_auth
- Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
-
- var apiInstance = new PetApi();
- var pet = new Pet(); // Pet | Pet object that needs to be added to the store
-
- try
- {
- // Add a new pet to the store
- apiInstance.AddPet(pet);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling PetApi.AddPet: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: application/json, application/xml
- - **Accept**: Not defined
-
-[[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)
-
-
-# **DeletePet**
-> void DeletePet (long? petId, string apiKey)
-
-Deletes a pet
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class DeletePetExample
- {
- public void main()
- {
-
- // Configure OAuth2 access token for authorization: petstore_auth
- Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
-
- var apiInstance = new PetApi();
- var petId = 789; // long? | Pet id to delete
- var apiKey = apiKey_example; // string | (optional)
-
- try
- {
- // Deletes a pet
- apiInstance.DeletePet(petId, apiKey);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling PetApi.DeletePet: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **petId** | **long?**| Pet id to delete |
- **apiKey** | **string**| | [optional]
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-[[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)
-
-
-# **FindPetsByStatus**
-> List FindPetsByStatus (List status)
-
-Finds Pets by status
-
-Multiple status values can be provided with comma separated strings
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class FindPetsByStatusExample
- {
- public void main()
- {
-
- // Configure OAuth2 access token for authorization: petstore_auth
- Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
-
- var apiInstance = new PetApi();
- var status = status_example; // List | Status values that need to be considered for filter
-
- try
- {
- // Finds Pets by status
- List<Pet> result = apiInstance.FindPetsByStatus(status);
- Debug.WriteLine(result);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling PetApi.FindPetsByStatus: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **status** | **List**| Status values that need to be considered for filter |
-
-### Return type
-
-[**List**](Pet.md)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-[[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)
-
-
-# **FindPetsByTags**
-> List FindPetsByTags (List tags)
-
-Finds Pets by tags
-
-Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class FindPetsByTagsExample
- {
- public void main()
- {
-
- // Configure OAuth2 access token for authorization: petstore_auth
- Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
-
- var apiInstance = new PetApi();
- var tags = new List(); // List | Tags to filter by
-
- try
- {
- // Finds Pets by tags
- List<Pet> result = apiInstance.FindPetsByTags(tags);
- Debug.WriteLine(result);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling PetApi.FindPetsByTags: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **tags** | [**List**](string.md)| Tags to filter by |
-
-### Return type
-
-[**List**](Pet.md)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-[[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)
-
-
-# **GetPetById**
-> Pet GetPetById (long? petId)
-
-Find pet by ID
-
-Returns a single pet
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class GetPetByIdExample
- {
- public void main()
- {
-
- // Configure API key authorization: api_key
- Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
- // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
- // Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");
-
- var apiInstance = new PetApi();
- var petId = 789; // long? | ID of pet to return
-
- try
- {
- // Find pet by ID
- Pet result = apiInstance.GetPetById(petId);
- Debug.WriteLine(result);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling PetApi.GetPetById: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **petId** | **long?**| ID of pet to return |
-
-### Return type
-
-[**Pet**](Pet.md)
-
-### Authorization
-
-[api_key](../README.md#api_key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-[[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)
-
-
-# **UpdatePet**
-> void UpdatePet (Pet pet)
-
-Update an existing pet
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class UpdatePetExample
- {
- public void main()
- {
-
- // Configure OAuth2 access token for authorization: petstore_auth
- Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
-
- var apiInstance = new PetApi();
- var pet = new Pet(); // Pet | Pet object that needs to be added to the store
-
- try
- {
- // Update an existing pet
- apiInstance.UpdatePet(pet);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling PetApi.UpdatePet: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: application/json, application/xml
- - **Accept**: Not defined
-
-[[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)
-
-
-# **UpdatePetWithForm**
-> void UpdatePetWithForm (long? petId, string name, string status)
-
-Updates a pet in the store with form data
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class UpdatePetWithFormExample
- {
- public void main()
- {
-
- // Configure OAuth2 access token for authorization: petstore_auth
- Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
-
- var apiInstance = new PetApi();
- var petId = 789; // long? | ID of pet that needs to be updated
- var name = name_example; // string | Updated name of the pet (optional)
- var status = status_example; // string | Updated status of the pet (optional)
-
- try
- {
- // Updates a pet in the store with form data
- apiInstance.UpdatePetWithForm(petId, name, status);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling PetApi.UpdatePetWithForm: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **petId** | **long?**| ID of pet that needs to be updated |
- **name** | **string**| Updated name of the pet | [optional]
- **status** | **string**| Updated status of the pet | [optional]
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: application/x-www-form-urlencoded
- - **Accept**: Not defined
-
-[[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)
-
-
-# **UploadFile**
-> ApiResponse UploadFile (long? petId, string additionalMetadata, System.IO.Stream file)
-
-uploads an image
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class UploadFileExample
- {
- public void main()
- {
-
- // Configure OAuth2 access token for authorization: petstore_auth
- Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
-
- var apiInstance = new PetApi();
- var petId = 789; // long? | ID of pet to update
- var additionalMetadata = additionalMetadata_example; // string | Additional data to pass to server (optional)
- var file = new System.IO.Stream(); // System.IO.Stream | file to upload (optional)
-
- try
- {
- // uploads an image
- ApiResponse result = apiInstance.UploadFile(petId, additionalMetadata, file);
- Debug.WriteLine(result);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling PetApi.UploadFile: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **petId** | **long?**| ID of pet to update |
- **additionalMetadata** | **string**| Additional data to pass to server | [optional]
- **file** | **System.IO.Stream**| file to upload | [optional]
-
-### Return type
-
-[**ApiResponse**](ApiResponse.md)
-
-### Authorization
-
-[petstore_auth](../README.md#petstore_auth)
-
-### HTTP request headers
-
- - **Content-Type**: multipart/form-data
- - **Accept**: application/json
-
-[[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)
-
diff --git a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/StoreApi.md b/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/StoreApi.md
deleted file mode 100644
index 76334b0ca4d..00000000000
--- a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/StoreApi.md
+++ /dev/null
@@ -1,258 +0,0 @@
-# Org.OpenAPITools.Api.StoreApi
-
-All URIs are relative to *http://petstore.swagger.io/v2*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**DeleteOrder**](StoreApi.md#deleteorder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID
-[**GetInventory**](StoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
-[**GetOrderById**](StoreApi.md#getorderbyid) | **GET** /store/order/{orderId} | Find purchase order by ID
-[**PlaceOrder**](StoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet
-
-
-
-# **DeleteOrder**
-> void DeleteOrder (string orderId)
-
-Delete purchase order by ID
-
-For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class DeleteOrderExample
- {
- public void main()
- {
-
- var apiInstance = new StoreApi();
- var orderId = orderId_example; // string | ID of the order that needs to be deleted
-
- try
- {
- // Delete purchase order by ID
- apiInstance.DeleteOrder(orderId);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling StoreApi.DeleteOrder: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **orderId** | **string**| ID of the order that needs to be deleted |
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-[[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)
-
-
-# **GetInventory**
-> Dictionary GetInventory ()
-
-Returns pet inventories by status
-
-Returns a map of status codes to quantities
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class GetInventoryExample
- {
- public void main()
- {
-
- // Configure API key authorization: api_key
- Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
- // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
- // Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");
-
- var apiInstance = new StoreApi();
-
- try
- {
- // Returns pet inventories by status
- Dictionary<string, int?> result = apiInstance.GetInventory();
- Debug.WriteLine(result);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling StoreApi.GetInventory: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-### Return type
-
-**Dictionary**
-
-### Authorization
-
-[api_key](../README.md#api_key)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-[[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)
-
-
-# **GetOrderById**
-> Order GetOrderById (long? orderId)
-
-Find purchase order by ID
-
-For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class GetOrderByIdExample
- {
- public void main()
- {
-
- var apiInstance = new StoreApi();
- var orderId = 789; // long? | ID of pet that needs to be fetched
-
- try
- {
- // Find purchase order by ID
- Order result = apiInstance.GetOrderById(orderId);
- Debug.WriteLine(result);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling StoreApi.GetOrderById: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **orderId** | **long?**| ID of pet that needs to be fetched |
-
-### Return type
-
-[**Order**](Order.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-[[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)
-
-
-# **PlaceOrder**
-> Order PlaceOrder (Order order)
-
-Place an order for a pet
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class PlaceOrderExample
- {
- public void main()
- {
-
- var apiInstance = new StoreApi();
- var order = new Order(); // Order | order placed for purchasing the pet
-
- try
- {
- // Place an order for a pet
- Order result = apiInstance.PlaceOrder(order);
- Debug.WriteLine(result);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling StoreApi.PlaceOrder: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **order** | [**Order**](Order.md)| order placed for purchasing the pet |
-
-### Return type
-
-[**Order**](Order.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-[[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)
-
diff --git a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/Tag.md b/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/Tag.md
deleted file mode 100644
index 6a76c28595f..00000000000
--- a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/Tag.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# Org.OpenAPITools.Model.Tag
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **long?** | | [optional]
-**Name** | **string** | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/User.md b/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/User.md
deleted file mode 100644
index 04dd24a3423..00000000000
--- a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/User.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# Org.OpenAPITools.Model.User
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**Id** | **long?** | | [optional]
-**Username** | **string** | | [optional]
-**FirstName** | **string** | | [optional]
-**LastName** | **string** | | [optional]
-**Email** | **string** | | [optional]
-**Password** | **string** | | [optional]
-**Phone** | **string** | | [optional]
-**UserStatus** | **int?** | User Status | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
diff --git a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/UserApi.md b/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/UserApi.md
deleted file mode 100644
index dad1e505005..00000000000
--- a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/docs/UserApi.md
+++ /dev/null
@@ -1,496 +0,0 @@
-# Org.OpenAPITools.Api.UserApi
-
-All URIs are relative to *http://petstore.swagger.io/v2*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**CreateUser**](UserApi.md#createuser) | **POST** /user | Create user
-[**CreateUsersWithArrayInput**](UserApi.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array
-[**CreateUsersWithListInput**](UserApi.md#createuserswithlistinput) | **POST** /user/createWithList | Creates list of users with given input array
-[**DeleteUser**](UserApi.md#deleteuser) | **DELETE** /user/{username} | Delete user
-[**GetUserByName**](UserApi.md#getuserbyname) | **GET** /user/{username} | Get user by user name
-[**LoginUser**](UserApi.md#loginuser) | **GET** /user/login | Logs user into the system
-[**LogoutUser**](UserApi.md#logoutuser) | **GET** /user/logout | Logs out current logged in user session
-[**UpdateUser**](UserApi.md#updateuser) | **PUT** /user/{username} | Updated user
-
-
-
-# **CreateUser**
-> void CreateUser (User user)
-
-Create user
-
-This can only be done by the logged in user.
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class CreateUserExample
- {
- public void main()
- {
-
- var apiInstance = new UserApi();
- var user = new User(); // User | Created user object
-
- try
- {
- // Create user
- apiInstance.CreateUser(user);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling UserApi.CreateUser: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **user** | [**User**](User.md)| Created user object |
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-[[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)
-
-
-# **CreateUsersWithArrayInput**
-> void CreateUsersWithArrayInput (List user)
-
-Creates list of users with given input array
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class CreateUsersWithArrayInputExample
- {
- public void main()
- {
-
- var apiInstance = new UserApi();
- var user = new List(); // List | List of user object
-
- try
- {
- // Creates list of users with given input array
- apiInstance.CreateUsersWithArrayInput(user);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling UserApi.CreateUsersWithArrayInput: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **user** | [**List**](List.md)| List of user object |
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-[[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)
-
-
-# **CreateUsersWithListInput**
-> void CreateUsersWithListInput (List user)
-
-Creates list of users with given input array
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class CreateUsersWithListInputExample
- {
- public void main()
- {
-
- var apiInstance = new UserApi();
- var user = new List(); // List | List of user object
-
- try
- {
- // Creates list of users with given input array
- apiInstance.CreateUsersWithListInput(user);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling UserApi.CreateUsersWithListInput: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **user** | [**List**](List.md)| List of user object |
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-[[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)
-
-
-# **DeleteUser**
-> void DeleteUser (string username)
-
-Delete user
-
-This can only be done by the logged in user.
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class DeleteUserExample
- {
- public void main()
- {
-
- var apiInstance = new UserApi();
- var username = username_example; // string | The name that needs to be deleted
-
- try
- {
- // Delete user
- apiInstance.DeleteUser(username);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling UserApi.DeleteUser: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **username** | **string**| The name that needs to be deleted |
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-[[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)
-
-
-# **GetUserByName**
-> User GetUserByName (string username)
-
-Get user by user name
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class GetUserByNameExample
- {
- public void main()
- {
-
- var apiInstance = new UserApi();
- var username = username_example; // string | The name that needs to be fetched. Use user1 for testing.
-
- try
- {
- // Get user by user name
- User result = apiInstance.GetUserByName(username);
- Debug.WriteLine(result);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling UserApi.GetUserByName: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **username** | **string**| The name that needs to be fetched. Use user1 for testing. |
-
-### Return type
-
-[**User**](User.md)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-[[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)
-
-
-# **LoginUser**
-> string LoginUser (string username, string password)
-
-Logs user into the system
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class LoginUserExample
- {
- public void main()
- {
-
- var apiInstance = new UserApi();
- var username = username_example; // string | The user name for login
- var password = password_example; // string | The password for login in clear text
-
- try
- {
- // Logs user into the system
- string result = apiInstance.LoginUser(username, password);
- Debug.WriteLine(result);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling UserApi.LoginUser: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **username** | **string**| The user name for login |
- **password** | **string**| The password for login in clear text |
-
-### Return type
-
-**string**
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/xml, application/json
-
-[[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)
-
-
-# **LogoutUser**
-> void LogoutUser ()
-
-Logs out current logged in user session
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class LogoutUserExample
- {
- public void main()
- {
-
- var apiInstance = new UserApi();
-
- try
- {
- // Logs out current logged in user session
- apiInstance.LogoutUser();
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling UserApi.LogoutUser: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-[[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)
-
-
-# **UpdateUser**
-> void UpdateUser (string username, User user)
-
-Updated user
-
-This can only be done by the logged in user.
-
-### Example
-```csharp
-using System;
-using System.Diagnostics;
-using Org.OpenAPITools.Api;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Example
-{
- public class UpdateUserExample
- {
- public void main()
- {
-
- var apiInstance = new UserApi();
- var username = username_example; // string | name that need to be deleted
- var user = new User(); // User | Updated user object
-
- try
- {
- // Updated user
- apiInstance.UpdateUser(username, user);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling UserApi.UpdateUser: " + e.Message );
- }
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **username** | **string**| name that need to be deleted |
- **user** | [**User**](User.md)| Updated user object |
-
-### Return type
-
-void (empty response body)
-
-### Authorization
-
-No authorization required
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: Not defined
-
-[[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)
-
diff --git a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/PetApi.cs
deleted file mode 100644
index 66e0f6ab5cc..00000000000
--- a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/PetApi.cs
+++ /dev/null
@@ -1,429 +0,0 @@
-using System;
-using System.Collections.Generic;
-using RestSharp;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Org.OpenAPITools.Api
-{
- ///
- /// Represents a collection of functions to interact with the API endpoints
- ///
- public interface IPetApi
- {
- ///
- /// Add a new pet to the store
- ///
- /// Pet object that needs to be added to the store
- ///
- void AddPet (Pet pet);
- ///
- /// Deletes a pet
- ///
- /// Pet id to delete
- ///
- ///
- void DeletePet (long? petId, string apiKey);
- ///
- /// Finds Pets by status Multiple status values can be provided with comma separated strings
- ///
- /// Status values that need to be considered for filter
- /// List<Pet>
- List FindPetsByStatus (List status);
- ///
- /// Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
- ///
- /// Tags to filter by
- /// List<Pet>
- List FindPetsByTags (List tags);
- ///
- /// Find pet by ID Returns a single pet
- ///
- /// ID of pet to return
- /// Pet
- Pet GetPetById (long? petId);
- ///
- /// Update an existing pet
- ///
- /// Pet object that needs to be added to the store
- ///
- void UpdatePet (Pet pet);
- ///
- /// Updates a pet in the store with form data
- ///
- /// ID of pet that needs to be updated
- /// Updated name of the pet
- /// Updated status of the pet
- ///
- void UpdatePetWithForm (long? petId, string name, string status);
- ///
- /// uploads an image
- ///
- /// ID of pet to update
- /// Additional data to pass to server
- /// file to upload
- /// ApiResponse
- ApiResponse UploadFile (long? petId, string additionalMetadata, System.IO.Stream file);
- }
-
- ///
- /// Represents a collection of functions to interact with the API endpoints
- ///
- public class PetApi : IPetApi
- {
- ///
- /// Initializes a new instance of the class.
- ///
- /// an instance of ApiClient (optional)
- ///
- public PetApi(ApiClient apiClient = null)
- {
- if (apiClient == null) // use the default one in Configuration
- this.ApiClient = Configuration.DefaultApiClient;
- else
- this.ApiClient = apiClient;
- }
-
- ///
- /// Initializes a new instance of the class.
- ///
- ///
- public PetApi(String basePath)
- {
- this.ApiClient = new ApiClient(basePath);
- }
-
- ///
- /// Sets the base path of the API client.
- ///
- /// The base path
- /// The base path
- public void SetBasePath(String basePath)
- {
- this.ApiClient.BasePath = basePath;
- }
-
- ///
- /// Gets the base path of the API client.
- ///
- /// The base path
- /// The base path
- public String GetBasePath(String basePath)
- {
- return this.ApiClient.BasePath;
- }
-
- ///
- /// Gets or sets the API client.
- ///
- /// An instance of the ApiClient
- public ApiClient ApiClient {get; set;}
-
- ///
- /// Add a new pet to the store
- ///
- /// Pet object that needs to be added to the store
- ///
- public void AddPet (Pet pet)
- {
-
- // verify the required parameter 'pet' is set
- if (pet == null) throw new ApiException(400, "Missing required parameter 'pet' when calling AddPet");
-
-
- var path = "/pet";
- path = path.Replace("{format}", "json");
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
- postBody = ApiClient.Serialize(pet); // http body (model) parameter
-
- // authentication setting, if any
- String[] authSettings = new String[] { "petstore_auth" };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling AddPet: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling AddPet: " + response.ErrorMessage, response.ErrorMessage);
-
- return;
- }
-
- ///
- /// Deletes a pet
- ///
- /// Pet id to delete
- ///
- ///
- public void DeletePet (long? petId, string apiKey)
- {
-
- // verify the required parameter 'petId' is set
- if (petId == null) throw new ApiException(400, "Missing required parameter 'petId' when calling DeletePet");
-
-
- var path = "/pet/{petId}";
- path = path.Replace("{format}", "json");
- path = path.Replace("{" + "petId" + "}", ApiClient.ParameterToString(petId));
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
- if (apiKey != null) headerParams.Add("api_key", ApiClient.ParameterToString(apiKey)); // header parameter
-
- // authentication setting, if any
- String[] authSettings = new String[] { "petstore_auth" };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.DELETE, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling DeletePet: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling DeletePet: " + response.ErrorMessage, response.ErrorMessage);
-
- return;
- }
-
- ///
- /// Finds Pets by status Multiple status values can be provided with comma separated strings
- ///
- /// Status values that need to be considered for filter
- /// List<Pet>
- public List FindPetsByStatus (List status)
- {
-
- // verify the required parameter 'status' is set
- if (status == null) throw new ApiException(400, "Missing required parameter 'status' when calling FindPetsByStatus");
-
-
- var path = "/pet/findByStatus";
- path = path.Replace("{format}", "json");
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
- if (status != null) queryParams.Add("status", ApiClient.ParameterToString(status)); // query parameter
-
- // authentication setting, if any
- String[] authSettings = new String[] { "petstore_auth" };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling FindPetsByStatus: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling FindPetsByStatus: " + response.ErrorMessage, response.ErrorMessage);
-
- return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers);
- }
-
- ///
- /// Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
- ///
- /// Tags to filter by
- /// List<Pet>
- public List FindPetsByTags (List tags)
- {
-
- // verify the required parameter 'tags' is set
- if (tags == null) throw new ApiException(400, "Missing required parameter 'tags' when calling FindPetsByTags");
-
-
- var path = "/pet/findByTags";
- path = path.Replace("{format}", "json");
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
- if (tags != null) queryParams.Add("tags", ApiClient.ParameterToString(tags)); // query parameter
-
- // authentication setting, if any
- String[] authSettings = new String[] { "petstore_auth" };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling FindPetsByTags: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling FindPetsByTags: " + response.ErrorMessage, response.ErrorMessage);
-
- return (List) ApiClient.Deserialize(response.Content, typeof(List), response.Headers);
- }
-
- ///
- /// Find pet by ID Returns a single pet
- ///
- /// ID of pet to return
- /// Pet
- public Pet GetPetById (long? petId)
- {
-
- // verify the required parameter 'petId' is set
- if (petId == null) throw new ApiException(400, "Missing required parameter 'petId' when calling GetPetById");
-
-
- var path = "/pet/{petId}";
- path = path.Replace("{format}", "json");
- path = path.Replace("{" + "petId" + "}", ApiClient.ParameterToString(petId));
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
-
- // authentication setting, if any
- String[] authSettings = new String[] { "api_key" };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling GetPetById: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling GetPetById: " + response.ErrorMessage, response.ErrorMessage);
-
- return (Pet) ApiClient.Deserialize(response.Content, typeof(Pet), response.Headers);
- }
-
- ///
- /// Update an existing pet
- ///
- /// Pet object that needs to be added to the store
- ///
- public void UpdatePet (Pet pet)
- {
-
- // verify the required parameter 'pet' is set
- if (pet == null) throw new ApiException(400, "Missing required parameter 'pet' when calling UpdatePet");
-
-
- var path = "/pet";
- path = path.Replace("{format}", "json");
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
- postBody = ApiClient.Serialize(pet); // http body (model) parameter
-
- // authentication setting, if any
- String[] authSettings = new String[] { "petstore_auth" };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.PUT, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling UpdatePet: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling UpdatePet: " + response.ErrorMessage, response.ErrorMessage);
-
- return;
- }
-
- ///
- /// Updates a pet in the store with form data
- ///
- /// ID of pet that needs to be updated
- /// Updated name of the pet
- /// Updated status of the pet
- ///
- public void UpdatePetWithForm (long? petId, string name, string status)
- {
-
- // verify the required parameter 'petId' is set
- if (petId == null) throw new ApiException(400, "Missing required parameter 'petId' when calling UpdatePetWithForm");
-
-
- var path = "/pet/{petId}";
- path = path.Replace("{format}", "json");
- path = path.Replace("{" + "petId" + "}", ApiClient.ParameterToString(petId));
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
- if (name != null) formParams.Add("name", ApiClient.ParameterToString(name)); // form parameter
-if (status != null) formParams.Add("status", ApiClient.ParameterToString(status)); // form parameter
-
- // authentication setting, if any
- String[] authSettings = new String[] { "petstore_auth" };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling UpdatePetWithForm: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling UpdatePetWithForm: " + response.ErrorMessage, response.ErrorMessage);
-
- return;
- }
-
- ///
- /// uploads an image
- ///
- /// ID of pet to update
- /// Additional data to pass to server
- /// file to upload
- /// ApiResponse
- public ApiResponse UploadFile (long? petId, string additionalMetadata, System.IO.Stream file)
- {
-
- // verify the required parameter 'petId' is set
- if (petId == null) throw new ApiException(400, "Missing required parameter 'petId' when calling UploadFile");
-
-
- var path = "/pet/{petId}/uploadImage";
- path = path.Replace("{format}", "json");
- path = path.Replace("{" + "petId" + "}", ApiClient.ParameterToString(petId));
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
- if (additionalMetadata != null) formParams.Add("additionalMetadata", ApiClient.ParameterToString(additionalMetadata)); // form parameter
-if (file != null) fileParams.Add("file", ApiClient.ParameterToFile("file", file));
-
- // authentication setting, if any
- String[] authSettings = new String[] { "petstore_auth" };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling UploadFile: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling UploadFile: " + response.ErrorMessage, response.ErrorMessage);
-
- return (ApiResponse) ApiClient.Deserialize(response.Content, typeof(ApiResponse), response.Headers);
- }
-
- }
-}
diff --git a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/StoreApi.cs
deleted file mode 100644
index 3390bbbcaba..00000000000
--- a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/StoreApi.cs
+++ /dev/null
@@ -1,236 +0,0 @@
-using System;
-using System.Collections.Generic;
-using RestSharp;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Org.OpenAPITools.Api
-{
- ///
- /// Represents a collection of functions to interact with the API endpoints
- ///
- public interface IStoreApi
- {
- ///
- /// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
- ///
- /// ID of the order that needs to be deleted
- ///
- void DeleteOrder (string orderId);
- ///
- /// Returns pet inventories by status Returns a map of status codes to quantities
- ///
- /// Dictionary<string, int?>
- Dictionary GetInventory ();
- ///
- /// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
- ///
- /// ID of pet that needs to be fetched
- /// Order
- Order GetOrderById (long? orderId);
- ///
- /// Place an order for a pet
- ///
- /// order placed for purchasing the pet
- /// Order
- Order PlaceOrder (Order order);
- }
-
- ///
- /// Represents a collection of functions to interact with the API endpoints
- ///
- public class StoreApi : IStoreApi
- {
- ///
- /// Initializes a new instance of the class.
- ///
- /// an instance of ApiClient (optional)
- ///
- public StoreApi(ApiClient apiClient = null)
- {
- if (apiClient == null) // use the default one in Configuration
- this.ApiClient = Configuration.DefaultApiClient;
- else
- this.ApiClient = apiClient;
- }
-
- ///
- /// Initializes a new instance of the class.
- ///
- ///
- public StoreApi(String basePath)
- {
- this.ApiClient = new ApiClient(basePath);
- }
-
- ///
- /// Sets the base path of the API client.
- ///
- /// The base path
- /// The base path
- public void SetBasePath(String basePath)
- {
- this.ApiClient.BasePath = basePath;
- }
-
- ///
- /// Gets the base path of the API client.
- ///
- /// The base path
- /// The base path
- public String GetBasePath(String basePath)
- {
- return this.ApiClient.BasePath;
- }
-
- ///
- /// Gets or sets the API client.
- ///
- /// An instance of the ApiClient
- public ApiClient ApiClient {get; set;}
-
- ///
- /// Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
- ///
- /// ID of the order that needs to be deleted
- ///
- public void DeleteOrder (string orderId)
- {
-
- // verify the required parameter 'orderId' is set
- if (orderId == null) throw new ApiException(400, "Missing required parameter 'orderId' when calling DeleteOrder");
-
-
- var path = "/store/order/{orderId}";
- path = path.Replace("{format}", "json");
- path = path.Replace("{" + "orderId" + "}", ApiClient.ParameterToString(orderId));
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
-
- // authentication setting, if any
- String[] authSettings = new String[] { };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.DELETE, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling DeleteOrder: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling DeleteOrder: " + response.ErrorMessage, response.ErrorMessage);
-
- return;
- }
-
- ///
- /// Returns pet inventories by status Returns a map of status codes to quantities
- ///
- /// Dictionary<string, int?>
- public Dictionary GetInventory ()
- {
-
-
- var path = "/store/inventory";
- path = path.Replace("{format}", "json");
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
-
- // authentication setting, if any
- String[] authSettings = new String[] { "api_key" };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling GetInventory: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling GetInventory: " + response.ErrorMessage, response.ErrorMessage);
-
- return (Dictionary) ApiClient.Deserialize(response.Content, typeof(Dictionary), response.Headers);
- }
-
- ///
- /// Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
- ///
- /// ID of pet that needs to be fetched
- /// Order
- public Order GetOrderById (long? orderId)
- {
-
- // verify the required parameter 'orderId' is set
- if (orderId == null) throw new ApiException(400, "Missing required parameter 'orderId' when calling GetOrderById");
-
-
- var path = "/store/order/{orderId}";
- path = path.Replace("{format}", "json");
- path = path.Replace("{" + "orderId" + "}", ApiClient.ParameterToString(orderId));
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
-
- // authentication setting, if any
- String[] authSettings = new String[] { };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling GetOrderById: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling GetOrderById: " + response.ErrorMessage, response.ErrorMessage);
-
- return (Order) ApiClient.Deserialize(response.Content, typeof(Order), response.Headers);
- }
-
- ///
- /// Place an order for a pet
- ///
- /// order placed for purchasing the pet
- /// Order
- public Order PlaceOrder (Order order)
- {
-
- // verify the required parameter 'order' is set
- if (order == null) throw new ApiException(400, "Missing required parameter 'order' when calling PlaceOrder");
-
-
- var path = "/store/order";
- path = path.Replace("{format}", "json");
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
- postBody = ApiClient.Serialize(order); // http body (model) parameter
-
- // authentication setting, if any
- String[] authSettings = new String[] { };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling PlaceOrder: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling PlaceOrder: " + response.ErrorMessage, response.ErrorMessage);
-
- return (Order) ApiClient.Deserialize(response.Content, typeof(Order), response.Headers);
- }
-
- }
-}
diff --git a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/UserApi.cs
deleted file mode 100644
index 60a0ccac599..00000000000
--- a/samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/src/main/CsharpDotNet2/Org/OpenAPITools/Api/UserApi.cs
+++ /dev/null
@@ -1,420 +0,0 @@
-using System;
-using System.Collections.Generic;
-using RestSharp;
-using Org.OpenAPITools.Client;
-using Org.OpenAPITools.Model;
-
-namespace Org.OpenAPITools.Api
-{
- ///
- /// Represents a collection of functions to interact with the API endpoints
- ///
- public interface IUserApi
- {
- ///
- /// Create user This can only be done by the logged in user.
- ///
- /// Created user object
- ///
- void CreateUser (User user);
- ///
- /// Creates list of users with given input array
- ///
- /// List of user object
- ///
- void CreateUsersWithArrayInput (List user);
- ///
- /// Creates list of users with given input array
- ///
- /// List of user object
- ///
- void CreateUsersWithListInput (List user);
- ///
- /// Delete user This can only be done by the logged in user.
- ///
- /// The name that needs to be deleted
- ///
- void DeleteUser (string username);
- ///
- /// Get user by user name
- ///
- /// The name that needs to be fetched. Use user1 for testing.
- /// User
- User GetUserByName (string username);
- ///
- /// Logs user into the system
- ///
- /// The user name for login
- /// The password for login in clear text
- /// string
- string LoginUser (string username, string password);
- ///
- /// Logs out current logged in user session
- ///
- ///
- void LogoutUser ();
- ///
- /// Updated user This can only be done by the logged in user.
- ///
- /// name that need to be deleted
- /// Updated user object
- ///
- void UpdateUser (string username, User user);
- }
-
- ///
- /// Represents a collection of functions to interact with the API endpoints
- ///
- public class UserApi : IUserApi
- {
- ///
- /// Initializes a new instance of the class.
- ///
- /// an instance of ApiClient (optional)
- ///
- public UserApi(ApiClient apiClient = null)
- {
- if (apiClient == null) // use the default one in Configuration
- this.ApiClient = Configuration.DefaultApiClient;
- else
- this.ApiClient = apiClient;
- }
-
- ///
- /// Initializes a new instance of the class.
- ///
- ///
- public UserApi(String basePath)
- {
- this.ApiClient = new ApiClient(basePath);
- }
-
- ///
- /// Sets the base path of the API client.
- ///
- /// The base path
- /// The base path
- public void SetBasePath(String basePath)
- {
- this.ApiClient.BasePath = basePath;
- }
-
- ///
- /// Gets the base path of the API client.
- ///
- /// The base path
- /// The base path
- public String GetBasePath(String basePath)
- {
- return this.ApiClient.BasePath;
- }
-
- ///
- /// Gets or sets the API client.
- ///
- /// An instance of the ApiClient
- public ApiClient ApiClient {get; set;}
-
- ///
- /// Create user This can only be done by the logged in user.
- ///
- /// Created user object
- ///
- public void CreateUser (User user)
- {
-
- // verify the required parameter 'user' is set
- if (user == null) throw new ApiException(400, "Missing required parameter 'user' when calling CreateUser");
-
-
- var path = "/user";
- path = path.Replace("{format}", "json");
-
- var queryParams = new Dictionary();
- var headerParams = new Dictionary();
- var formParams = new Dictionary();
- var fileParams = new Dictionary();
- String postBody = null;
-
- postBody = ApiClient.Serialize(user); // http body (model) parameter
-
- // authentication setting, if any
- String[] authSettings = new String[] { };
-
- // make the HTTP request
- IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.POST, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
-
- if (((int)response.StatusCode) >= 400)
- throw new ApiException ((int)response.StatusCode, "Error calling CreateUser: " + response.Content, response.Content);
- else if (((int)response.StatusCode) == 0)
- throw new ApiException ((int)response.StatusCode, "Error calling CreateUser: " + response.ErrorMessage, response.ErrorMessage);
-
- return;
- }
-
- ///