forked from loafle/openapi-generator-original
add support for csharp net40 (#6792)
This commit is contained in:
parent
fe2ed67f20
commit
cab4fc0fed
3
bin/csharp-petstore-net-40.json
Normal file
3
bin/csharp-petstore-net-40.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"targetFramework": "v4.0"
|
||||||
|
}
|
31
bin/csharp-petstore-net-40.sh
Executable file
31
bin/csharp-petstore-net-40.sh
Executable file
@ -0,0 +1,31 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SCRIPT="$0"
|
||||||
|
|
||||||
|
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/swagger-codegen-cli/target/swagger-codegen-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} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
|
ags="generate $@ -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l csharp -o samples/client/petstore/csharp/SwaggerClientNet40 --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C} -c ./bin/csharp-petstore-net-40.json"
|
||||||
|
|
||||||
|
java $JAVA_OPTS -jar $executable $ags
|
@ -26,6 +26,6 @@ fi
|
|||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="generate $@ -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l csharp -o samples/client/petstore/csharp/SwaggerClient --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C}"
|
ags="generate $@ -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l csharp -o samples/client/petstore/csharp/SwaggerClientNet40 --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C} -c ./bin/csharp-petstore-net-40.json"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
0
bin/typescript-angular-petstore-all.sh
Normal file → Executable file
0
bin/typescript-angular-petstore-all.sh
Normal file → Executable file
@ -15,6 +15,7 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
|
|||||||
@SuppressWarnings({"hiding"})
|
@SuppressWarnings({"hiding"})
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(CSharpClientCodegen.class);
|
private static final Logger LOGGER = LoggerFactory.getLogger(CSharpClientCodegen.class);
|
||||||
private static final String NET45 = "v4.5";
|
private static final String NET45 = "v4.5";
|
||||||
|
private static final String NET40 = "v4.0";
|
||||||
private static final String NET35 = "v3.5";
|
private static final String NET35 = "v3.5";
|
||||||
private static final String NETSTANDARD = "v5.0";
|
private static final String NETSTANDARD = "v5.0";
|
||||||
private static final String UWP = "uwp";
|
private static final String UWP = "uwp";
|
||||||
@ -75,6 +76,7 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
|
|||||||
);
|
);
|
||||||
frameworks = new ImmutableMap.Builder<String, String>()
|
frameworks = new ImmutableMap.Builder<String, String>()
|
||||||
.put(NET35, ".NET Framework 3.5 compatible")
|
.put(NET35, ".NET Framework 3.5 compatible")
|
||||||
|
.put(NET40, ".NET Framework 4.0 compatible")
|
||||||
.put(NET45, ".NET Framework 4.5+ compatible")
|
.put(NET45, ".NET Framework 4.5+ compatible")
|
||||||
.put(NETSTANDARD, ".NET Standard 1.3 compatible")
|
.put(NETSTANDARD, ".NET Standard 1.3 compatible")
|
||||||
.put(UWP, "Universal Windows Platform (IMPORTANT: this will be decommissioned and replaced by v5.0)")
|
.put(UWP, "Universal Windows Platform (IMPORTANT: this will be decommissioned and replaced by v5.0)")
|
||||||
@ -227,7 +229,13 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
|
|||||||
setSupportsUWP(Boolean.TRUE);
|
setSupportsUWP(Boolean.TRUE);
|
||||||
additionalProperties.put("supportsAsync", this.supportsAsync);
|
additionalProperties.put("supportsAsync", this.supportsAsync);
|
||||||
additionalProperties.put("supportsUWP", this.supportsUWP);
|
additionalProperties.put("supportsUWP", this.supportsUWP);
|
||||||
|
} else if (NET40.equals(this.targetFramework)) {
|
||||||
|
setTargetFrameworkNuget("net40");
|
||||||
|
setSupportsAsync(Boolean.FALSE);
|
||||||
|
if (additionalProperties.containsKey("supportsAsync")) {
|
||||||
|
additionalProperties.remove("supportsAsync");
|
||||||
|
}
|
||||||
|
additionalProperties.put("isNet40", true);
|
||||||
} else {
|
} else {
|
||||||
setTargetFrameworkNuget("net45");
|
setTargetFrameworkNuget("net45");
|
||||||
setSupportsAsync(Boolean.TRUE);
|
setSupportsAsync(Boolean.TRUE);
|
||||||
|
@ -15,8 +15,8 @@ mono nuget.exe install src/{{packageName}}/packages.config -o packages;
|
|||||||
|
|
||||||
echo "[INFO] Copy DLLs to the 'bin' folder"
|
echo "[INFO] Copy DLLs to the 'bin' folder"
|
||||||
mkdir -p bin;
|
mkdir -p bin;
|
||||||
cp packages/Newtonsoft.Json.10.0.3/lib/{{targetFrameworkNuget}}/Newtonsoft.Json.dll bin/Newtonsoft.Json.dll;
|
cp packages/Newtonsoft.Json.{{#isNet40}}4.5.11{{/isNet40}}{{^isNet40}}10.0.3{{/isNet40}}/lib/{{targetFrameworkNuget}}/Newtonsoft.Json.dll bin/Newtonsoft.Json.dll;
|
||||||
cp packages/RestSharp.105.1.0/lib/{{targetFrameworkNuget}}/RestSharp.dll bin/RestSharp.dll;
|
cp packages/RestSharp.105.1.0/lib/{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{targetFrameworkNuget}}{{/isNet40}}/RestSharp.dll bin/RestSharp.dll;
|
||||||
{{#generatePropertyChanged}}
|
{{#generatePropertyChanged}}
|
||||||
cp packages/Fody.1.29.4/Fody.dll bin/Fody.dll
|
cp packages/Fody.1.29.4/Fody.dll bin/Fody.dll
|
||||||
cp packages/PropertyChanged.Fody.1.51.3/PropertyChanged.Fody.dll bin/PropertyChanged.Fody.dll
|
cp packages/PropertyChanged.Fody.1.51.3/PropertyChanged.Fody.dll bin/PropertyChanged.Fody.dll
|
||||||
|
@ -15,8 +15,8 @@ if not exist ".\nuget.exe" powershell -Command "(new-object System.Net.WebClient
|
|||||||
|
|
||||||
if not exist ".\bin" mkdir bin
|
if not exist ".\bin" mkdir bin
|
||||||
|
|
||||||
copy packages\Newtonsoft.Json.10.0.3\lib\{{targetFrameworkNuget}}\Newtonsoft.Json.dll bin\Newtonsoft.Json.dll
|
copy packages\Newtonsoft.Json.{{#isNet40}}4.5.11{{/isNet40}}{{^isNet40}}10.0.3{{/isNet40}}\lib\{{targetFrameworkNuget}}\Newtonsoft.Json.dll bin\Newtonsoft.Json.dll
|
||||||
copy packages\RestSharp.105.1.0\lib\{{targetFrameworkNuget}}\RestSharp.dll bin\RestSharp.dll
|
copy packages\RestSharp.105.1.0\lib\{{#isNet40}}net4{{/isNet40}}{{^isNet40}}{{targetFrameworkNuget}}{{/isNet40}}\RestSharp.dll bin\RestSharp.dll
|
||||||
{{#generatePropertyChanged}}
|
{{#generatePropertyChanged}}
|
||||||
copy packages\Fody.1.29.4\Fody.dll bin\Fody.dll
|
copy packages\Fody.1.29.4\Fody.dll bin\Fody.dll
|
||||||
copy packages\PropertyChanged.Fody.1.51.3\PropertyChanged.Fody.dll bin\PropertyChanged.Fody.dll
|
copy packages\PropertyChanged.Fody.1.51.3\PropertyChanged.Fody.dll bin\PropertyChanged.Fody.dll
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<packages>
|
<packages>
|
||||||
<package id="RestSharp" version="105.1.0" targetFramework="{{targetFrameworkNuget}}" developmentDependency="true" />
|
<package id="RestSharp" version="105.1.0" targetFramework="{{targetFrameworkNuget}}" developmentDependency="true" />
|
||||||
<package id="Newtonsoft.Json" version="10.0.3" targetFramework="{{targetFrameworkNuget}}" developmentDependency="true" />
|
<package id="Newtonsoft.Json" version="{{#isNet40}}4.5.11{{/isNet40}}{{^isNet40}}10.0.3{{/isNet40}}" targetFramework="{{targetFrameworkNuget}}" developmentDependency="true" />
|
||||||
{{#generatePropertyChanged}}
|
{{#generatePropertyChanged}}
|
||||||
<package id="Fody" version="1.29.4" targetFramework="{{targetFrameworkNuget}}" developmentDependency="true" />
|
<package id="Fody" version="1.29.4" targetFramework="{{targetFrameworkNuget}}" developmentDependency="true" />
|
||||||
<package id="PropertyChanged.Fody" version="1.51.3" targetFramework="{{targetFrameworkNuget}}" developmentDependency="true" />
|
<package id="PropertyChanged.Fody" version="1.51.3" targetFramework="{{targetFrameworkNuget}}" developmentDependency="true" />
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
<packages>
|
<packages>
|
||||||
<package id="NUnit" version="2.6.4" targetFramework="{{targetFrameworkNuget}}" />
|
<package id="NUnit" version="2.6.4" targetFramework="{{targetFrameworkNuget}}" />
|
||||||
<package id="RestSharp" version="105.1.0" targetFramework="{{targetFrameworkNuget}}" developmentDependency="true" />
|
<package id="RestSharp" version="105.1.0" targetFramework="{{targetFrameworkNuget}}" developmentDependency="true" />
|
||||||
<package id="Newtonsoft.Json" version="10.0.3" targetFramework="{{targetFrameworkNuget}}" developmentDependency="true" />
|
<package id="Newtonsoft.Json" version="{{#isNet40}}4.5.11{{/isNet40}}{{^isNet40}}10.0.3{{/isNet40}}" targetFramework="{{targetFrameworkNuget}}" developmentDependency="true" />
|
||||||
</packages>
|
</packages>
|
||||||
|
185
samples/client/petstore/csharp/SwaggerClientNet40/.gitignore
vendored
Normal file
185
samples/client/petstore/csharp/SwaggerClientNet40/.gitignore
vendored
Normal file
@ -0,0 +1,185 @@
|
|||||||
|
# Ref: https://gist.github.com/kmorcinek/2710267
|
||||||
|
# Download this file using PowerShell v3 under Windows with the following comand
|
||||||
|
# Invoke-WebRequest https://gist.githubusercontent.com/kmorcinek/2710267/raw/ -OutFile .gitignore
|
||||||
|
|
||||||
|
# User-specific files
|
||||||
|
*.suo
|
||||||
|
*.user
|
||||||
|
*.sln.docstates
|
||||||
|
|
||||||
|
# Build results
|
||||||
|
|
||||||
|
[Dd]ebug/
|
||||||
|
[Rr]elease/
|
||||||
|
x64/
|
||||||
|
build/
|
||||||
|
[Bb]in/
|
||||||
|
[Oo]bj/
|
||||||
|
|
||||||
|
# NuGet Packages
|
||||||
|
*.nupkg
|
||||||
|
# The packages folder can be ignored because of Package Restore
|
||||||
|
**/packages/*
|
||||||
|
# except build/, which is used as an MSBuild target.
|
||||||
|
!**/packages/build/
|
||||||
|
# Uncomment if necessary however generally it will be regenerated when needed
|
||||||
|
#!**/packages/repositories.config
|
||||||
|
|
||||||
|
# MSTest test Results
|
||||||
|
[Tt]est[Rr]esult*/
|
||||||
|
[Bb]uild[Ll]og.*
|
||||||
|
|
||||||
|
*_i.c
|
||||||
|
*_p.c
|
||||||
|
*.ilk
|
||||||
|
*.meta
|
||||||
|
*.obj
|
||||||
|
*.pch
|
||||||
|
*.pdb
|
||||||
|
*.pgc
|
||||||
|
*.pgd
|
||||||
|
*.rsp
|
||||||
|
*.sbr
|
||||||
|
*.tlb
|
||||||
|
*.tli
|
||||||
|
*.tlh
|
||||||
|
*.tmp
|
||||||
|
*.tmp_proj
|
||||||
|
*.log
|
||||||
|
*.vspscc
|
||||||
|
*.vssscc
|
||||||
|
.builds
|
||||||
|
*.pidb
|
||||||
|
*.log
|
||||||
|
*.scc
|
||||||
|
|
||||||
|
# OS generated files #
|
||||||
|
.DS_Store*
|
||||||
|
ehthumbs.db
|
||||||
|
Icon?
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
# Visual C++ cache files
|
||||||
|
ipch/
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opensdf
|
||||||
|
*.sdf
|
||||||
|
*.cachefile
|
||||||
|
|
||||||
|
# Visual Studio profiler
|
||||||
|
*.psess
|
||||||
|
*.vsp
|
||||||
|
*.vspx
|
||||||
|
|
||||||
|
# Guidance Automation Toolkit
|
||||||
|
*.gpState
|
||||||
|
|
||||||
|
# ReSharper is a .NET coding add-in
|
||||||
|
_ReSharper*/
|
||||||
|
*.[Rr]e[Ss]harper
|
||||||
|
|
||||||
|
# TeamCity is a build add-in
|
||||||
|
_TeamCity*
|
||||||
|
|
||||||
|
# DotCover is a Code Coverage Tool
|
||||||
|
*.dotCover
|
||||||
|
|
||||||
|
# NCrunch
|
||||||
|
*.ncrunch*
|
||||||
|
.*crunch*.local.xml
|
||||||
|
|
||||||
|
# Installshield output folder
|
||||||
|
[Ee]xpress/
|
||||||
|
|
||||||
|
# DocProject is a documentation generator add-in
|
||||||
|
DocProject/buildhelp/
|
||||||
|
DocProject/Help/*.HxT
|
||||||
|
DocProject/Help/*.HxC
|
||||||
|
DocProject/Help/*.hhc
|
||||||
|
DocProject/Help/*.hhk
|
||||||
|
DocProject/Help/*.hhp
|
||||||
|
DocProject/Help/Html2
|
||||||
|
DocProject/Help/html
|
||||||
|
|
||||||
|
# Click-Once directory
|
||||||
|
publish/
|
||||||
|
|
||||||
|
# Publish Web Output
|
||||||
|
*.Publish.xml
|
||||||
|
|
||||||
|
# Windows Azure Build Output
|
||||||
|
csx
|
||||||
|
*.build.csdef
|
||||||
|
|
||||||
|
# Windows Store app package directory
|
||||||
|
AppPackages/
|
||||||
|
|
||||||
|
# Others
|
||||||
|
sql/
|
||||||
|
*.Cache
|
||||||
|
ClientBin/
|
||||||
|
[Ss]tyle[Cc]op.*
|
||||||
|
~$*
|
||||||
|
*~
|
||||||
|
*.dbmdl
|
||||||
|
*.[Pp]ublish.xml
|
||||||
|
*.pfx
|
||||||
|
*.publishsettings
|
||||||
|
modulesbin/
|
||||||
|
tempbin/
|
||||||
|
|
||||||
|
# EPiServer Site file (VPP)
|
||||||
|
AppData/
|
||||||
|
|
||||||
|
# RIA/Silverlight projects
|
||||||
|
Generated_Code/
|
||||||
|
|
||||||
|
# Backup & report files from converting an old project file to a newer
|
||||||
|
# Visual Studio version. Backup files are not needed, because we have git ;-)
|
||||||
|
_UpgradeReport_Files/
|
||||||
|
Backup*/
|
||||||
|
UpgradeLog*.XML
|
||||||
|
UpgradeLog*.htm
|
||||||
|
|
||||||
|
# vim
|
||||||
|
*.txt~
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
|
||||||
|
# svn
|
||||||
|
.svn
|
||||||
|
|
||||||
|
# SQL Server files
|
||||||
|
**/App_Data/*.mdf
|
||||||
|
**/App_Data/*.ldf
|
||||||
|
**/App_Data/*.sdf
|
||||||
|
|
||||||
|
|
||||||
|
#LightSwitch generated files
|
||||||
|
GeneratedArtifacts/
|
||||||
|
_Pvt_Extensions/
|
||||||
|
ModelManifest.xml
|
||||||
|
|
||||||
|
# =========================
|
||||||
|
# Windows detritus
|
||||||
|
# =========================
|
||||||
|
|
||||||
|
# Windows image file caches
|
||||||
|
Thumbs.db
|
||||||
|
ehthumbs.db
|
||||||
|
|
||||||
|
# Folder config file
|
||||||
|
Desktop.ini
|
||||||
|
|
||||||
|
# Recycle Bin used on file shares
|
||||||
|
$RECYCLE.BIN/
|
||||||
|
|
||||||
|
# Mac desktop service store files
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
# SASS Compiler cache
|
||||||
|
.sass-cache
|
||||||
|
|
||||||
|
# Visual Studio 2014 CTP
|
||||||
|
**/*.sln.ide
|
@ -0,0 +1,23 @@
|
|||||||
|
# Swagger Codegen Ignore
|
||||||
|
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
|
||||||
|
|
||||||
|
# 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 Swagger Codgen 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
|
@ -0,0 +1 @@
|
|||||||
|
2.3.0-SNAPSHOT
|
@ -0,0 +1,9 @@
|
|||||||
|
#
|
||||||
|
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
#
|
||||||
|
language: csharp
|
||||||
|
mono:
|
||||||
|
- latest
|
||||||
|
solution: IO.Swagger.sln
|
||||||
|
script:
|
||||||
|
- /bin/sh ./mono_nunit_test.sh
|
@ -0,0 +1,27 @@
|
|||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
|
# Visual Studio 2012
|
||||||
|
VisualStudioVersion = 12.0.0.0
|
||||||
|
MinimumVisualStudioVersion = 10.0.0.1
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger", "src\IO.Swagger\IO.Swagger.csproj", "{321C8C3F-0156-40C1-AE42-D59761FB9B6C}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger.Test", "src\IO.Swagger.Test\IO.Swagger.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
|
||||||
|
EndProject
|
||||||
|
Global
|
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
Release|Any CPU = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{321C8C3F-0156-40C1-AE42-D59761FB9B6C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{321C8C3F-0156-40C1-AE42-D59761FB9B6C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{321C8C3F-0156-40C1-AE42-D59761FB9B6C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{321C8C3F-0156-40C1-AE42-D59761FB9B6C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
EndGlobalSection
|
||||||
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
|
HideSolutionNode = FALSE
|
||||||
|
EndGlobalSection
|
||||||
|
EndGlobal
|
202
samples/client/petstore/csharp/SwaggerClientNet40/README.md
Normal file
202
samples/client/petstore/csharp/SwaggerClientNet40/README.md
Normal file
@ -0,0 +1,202 @@
|
|||||||
|
# IO.Swagger - the C# library for the Swagger Petstore
|
||||||
|
|
||||||
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
|
||||||
|
This C# SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
||||||
|
|
||||||
|
- API version: 1.0.0
|
||||||
|
- SDK version: 1.0.0
|
||||||
|
- Build package: io.swagger.codegen.languages.CSharpClientCodegen
|
||||||
|
|
||||||
|
<a name="frameworks-supported"></a>
|
||||||
|
## Frameworks supported
|
||||||
|
- .NET 4.0 or later
|
||||||
|
- Windows Phone 7.1 (Mango)
|
||||||
|
|
||||||
|
<a name="dependencies"></a>
|
||||||
|
## Dependencies
|
||||||
|
- [RestSharp](https://www.nuget.org/packages/RestSharp) - 105.1.0 or later
|
||||||
|
- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 7.0.0 or later
|
||||||
|
|
||||||
|
The DLLs included in the package may not be the latest version. We recommend using [NuGet] (https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages:
|
||||||
|
```
|
||||||
|
Install-Package RestSharp
|
||||||
|
Install-Package Newtonsoft.Json
|
||||||
|
```
|
||||||
|
|
||||||
|
NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See [RestSharp#742](https://github.com/restsharp/RestSharp/issues/742)
|
||||||
|
|
||||||
|
<a name="installation"></a>
|
||||||
|
## Installation
|
||||||
|
Run the following command to generate the DLL
|
||||||
|
- [Mac/Linux] `/bin/sh build.sh`
|
||||||
|
- [Windows] `build.bat`
|
||||||
|
|
||||||
|
Then include the DLL (under the `bin` folder) in the C# project, and use the namespaces:
|
||||||
|
```csharp
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
```
|
||||||
|
<a name="packaging"></a>
|
||||||
|
## Packaging
|
||||||
|
|
||||||
|
A `.nuspec` is included with the project. You can follow the Nuget quickstart to [create](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package#create-the-package) and [publish](https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package#publish-the-package) packages.
|
||||||
|
|
||||||
|
This `.nuspec` uses placeholders from the `.csproj`, so build the `.csproj` directly:
|
||||||
|
|
||||||
|
```
|
||||||
|
nuget pack -Build -OutputDirectory out IO.Swagger.csproj
|
||||||
|
```
|
||||||
|
|
||||||
|
Then, publish to a [local feed](https://docs.microsoft.com/en-us/nuget/hosting-packages/local-feeds) or [other host](https://docs.microsoft.com/en-us/nuget/hosting-packages/overview) and consume the new package via Nuget as usual.
|
||||||
|
|
||||||
|
<a name="getting-started"></a>
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
|
||||||
|
namespace Example
|
||||||
|
{
|
||||||
|
public class Example
|
||||||
|
{
|
||||||
|
public void main()
|
||||||
|
{
|
||||||
|
|
||||||
|
var apiInstance = new AnotherFakeApi();
|
||||||
|
var body = new ModelClient(); // ModelClient | client model
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
// To test special tags
|
||||||
|
ModelClient result = apiInstance.TestSpecialTags(body);
|
||||||
|
Debug.WriteLine(result);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Debug.Print("Exception when calling AnotherFakeApi.TestSpecialTags: " + e.Message );
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
<a name="documentation-for-api-endpoints"></a>
|
||||||
|
## Documentation for API Endpoints
|
||||||
|
|
||||||
|
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||||
|
|
||||||
|
Class | Method | HTTP request | Description
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
*AnotherFakeApi* | [**TestSpecialTags**](docs/AnotherFakeApi.md#testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
|
||||||
|
*FakeApi* | [**FakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
|
||||||
|
*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
|
||||||
|
*FakeApi* | [**FakeOuterNumberSerialize**](docs/FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
|
||||||
|
*FakeApi* | [**FakeOuterStringSerialize**](docs/FakeApi.md#fakeouterstringserialize) | **POST** /fake/outer/string |
|
||||||
|
*FakeApi* | [**TestClientModel**](docs/FakeApi.md#testclientmodel) | **PATCH** /fake | To test \"client\" model
|
||||||
|
*FakeApi* | [**TestEndpointParameters**](docs/FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
|
*FakeApi* | [**TestEnumParameters**](docs/FakeApi.md#testenumparameters) | **GET** /fake | To test enum parameters
|
||||||
|
*FakeApi* | [**TestInlineAdditionalProperties**](docs/FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
||||||
|
*FakeApi* | [**TestJsonFormData**](docs/FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data
|
||||||
|
*FakeClassnameTags123Api* | [**TestClassname**](docs/FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case
|
||||||
|
*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/{order_id} | 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/{order_id} | 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
|
||||||
|
|
||||||
|
|
||||||
|
<a name="documentation-for-models"></a>
|
||||||
|
## Documentation for Models
|
||||||
|
|
||||||
|
- [Model.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
|
||||||
|
- [Model.Animal](docs/Animal.md)
|
||||||
|
- [Model.AnimalFarm](docs/AnimalFarm.md)
|
||||||
|
- [Model.ApiResponse](docs/ApiResponse.md)
|
||||||
|
- [Model.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
|
||||||
|
- [Model.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
||||||
|
- [Model.ArrayTest](docs/ArrayTest.md)
|
||||||
|
- [Model.Capitalization](docs/Capitalization.md)
|
||||||
|
- [Model.Category](docs/Category.md)
|
||||||
|
- [Model.ClassModel](docs/ClassModel.md)
|
||||||
|
- [Model.EnumArrays](docs/EnumArrays.md)
|
||||||
|
- [Model.EnumClass](docs/EnumClass.md)
|
||||||
|
- [Model.EnumTest](docs/EnumTest.md)
|
||||||
|
- [Model.FormatTest](docs/FormatTest.md)
|
||||||
|
- [Model.HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
|
||||||
|
- [Model.List](docs/List.md)
|
||||||
|
- [Model.MapTest](docs/MapTest.md)
|
||||||
|
- [Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||||
|
- [Model.Model200Response](docs/Model200Response.md)
|
||||||
|
- [Model.ModelClient](docs/ModelClient.md)
|
||||||
|
- [Model.ModelReturn](docs/ModelReturn.md)
|
||||||
|
- [Model.Name](docs/Name.md)
|
||||||
|
- [Model.NumberOnly](docs/NumberOnly.md)
|
||||||
|
- [Model.Order](docs/Order.md)
|
||||||
|
- [Model.OuterBoolean](docs/OuterBoolean.md)
|
||||||
|
- [Model.OuterComposite](docs/OuterComposite.md)
|
||||||
|
- [Model.OuterEnum](docs/OuterEnum.md)
|
||||||
|
- [Model.OuterNumber](docs/OuterNumber.md)
|
||||||
|
- [Model.OuterString](docs/OuterString.md)
|
||||||
|
- [Model.Pet](docs/Pet.md)
|
||||||
|
- [Model.ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
||||||
|
- [Model.SpecialModelName](docs/SpecialModelName.md)
|
||||||
|
- [Model.Tag](docs/Tag.md)
|
||||||
|
- [Model.User](docs/User.md)
|
||||||
|
- [Model.Cat](docs/Cat.md)
|
||||||
|
- [Model.Dog](docs/Dog.md)
|
||||||
|
|
||||||
|
|
||||||
|
<a name="documentation-for-authorization"></a>
|
||||||
|
## Documentation for Authorization
|
||||||
|
|
||||||
|
<a name="api_key"></a>
|
||||||
|
### api_key
|
||||||
|
|
||||||
|
- **Type**: API key
|
||||||
|
- **API key parameter name**: api_key
|
||||||
|
- **Location**: HTTP header
|
||||||
|
|
||||||
|
<a name="api_key_query"></a>
|
||||||
|
### api_key_query
|
||||||
|
|
||||||
|
- **Type**: API key
|
||||||
|
- **API key parameter name**: api_key_query
|
||||||
|
- **Location**: URL query string
|
||||||
|
|
||||||
|
<a name="http_basic_test"></a>
|
||||||
|
### http_basic_test
|
||||||
|
|
||||||
|
- **Type**: HTTP basic authentication
|
||||||
|
|
||||||
|
<a name="petstore_auth"></a>
|
||||||
|
### 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
|
||||||
|
|
16
samples/client/petstore/csharp/SwaggerClientNet40/build.bat
Normal file
16
samples/client/petstore/csharp/SwaggerClientNet40/build.bat
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
:: Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
::
|
||||||
|
|
||||||
|
@echo off
|
||||||
|
|
||||||
|
SET CSCPATH=%SYSTEMROOT%\Microsoft.NET\Framework\v3.5
|
||||||
|
|
||||||
|
if not exist ".\nuget.exe" powershell -Command "(new-object System.Net.WebClient).DownloadFile('https://dist.nuget.org/win-x86-commandline/latest/nuget.exe', '.\nuget.exe')"
|
||||||
|
.\nuget.exe install src\IO.Swagger\packages.config -o packages
|
||||||
|
|
||||||
|
if not exist ".\bin" mkdir bin
|
||||||
|
|
||||||
|
copy packages\Newtonsoft.Json.4.5.11\lib\net40\Newtonsoft.Json.dll bin\Newtonsoft.Json.dll
|
||||||
|
copy packages\RestSharp.105.1.0\lib\net4\RestSharp.dll bin\RestSharp.dll
|
||||||
|
%CSCPATH%\csc /reference:bin\Newtonsoft.Json.dll;bin\RestSharp.dll;System.ComponentModel.DataAnnotations.dll /target:library /out:bin\IO.Swagger.dll /recurse:src\IO.Swagger\*.cs /doc:bin\IO.Swagger.xml
|
||||||
|
|
38
samples/client/petstore/csharp/SwaggerClientNet40/build.sh
Normal file
38
samples/client/petstore/csharp/SwaggerClientNet40/build.sh
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
#
|
||||||
|
|
||||||
|
frameworkVersion=net40
|
||||||
|
netfx=${frameworkVersion#net}
|
||||||
|
|
||||||
|
echo "[INFO] Target framework: ${frameworkVersion}"
|
||||||
|
|
||||||
|
echo "[INFO] Download nuget and packages"
|
||||||
|
wget -nc https://dist.nuget.org/win-x86-commandline/latest/nuget.exe;
|
||||||
|
mozroots --import --sync
|
||||||
|
mono nuget.exe install src/IO.Swagger/packages.config -o packages;
|
||||||
|
|
||||||
|
echo "[INFO] Copy DLLs to the 'bin' folder"
|
||||||
|
mkdir -p bin;
|
||||||
|
cp packages/Newtonsoft.Json.4.5.11/lib/net40/Newtonsoft.Json.dll bin/Newtonsoft.Json.dll;
|
||||||
|
cp packages/RestSharp.105.1.0/lib/net4/RestSharp.dll bin/RestSharp.dll;
|
||||||
|
|
||||||
|
echo "[INFO] Run 'mcs' to build bin/IO.Swagger.dll"
|
||||||
|
mcs -sdk:${netfx} -r:bin/Newtonsoft.Json.dll,\
|
||||||
|
bin/RestSharp.dll,\
|
||||||
|
System.ComponentModel.DataAnnotations.dll,\
|
||||||
|
System.Runtime.Serialization.dll \
|
||||||
|
-target:library \
|
||||||
|
-out:bin/IO.Swagger.dll \
|
||||||
|
-recurse:'src/IO.Swagger/*.cs' \
|
||||||
|
-doc:bin/IO.Swagger.xml \
|
||||||
|
-platform:anycpu
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]
|
||||||
|
then
|
||||||
|
echo "[ERROR] Compilation failed with exit code $?"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "[INFO] bin/IO.Swagger.dll was created successfully"
|
||||||
|
fi
|
@ -0,0 +1,10 @@
|
|||||||
|
# IO.Swagger.Model.AdditionalPropertiesClass
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**MapProperty** | **Dictionary<string, string>** | | [optional]
|
||||||
|
**MapOfMapProperty** | **Dictionary<string, Dictionary<string, 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)
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
# IO.Swagger.Model.Animal
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**ClassName** | **string** | |
|
||||||
|
**Color** | **string** | | [optional] [default to "red"]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,8 @@
|
|||||||
|
# IO.Swagger.Model.AnimalFarm
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,70 @@
|
|||||||
|
# IO.Swagger.Api.AnotherFakeApi
|
||||||
|
|
||||||
|
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||||
|
|
||||||
|
Method | HTTP request | Description
|
||||||
|
------------- | ------------- | -------------
|
||||||
|
[**TestSpecialTags**](AnotherFakeApi.md#testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
|
||||||
|
|
||||||
|
|
||||||
|
<a name="testspecialtags"></a>
|
||||||
|
# **TestSpecialTags**
|
||||||
|
> ModelClient TestSpecialTags (ModelClient body)
|
||||||
|
|
||||||
|
To test special tags
|
||||||
|
|
||||||
|
To test special tags
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
|
||||||
|
namespace Example
|
||||||
|
{
|
||||||
|
public class TestSpecialTagsExample
|
||||||
|
{
|
||||||
|
public void main()
|
||||||
|
{
|
||||||
|
var apiInstance = new AnotherFakeApi();
|
||||||
|
var body = new ModelClient(); // ModelClient | client model
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
// To test special tags
|
||||||
|
ModelClient result = apiInstance.TestSpecialTags(body);
|
||||||
|
Debug.WriteLine(result);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Debug.Print("Exception when calling AnotherFakeApi.TestSpecialTags: " + e.Message );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**ModelClient**](ModelClient.md)| client model |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**ModelClient**](ModelClient.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/json
|
||||||
|
- **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)
|
||||||
|
|
@ -0,0 +1,11 @@
|
|||||||
|
# IO.Swagger.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)
|
||||||
|
|
@ -0,0 +1,9 @@
|
|||||||
|
# IO.Swagger.Model.ArrayOfArrayOfNumberOnly
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**ArrayArrayNumber** | **List<List<decimal?>>** | | [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)
|
||||||
|
|
@ -0,0 +1,9 @@
|
|||||||
|
# IO.Swagger.Model.ArrayOfNumberOnly
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**ArrayNumber** | **List<decimal?>** | | [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)
|
||||||
|
|
@ -0,0 +1,11 @@
|
|||||||
|
# IO.Swagger.Model.ArrayTest
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**ArrayOfString** | **List<string>** | | [optional]
|
||||||
|
**ArrayArrayOfInteger** | **List<List<long?>>** | | [optional]
|
||||||
|
**ArrayArrayOfModel** | **List<List<ReadOnlyFirst>>** | | [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)
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
# IO.Swagger.Model.Capitalization
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**SmallCamel** | **string** | | [optional]
|
||||||
|
**CapitalCamel** | **string** | | [optional]
|
||||||
|
**SmallSnake** | **string** | | [optional]
|
||||||
|
**CapitalSnake** | **string** | | [optional]
|
||||||
|
**SCAETHFlowPoints** | **string** | | [optional]
|
||||||
|
**ATT_NAME** | **string** | Name 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)
|
||||||
|
|
@ -0,0 +1,11 @@
|
|||||||
|
# IO.Swagger.Model.Cat
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**ClassName** | **string** | |
|
||||||
|
**Color** | **string** | | [optional] [default to "red"]
|
||||||
|
**Declawed** | **bool?** | | [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)
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
# IO.Swagger.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)
|
||||||
|
|
@ -0,0 +1,9 @@
|
|||||||
|
# IO.Swagger.Model.ClassModel
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**_Class** | **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)
|
||||||
|
|
@ -0,0 +1,11 @@
|
|||||||
|
# IO.Swagger.Model.Dog
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**ClassName** | **string** | |
|
||||||
|
**Color** | **string** | | [optional] [default to "red"]
|
||||||
|
**Breed** | **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)
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
# IO.Swagger.Model.EnumArrays
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**JustSymbol** | **string** | | [optional]
|
||||||
|
**ArrayEnum** | **List<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)
|
||||||
|
|
@ -0,0 +1,8 @@
|
|||||||
|
# IO.Swagger.Model.EnumClass
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,12 @@
|
|||||||
|
# IO.Swagger.Model.EnumTest
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**EnumString** | **string** | | [optional]
|
||||||
|
**EnumInteger** | **int?** | | [optional]
|
||||||
|
**EnumNumber** | **double?** | | [optional]
|
||||||
|
**OuterEnum** | [**OuterEnum**](OuterEnum.md) | | [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)
|
||||||
|
|
@ -0,0 +1,604 @@
|
|||||||
|
# IO.Swagger.Api.FakeApi
|
||||||
|
|
||||||
|
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||||
|
|
||||||
|
Method | HTTP request | Description
|
||||||
|
------------- | ------------- | -------------
|
||||||
|
[**FakeOuterBooleanSerialize**](FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
|
||||||
|
[**FakeOuterCompositeSerialize**](FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
|
||||||
|
[**FakeOuterNumberSerialize**](FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |
|
||||||
|
[**FakeOuterStringSerialize**](FakeApi.md#fakeouterstringserialize) | **POST** /fake/outer/string |
|
||||||
|
[**TestClientModel**](FakeApi.md#testclientmodel) | **PATCH** /fake | To test \"client\" model
|
||||||
|
[**TestEndpointParameters**](FakeApi.md#testendpointparameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
|
[**TestEnumParameters**](FakeApi.md#testenumparameters) | **GET** /fake | To test enum parameters
|
||||||
|
[**TestInlineAdditionalProperties**](FakeApi.md#testinlineadditionalproperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
||||||
|
[**TestJsonFormData**](FakeApi.md#testjsonformdata) | **GET** /fake/jsonFormData | test json serialization of form data
|
||||||
|
|
||||||
|
|
||||||
|
<a name="fakeouterbooleanserialize"></a>
|
||||||
|
# **FakeOuterBooleanSerialize**
|
||||||
|
> OuterBoolean FakeOuterBooleanSerialize (OuterBoolean body = null)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Test serialization of outer boolean types
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
|
||||||
|
namespace Example
|
||||||
|
{
|
||||||
|
public class FakeOuterBooleanSerializeExample
|
||||||
|
{
|
||||||
|
public void main()
|
||||||
|
{
|
||||||
|
var apiInstance = new FakeApi();
|
||||||
|
var body = new OuterBoolean(); // OuterBoolean | Input boolean as post body (optional)
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
OuterBoolean result = apiInstance.FakeOuterBooleanSerialize(body);
|
||||||
|
Debug.WriteLine(result);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Debug.Print("Exception when calling FakeApi.FakeOuterBooleanSerialize: " + e.Message );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**OuterBoolean**](OuterBoolean.md)| Input boolean as post body | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**OuterBoolean**](OuterBoolean.md)
|
||||||
|
|
||||||
|
### 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)
|
||||||
|
|
||||||
|
<a name="fakeoutercompositeserialize"></a>
|
||||||
|
# **FakeOuterCompositeSerialize**
|
||||||
|
> OuterComposite FakeOuterCompositeSerialize (OuterComposite body = null)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Test serialization of object with outer number type
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
|
||||||
|
namespace Example
|
||||||
|
{
|
||||||
|
public class FakeOuterCompositeSerializeExample
|
||||||
|
{
|
||||||
|
public void main()
|
||||||
|
{
|
||||||
|
var apiInstance = new FakeApi();
|
||||||
|
var body = new OuterComposite(); // OuterComposite | Input composite as post body (optional)
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
OuterComposite result = apiInstance.FakeOuterCompositeSerialize(body);
|
||||||
|
Debug.WriteLine(result);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Debug.Print("Exception when calling FakeApi.FakeOuterCompositeSerialize: " + e.Message );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**OuterComposite**](OuterComposite.md)
|
||||||
|
|
||||||
|
### 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)
|
||||||
|
|
||||||
|
<a name="fakeouternumberserialize"></a>
|
||||||
|
# **FakeOuterNumberSerialize**
|
||||||
|
> OuterNumber FakeOuterNumberSerialize (OuterNumber body = null)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Test serialization of outer number types
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
|
||||||
|
namespace Example
|
||||||
|
{
|
||||||
|
public class FakeOuterNumberSerializeExample
|
||||||
|
{
|
||||||
|
public void main()
|
||||||
|
{
|
||||||
|
var apiInstance = new FakeApi();
|
||||||
|
var body = new OuterNumber(); // OuterNumber | Input number as post body (optional)
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
OuterNumber result = apiInstance.FakeOuterNumberSerialize(body);
|
||||||
|
Debug.WriteLine(result);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Debug.Print("Exception when calling FakeApi.FakeOuterNumberSerialize: " + e.Message );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**OuterNumber**](OuterNumber.md)| Input number as post body | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**OuterNumber**](OuterNumber.md)
|
||||||
|
|
||||||
|
### 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)
|
||||||
|
|
||||||
|
<a name="fakeouterstringserialize"></a>
|
||||||
|
# **FakeOuterStringSerialize**
|
||||||
|
> OuterString FakeOuterStringSerialize (OuterString body = null)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Test serialization of outer string types
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
|
||||||
|
namespace Example
|
||||||
|
{
|
||||||
|
public class FakeOuterStringSerializeExample
|
||||||
|
{
|
||||||
|
public void main()
|
||||||
|
{
|
||||||
|
var apiInstance = new FakeApi();
|
||||||
|
var body = new OuterString(); // OuterString | Input string as post body (optional)
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
OuterString result = apiInstance.FakeOuterStringSerialize(body);
|
||||||
|
Debug.WriteLine(result);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Debug.Print("Exception when calling FakeApi.FakeOuterStringSerialize: " + e.Message );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**OuterString**](OuterString.md)| Input string as post body | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**OuterString**](OuterString.md)
|
||||||
|
|
||||||
|
### 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)
|
||||||
|
|
||||||
|
<a name="testclientmodel"></a>
|
||||||
|
# **TestClientModel**
|
||||||
|
> ModelClient TestClientModel (ModelClient body)
|
||||||
|
|
||||||
|
To test \"client\" model
|
||||||
|
|
||||||
|
To test \"client\" model
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
|
||||||
|
namespace Example
|
||||||
|
{
|
||||||
|
public class TestClientModelExample
|
||||||
|
{
|
||||||
|
public void main()
|
||||||
|
{
|
||||||
|
var apiInstance = new FakeApi();
|
||||||
|
var body = new ModelClient(); // ModelClient | client model
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
// To test \"client\" model
|
||||||
|
ModelClient result = apiInstance.TestClientModel(body);
|
||||||
|
Debug.WriteLine(result);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Debug.Print("Exception when calling FakeApi.TestClientModel: " + e.Message );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**ModelClient**](ModelClient.md)| client model |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**ModelClient**](ModelClient.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/json
|
||||||
|
- **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)
|
||||||
|
|
||||||
|
<a name="testendpointparameters"></a>
|
||||||
|
# **TestEndpointParameters**
|
||||||
|
> void TestEndpointParameters (decimal? number, double? _double, string patternWithoutDelimiter, byte[] _byte, int? integer = null, int? int32 = null, long? int64 = null, float? _float = null, string _string = null, byte[] binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null)
|
||||||
|
|
||||||
|
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
|
|
||||||
|
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
|
||||||
|
namespace Example
|
||||||
|
{
|
||||||
|
public class TestEndpointParametersExample
|
||||||
|
{
|
||||||
|
public void main()
|
||||||
|
{
|
||||||
|
// Configure HTTP basic authorization: http_basic_test
|
||||||
|
Configuration.Default.Username = "YOUR_USERNAME";
|
||||||
|
Configuration.Default.Password = "YOUR_PASSWORD";
|
||||||
|
|
||||||
|
var apiInstance = new FakeApi();
|
||||||
|
var number = 3.4; // decimal? | None
|
||||||
|
var _double = 1.2; // double? | None
|
||||||
|
var patternWithoutDelimiter = patternWithoutDelimiter_example; // string | None
|
||||||
|
var _byte = _byte_example; // byte[] | None
|
||||||
|
var integer = 56; // int? | None (optional)
|
||||||
|
var int32 = 56; // int? | None (optional)
|
||||||
|
var int64 = 789; // long? | None (optional)
|
||||||
|
var _float = 3.4; // float? | None (optional)
|
||||||
|
var _string = _string_example; // string | None (optional)
|
||||||
|
var binary = B; // byte[] | None (optional)
|
||||||
|
var date = 2013-10-20; // DateTime? | None (optional)
|
||||||
|
var dateTime = 2013-10-20T19:20:30+01:00; // DateTime? | None (optional)
|
||||||
|
var password = password_example; // string | None (optional)
|
||||||
|
var callback = callback_example; // string | None (optional)
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
|
apiInstance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Debug.Print("Exception when calling FakeApi.TestEndpointParameters: " + e.Message );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**number** | **decimal?**| None |
|
||||||
|
**_double** | **double?**| None |
|
||||||
|
**patternWithoutDelimiter** | **string**| None |
|
||||||
|
**_byte** | **byte[]**| None |
|
||||||
|
**integer** | **int?**| None | [optional]
|
||||||
|
**int32** | **int?**| None | [optional]
|
||||||
|
**int64** | **long?**| None | [optional]
|
||||||
|
**_float** | **float?**| None | [optional]
|
||||||
|
**_string** | **string**| None | [optional]
|
||||||
|
**binary** | **byte[]**| None | [optional]
|
||||||
|
**date** | **DateTime?**| None | [optional]
|
||||||
|
**dateTime** | **DateTime?**| None | [optional]
|
||||||
|
**password** | **string**| None | [optional]
|
||||||
|
**callback** | **string**| None | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[http_basic_test](../README.md#http_basic_test)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/xml; charset=utf-8, application/json; charset=utf-8
|
||||||
|
- **Accept**: application/xml; charset=utf-8, application/json; charset=utf-8
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
<a name="testenumparameters"></a>
|
||||||
|
# **TestEnumParameters**
|
||||||
|
> void TestEnumParameters (List<string> enumFormStringArray = null, string enumFormString = null, List<string> enumHeaderStringArray = null, string enumHeaderString = null, List<string> enumQueryStringArray = null, string enumQueryString = null, int? enumQueryInteger = null, double? enumQueryDouble = null)
|
||||||
|
|
||||||
|
To test enum parameters
|
||||||
|
|
||||||
|
To test enum parameters
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
|
||||||
|
namespace Example
|
||||||
|
{
|
||||||
|
public class TestEnumParametersExample
|
||||||
|
{
|
||||||
|
public void main()
|
||||||
|
{
|
||||||
|
var apiInstance = new FakeApi();
|
||||||
|
var enumFormStringArray = new List<string>(); // List<string> | Form parameter enum test (string array) (optional)
|
||||||
|
var enumFormString = enumFormString_example; // string | Form parameter enum test (string) (optional) (default to -efg)
|
||||||
|
var enumHeaderStringArray = new List<string>(); // List<string> | Header parameter enum test (string array) (optional)
|
||||||
|
var enumHeaderString = enumHeaderString_example; // string | Header parameter enum test (string) (optional) (default to -efg)
|
||||||
|
var enumQueryStringArray = new List<string>(); // List<string> | Query parameter enum test (string array) (optional)
|
||||||
|
var enumQueryString = enumQueryString_example; // string | Query parameter enum test (string) (optional) (default to -efg)
|
||||||
|
var enumQueryInteger = 56; // int? | Query parameter enum test (double) (optional)
|
||||||
|
var enumQueryDouble = 1.2; // double? | Query parameter enum test (double) (optional)
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
// To test enum parameters
|
||||||
|
apiInstance.TestEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Debug.Print("Exception when calling FakeApi.TestEnumParameters: " + e.Message );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**enumFormStringArray** | [**List<string>**](string.md)| Form parameter enum test (string array) | [optional]
|
||||||
|
**enumFormString** | **string**| Form parameter enum test (string) | [optional] [default to -efg]
|
||||||
|
**enumHeaderStringArray** | [**List<string>**](string.md)| Header parameter enum test (string array) | [optional]
|
||||||
|
**enumHeaderString** | **string**| Header parameter enum test (string) | [optional] [default to -efg]
|
||||||
|
**enumQueryStringArray** | [**List<string>**](string.md)| Query parameter enum test (string array) | [optional]
|
||||||
|
**enumQueryString** | **string**| Query parameter enum test (string) | [optional] [default to -efg]
|
||||||
|
**enumQueryInteger** | **int?**| Query parameter enum test (double) | [optional]
|
||||||
|
**enumQueryDouble** | **double?**| Query parameter enum test (double) | [optional]
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: */*
|
||||||
|
- **Accept**: */*
|
||||||
|
|
||||||
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
<a name="testinlineadditionalproperties"></a>
|
||||||
|
# **TestInlineAdditionalProperties**
|
||||||
|
> void TestInlineAdditionalProperties (Object param)
|
||||||
|
|
||||||
|
test inline additionalProperties
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
|
||||||
|
namespace Example
|
||||||
|
{
|
||||||
|
public class TestInlineAdditionalPropertiesExample
|
||||||
|
{
|
||||||
|
public void main()
|
||||||
|
{
|
||||||
|
var apiInstance = new FakeApi();
|
||||||
|
var param = ; // Object | request body
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
// test inline additionalProperties
|
||||||
|
apiInstance.TestInlineAdditionalProperties(param);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Debug.Print("Exception when calling FakeApi.TestInlineAdditionalProperties: " + e.Message );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**param** | **Object**| request body |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/json
|
||||||
|
- **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)
|
||||||
|
|
||||||
|
<a name="testjsonformdata"></a>
|
||||||
|
# **TestJsonFormData**
|
||||||
|
> void TestJsonFormData (string param, string param2)
|
||||||
|
|
||||||
|
test json serialization of form data
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
|
||||||
|
namespace Example
|
||||||
|
{
|
||||||
|
public class TestJsonFormDataExample
|
||||||
|
{
|
||||||
|
public void main()
|
||||||
|
{
|
||||||
|
var apiInstance = new FakeApi();
|
||||||
|
var param = param_example; // string | field1
|
||||||
|
var param2 = param2_example; // string | field2
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
// test json serialization of form data
|
||||||
|
apiInstance.TestJsonFormData(param, param2);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Debug.Print("Exception when calling FakeApi.TestJsonFormData: " + e.Message );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**param** | **string**| field1 |
|
||||||
|
**param2** | **string**| field2 |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
No authorization required
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/json
|
||||||
|
- **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)
|
||||||
|
|
@ -0,0 +1,73 @@
|
|||||||
|
# IO.Swagger.Api.FakeClassnameTags123Api
|
||||||
|
|
||||||
|
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||||
|
|
||||||
|
Method | HTTP request | Description
|
||||||
|
------------- | ------------- | -------------
|
||||||
|
[**TestClassname**](FakeClassnameTags123Api.md#testclassname) | **PATCH** /fake_classname_test | To test class name in snake case
|
||||||
|
|
||||||
|
|
||||||
|
<a name="testclassname"></a>
|
||||||
|
# **TestClassname**
|
||||||
|
> ModelClient TestClassname (ModelClient body)
|
||||||
|
|
||||||
|
To test class name in snake case
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
|
||||||
|
namespace Example
|
||||||
|
{
|
||||||
|
public class TestClassnameExample
|
||||||
|
{
|
||||||
|
public void main()
|
||||||
|
{
|
||||||
|
// Configure API key authorization: api_key_query
|
||||||
|
Configuration.Default.AddApiKey("api_key_query", "YOUR_API_KEY");
|
||||||
|
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
|
// Configuration.Default.AddApiKeyPrefix("api_key_query", "Bearer");
|
||||||
|
|
||||||
|
var apiInstance = new FakeClassnameTags123Api();
|
||||||
|
var body = new ModelClient(); // ModelClient | client model
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
// To test class name in snake case
|
||||||
|
ModelClient result = apiInstance.TestClassname(body);
|
||||||
|
Debug.WriteLine(result);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Debug.Print("Exception when calling FakeClassnameTags123Api.TestClassname: " + e.Message );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------- | ------------- | ------------- | -------------
|
||||||
|
**body** | [**ModelClient**](ModelClient.md)| client model |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**ModelClient**](ModelClient.md)
|
||||||
|
|
||||||
|
### Authorization
|
||||||
|
|
||||||
|
[api_key_query](../README.md#api_key_query)
|
||||||
|
|
||||||
|
### HTTP request headers
|
||||||
|
|
||||||
|
- **Content-Type**: application/json
|
||||||
|
- **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)
|
||||||
|
|
@ -0,0 +1,21 @@
|
|||||||
|
# IO.Swagger.Model.FormatTest
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Integer** | **int?** | | [optional]
|
||||||
|
**Int32** | **int?** | | [optional]
|
||||||
|
**Int64** | **long?** | | [optional]
|
||||||
|
**Number** | **decimal?** | |
|
||||||
|
**_Float** | **float?** | | [optional]
|
||||||
|
**_Double** | **double?** | | [optional]
|
||||||
|
**_String** | **string** | | [optional]
|
||||||
|
**_Byte** | **byte[]** | |
|
||||||
|
**Binary** | **byte[]** | | [optional]
|
||||||
|
**Date** | **DateTime?** | |
|
||||||
|
**DateTime** | **DateTime?** | | [optional]
|
||||||
|
**Uuid** | **Guid?** | | [optional]
|
||||||
|
**Password** | **string** | |
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
# IO.Swagger.Model.HasOnlyReadOnly
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Bar** | **string** | | [optional]
|
||||||
|
**Foo** | **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)
|
||||||
|
|
@ -0,0 +1,9 @@
|
|||||||
|
# IO.Swagger.Model.List
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**_123List** | **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)
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
# IO.Swagger.Model.MapTest
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**MapMapOfString** | **Dictionary<string, Dictionary<string, string>>** | | [optional]
|
||||||
|
**MapOfEnumString** | **Dictionary<string, 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)
|
||||||
|
|
@ -0,0 +1,11 @@
|
|||||||
|
# IO.Swagger.Model.MixedPropertiesAndAdditionalPropertiesClass
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Uuid** | **Guid?** | | [optional]
|
||||||
|
**DateTime** | **DateTime?** | | [optional]
|
||||||
|
**Map** | [**Dictionary<string, Animal>**](Animal.md) | | [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)
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
# IO.Swagger.Model.Model200Response
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Name** | **int?** | | [optional]
|
||||||
|
**_Class** | **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)
|
||||||
|
|
@ -0,0 +1,9 @@
|
|||||||
|
# IO.Swagger.Model.ModelClient
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**_Client** | **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)
|
||||||
|
|
@ -0,0 +1,9 @@
|
|||||||
|
# IO.Swagger.Model.ModelReturn
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**_Return** | **int?** | | [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)
|
||||||
|
|
@ -0,0 +1,12 @@
|
|||||||
|
# IO.Swagger.Model.Name
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**_Name** | **int?** | |
|
||||||
|
**SnakeCase** | **int?** | | [optional]
|
||||||
|
**Property** | **string** | | [optional]
|
||||||
|
**_123Number** | **int?** | | [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)
|
||||||
|
|
@ -0,0 +1,9 @@
|
|||||||
|
# IO.Swagger.Model.NumberOnly
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**JustNumber** | **decimal?** | | [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)
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
# IO.Swagger.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)
|
||||||
|
|
@ -0,0 +1,8 @@
|
|||||||
|
# IO.Swagger.Model.OuterBoolean
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,11 @@
|
|||||||
|
# IO.Swagger.Model.OuterComposite
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**MyNumber** | [**OuterNumber**](OuterNumber.md) | | [optional]
|
||||||
|
**MyString** | [**OuterString**](OuterString.md) | | [optional]
|
||||||
|
**MyBoolean** | [**OuterBoolean**](OuterBoolean.md) | | [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)
|
||||||
|
|
@ -0,0 +1,8 @@
|
|||||||
|
# IO.Swagger.Model.OuterEnum
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,8 @@
|
|||||||
|
# IO.Swagger.Model.OuterNumber
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,8 @@
|
|||||||
|
# IO.Swagger.Model.OuterString
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
# IO.Swagger.Model.Pet
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Id** | **long?** | | [optional]
|
||||||
|
**Category** | [**Category**](Category.md) | | [optional]
|
||||||
|
**Name** | **string** | |
|
||||||
|
**PhotoUrls** | **List<string>** | |
|
||||||
|
**Tags** | [**List<Tag>**](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)
|
||||||
|
|
536
samples/client/petstore/csharp/SwaggerClientNet40/docs/PetApi.md
Normal file
536
samples/client/petstore/csharp/SwaggerClientNet40/docs/PetApi.md
Normal file
@ -0,0 +1,536 @@
|
|||||||
|
# IO.Swagger.Api.PetApi
|
||||||
|
|
||||||
|
All URIs are relative to *http://petstore.swagger.io:80/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
|
||||||
|
|
||||||
|
|
||||||
|
<a name="addpet"></a>
|
||||||
|
# **AddPet**
|
||||||
|
> void AddPet (Pet body)
|
||||||
|
|
||||||
|
Add a new pet to the store
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.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**: 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)
|
||||||
|
|
||||||
|
<a name="deletepet"></a>
|
||||||
|
# **DeletePet**
|
||||||
|
> void DeletePet (long? petId, string apiKey = null)
|
||||||
|
|
||||||
|
Deletes a pet
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.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**: 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)
|
||||||
|
|
||||||
|
<a name="findpetsbystatus"></a>
|
||||||
|
# **FindPetsByStatus**
|
||||||
|
> List<Pet> FindPetsByStatus (List<string> status)
|
||||||
|
|
||||||
|
Finds Pets by status
|
||||||
|
|
||||||
|
Multiple status values can be provided with comma separated strings
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.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 = new List<string>(); // List<string> | 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<string>**](string.md)| Status values that need to be considered for filter |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**List<Pet>**](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)
|
||||||
|
|
||||||
|
<a name="findpetsbytags"></a>
|
||||||
|
# **FindPetsByTags**
|
||||||
|
> List<Pet> FindPetsByTags (List<string> 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 IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.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<string>(); // List<string> | 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>**](string.md)| Tags to filter by |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
[**List<Pet>**](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)
|
||||||
|
|
||||||
|
<a name="getpetbyid"></a>
|
||||||
|
# **GetPetById**
|
||||||
|
> Pet GetPetById (long? petId)
|
||||||
|
|
||||||
|
Find pet by ID
|
||||||
|
|
||||||
|
Returns a single pet
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
|
||||||
|
namespace Example
|
||||||
|
{
|
||||||
|
public class GetPetByIdExample
|
||||||
|
{
|
||||||
|
public void main()
|
||||||
|
{
|
||||||
|
// Configure API key authorization: api_key
|
||||||
|
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
|
||||||
|
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
|
// Configuration.Default.AddApiKeyPrefix("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)
|
||||||
|
|
||||||
|
<a name="updatepet"></a>
|
||||||
|
# **UpdatePet**
|
||||||
|
> void UpdatePet (Pet body)
|
||||||
|
|
||||||
|
Update an existing pet
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.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**: 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)
|
||||||
|
|
||||||
|
<a name="updatepetwithform"></a>
|
||||||
|
# **UpdatePetWithForm**
|
||||||
|
> void UpdatePetWithForm (long? petId, string name = null, string status = null)
|
||||||
|
|
||||||
|
Updates a pet in the store with form data
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.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**: 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)
|
||||||
|
|
||||||
|
<a name="uploadfile"></a>
|
||||||
|
# **UploadFile**
|
||||||
|
> ApiResponse UploadFile (long? petId, string additionalMetadata = null, System.IO.Stream file = null)
|
||||||
|
|
||||||
|
uploads an image
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.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)
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
# IO.Swagger.Model.ReadOnlyFirst
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**Bar** | **string** | | [optional]
|
||||||
|
**Baz** | **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)
|
||||||
|
|
@ -0,0 +1,9 @@
|
|||||||
|
# IO.Swagger.Model.SpecialModelName
|
||||||
|
## Properties
|
||||||
|
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**SpecialPropertyName** | **long?** | | [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)
|
||||||
|
|
@ -0,0 +1,256 @@
|
|||||||
|
# IO.Swagger.Api.StoreApi
|
||||||
|
|
||||||
|
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||||
|
|
||||||
|
Method | HTTP request | Description
|
||||||
|
------------- | ------------- | -------------
|
||||||
|
[**DeleteOrder**](StoreApi.md#deleteorder) | **DELETE** /store/order/{order_id} | Delete purchase order by ID
|
||||||
|
[**GetInventory**](StoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
|
||||||
|
[**GetOrderById**](StoreApi.md#getorderbyid) | **GET** /store/order/{order_id} | Find purchase order by ID
|
||||||
|
[**PlaceOrder**](StoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet
|
||||||
|
|
||||||
|
|
||||||
|
<a name="deleteorder"></a>
|
||||||
|
# **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 IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.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**: 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)
|
||||||
|
|
||||||
|
<a name="getinventory"></a>
|
||||||
|
# **GetInventory**
|
||||||
|
> Dictionary<string, int?> GetInventory ()
|
||||||
|
|
||||||
|
Returns pet inventories by status
|
||||||
|
|
||||||
|
Returns a map of status codes to quantities
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
|
||||||
|
namespace Example
|
||||||
|
{
|
||||||
|
public class GetInventoryExample
|
||||||
|
{
|
||||||
|
public void main()
|
||||||
|
{
|
||||||
|
// Configure API key authorization: api_key
|
||||||
|
Configuration.Default.AddApiKey("api_key", "YOUR_API_KEY");
|
||||||
|
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
||||||
|
// Configuration.Default.AddApiKeyPrefix("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<string, int?>**
|
||||||
|
|
||||||
|
### 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)
|
||||||
|
|
||||||
|
<a name="getorderbyid"></a>
|
||||||
|
# **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 IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.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)
|
||||||
|
|
||||||
|
<a name="placeorder"></a>
|
||||||
|
# **PlaceOrder**
|
||||||
|
> Order PlaceOrder (Order body)
|
||||||
|
|
||||||
|
Place an order for a pet
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.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)
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
# IO.Swagger.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)
|
||||||
|
|
@ -0,0 +1,16 @@
|
|||||||
|
# IO.Swagger.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)
|
||||||
|
|
@ -0,0 +1,498 @@
|
|||||||
|
# IO.Swagger.Api.UserApi
|
||||||
|
|
||||||
|
All URIs are relative to *http://petstore.swagger.io:80/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
|
||||||
|
|
||||||
|
|
||||||
|
<a name="createuser"></a>
|
||||||
|
# **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 IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.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**: 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)
|
||||||
|
|
||||||
|
<a name="createuserswitharrayinput"></a>
|
||||||
|
# **CreateUsersWithArrayInput**
|
||||||
|
> void CreateUsersWithArrayInput (List<User> body)
|
||||||
|
|
||||||
|
Creates list of users with given input array
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
|
||||||
|
namespace Example
|
||||||
|
{
|
||||||
|
public class CreateUsersWithArrayInputExample
|
||||||
|
{
|
||||||
|
public void main()
|
||||||
|
{
|
||||||
|
var apiInstance = new UserApi();
|
||||||
|
var body = new List<User>(); // List<User> | 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<User>**](User.md)| List of user object |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### 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)
|
||||||
|
|
||||||
|
<a name="createuserswithlistinput"></a>
|
||||||
|
# **CreateUsersWithListInput**
|
||||||
|
> void CreateUsersWithListInput (List<User> body)
|
||||||
|
|
||||||
|
Creates list of users with given input array
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
|
||||||
|
namespace Example
|
||||||
|
{
|
||||||
|
public class CreateUsersWithListInputExample
|
||||||
|
{
|
||||||
|
public void main()
|
||||||
|
{
|
||||||
|
var apiInstance = new UserApi();
|
||||||
|
var body = new List<User>(); // List<User> | 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<User>**](User.md)| List of user object |
|
||||||
|
|
||||||
|
### Return type
|
||||||
|
|
||||||
|
void (empty response body)
|
||||||
|
|
||||||
|
### 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)
|
||||||
|
|
||||||
|
<a name="deleteuser"></a>
|
||||||
|
# **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 IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.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**: 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)
|
||||||
|
|
||||||
|
<a name="getuserbyname"></a>
|
||||||
|
# **GetUserByName**
|
||||||
|
> User GetUserByName (string username)
|
||||||
|
|
||||||
|
Get user by user name
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.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)
|
||||||
|
|
||||||
|
<a name="loginuser"></a>
|
||||||
|
# **LoginUser**
|
||||||
|
> string LoginUser (string username, string password)
|
||||||
|
|
||||||
|
Logs user into the system
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.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)
|
||||||
|
|
||||||
|
<a name="logoutuser"></a>
|
||||||
|
# **LogoutUser**
|
||||||
|
> void LogoutUser ()
|
||||||
|
|
||||||
|
Logs out current logged in user session
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Example
|
||||||
|
```csharp
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.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**: 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)
|
||||||
|
|
||||||
|
<a name="updateuser"></a>
|
||||||
|
# **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 IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.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**: 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)
|
||||||
|
|
@ -0,0 +1,52 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
||||||
|
#
|
||||||
|
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
||||||
|
|
||||||
|
git_user_id=$1
|
||||||
|
git_repo_id=$2
|
||||||
|
release_note=$3
|
||||||
|
|
||||||
|
if [ "$git_user_id" = "" ]; then
|
||||||
|
git_user_id="GIT_USER_ID"
|
||||||
|
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$git_repo_id" = "" ]; then
|
||||||
|
git_repo_id="GIT_REPO_ID"
|
||||||
|
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$release_note" = "" ]; then
|
||||||
|
release_note="Minor update"
|
||||||
|
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Initialize the local directory as a Git repository
|
||||||
|
git init
|
||||||
|
|
||||||
|
# Adds the files in the local repository and stages them for commit.
|
||||||
|
git add .
|
||||||
|
|
||||||
|
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
||||||
|
git commit -m "$release_note"
|
||||||
|
|
||||||
|
# Sets the new remote
|
||||||
|
git_remote=`git remote`
|
||||||
|
if [ "$git_remote" = "" ]; then # git remote not defined
|
||||||
|
|
||||||
|
if [ "$GIT_TOKEN" = "" ]; then
|
||||||
|
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git crediential in your environment."
|
||||||
|
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
||||||
|
else
|
||||||
|
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
git pull origin master
|
||||||
|
|
||||||
|
# Pushes (Forces) the changes in the local repository up to the remote repository
|
||||||
|
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
||||||
|
git push origin master 2>&1 | grep -v 'To https'
|
||||||
|
|
@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
#
|
||||||
|
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
#
|
||||||
|
|
||||||
|
wget -nc https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
|
||||||
|
mozroots --import --sync
|
||||||
|
|
||||||
|
echo "[INFO] remove bin/Debug/SwaggerClientTest.dll"
|
||||||
|
rm src/IO.Swagger.Test/bin/Debug/IO.Swagger.Test.dll 2> /dev/null
|
||||||
|
|
||||||
|
echo "[INFO] install NUnit runners via NuGet"
|
||||||
|
wget -nc https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
|
||||||
|
mozroots --import --sync
|
||||||
|
mono nuget.exe install src/IO.Swagger.Test/packages.config -o packages
|
||||||
|
|
||||||
|
echo "[INFO] Install NUnit runners via NuGet"
|
||||||
|
mono nuget.exe install NUnit.Runners -Version 2.6.4 -OutputDirectory packages
|
||||||
|
|
||||||
|
echo "[INFO] Build the solution and run the unit test"
|
||||||
|
xbuild IO.Swagger.sln && \
|
||||||
|
mono ./packages/NUnit.Runners.2.6.4/tools/nunit-console.exe src/IO.Swagger.Test/bin/Debug/IO.Swagger.Test.dll
|
BIN
samples/client/petstore/csharp/SwaggerClientNet40/nuget.exe
Normal file
BIN
samples/client/petstore/csharp/SwaggerClientNet40/nuget.exe
Normal file
Binary file not shown.
@ -0,0 +1,81 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Reflection;
|
||||||
|
using RestSharp;
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing AnotherFakeApi
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the API endpoint.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class AnotherFakeApiTests
|
||||||
|
{
|
||||||
|
private AnotherFakeApi instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each unit test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
instance = new AnotherFakeApi();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each unit test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of AnotherFakeApi
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void InstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test 'IsInstanceOfType' AnotherFakeApi
|
||||||
|
//Assert.IsInstanceOfType(typeof(AnotherFakeApi), instance, "instance is a AnotherFakeApi");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test TestSpecialTags
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void TestSpecialTagsTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//ModelClient body = null;
|
||||||
|
//var response = instance.TestSpecialTags(body);
|
||||||
|
//Assert.IsInstanceOf<ModelClient> (response, "response is ModelClient");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,198 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Reflection;
|
||||||
|
using RestSharp;
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing FakeApi
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the API endpoint.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class FakeApiTests
|
||||||
|
{
|
||||||
|
private FakeApi instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each unit test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
instance = new FakeApi();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each unit test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of FakeApi
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void InstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test 'IsInstanceOfType' FakeApi
|
||||||
|
//Assert.IsInstanceOfType(typeof(FakeApi), instance, "instance is a FakeApi");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test FakeOuterBooleanSerialize
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void FakeOuterBooleanSerializeTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//OuterBoolean body = null;
|
||||||
|
//var response = instance.FakeOuterBooleanSerialize(body);
|
||||||
|
//Assert.IsInstanceOf<OuterBoolean> (response, "response is OuterBoolean");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test FakeOuterCompositeSerialize
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void FakeOuterCompositeSerializeTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//OuterComposite body = null;
|
||||||
|
//var response = instance.FakeOuterCompositeSerialize(body);
|
||||||
|
//Assert.IsInstanceOf<OuterComposite> (response, "response is OuterComposite");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test FakeOuterNumberSerialize
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void FakeOuterNumberSerializeTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//OuterNumber body = null;
|
||||||
|
//var response = instance.FakeOuterNumberSerialize(body);
|
||||||
|
//Assert.IsInstanceOf<OuterNumber> (response, "response is OuterNumber");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test FakeOuterStringSerialize
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void FakeOuterStringSerializeTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//OuterString body = null;
|
||||||
|
//var response = instance.FakeOuterStringSerialize(body);
|
||||||
|
//Assert.IsInstanceOf<OuterString> (response, "response is OuterString");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test TestClientModel
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void TestClientModelTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//ModelClient body = null;
|
||||||
|
//var response = instance.TestClientModel(body);
|
||||||
|
//Assert.IsInstanceOf<ModelClient> (response, "response is ModelClient");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test TestEndpointParameters
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void TestEndpointParametersTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//decimal? number = null;
|
||||||
|
//double? _double = null;
|
||||||
|
//string patternWithoutDelimiter = null;
|
||||||
|
//byte[] _byte = null;
|
||||||
|
//int? integer = null;
|
||||||
|
//int? int32 = null;
|
||||||
|
//long? int64 = null;
|
||||||
|
//float? _float = null;
|
||||||
|
//string _string = null;
|
||||||
|
//byte[] binary = null;
|
||||||
|
//DateTime? date = null;
|
||||||
|
//DateTime? dateTime = null;
|
||||||
|
//string password = null;
|
||||||
|
//string callback = null;
|
||||||
|
//instance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test TestEnumParameters
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void TestEnumParametersTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//List<string> enumFormStringArray = null;
|
||||||
|
//string enumFormString = null;
|
||||||
|
//List<string> enumHeaderStringArray = null;
|
||||||
|
//string enumHeaderString = null;
|
||||||
|
//List<string> enumQueryStringArray = null;
|
||||||
|
//string enumQueryString = null;
|
||||||
|
//int? enumQueryInteger = null;
|
||||||
|
//double? enumQueryDouble = null;
|
||||||
|
//instance.TestEnumParameters(enumFormStringArray, enumFormString, enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test TestInlineAdditionalProperties
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void TestInlineAdditionalPropertiesTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//Object param = null;
|
||||||
|
//instance.TestInlineAdditionalProperties(param);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test TestJsonFormData
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void TestJsonFormDataTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//string param = null;
|
||||||
|
//string param2 = null;
|
||||||
|
//instance.TestJsonFormData(param, param2);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,81 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Reflection;
|
||||||
|
using RestSharp;
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing FakeClassnameTags123Api
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the API endpoint.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class FakeClassnameTags123ApiTests
|
||||||
|
{
|
||||||
|
private FakeClassnameTags123Api instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each unit test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
instance = new FakeClassnameTags123Api();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each unit test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of FakeClassnameTags123Api
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void InstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test 'IsInstanceOfType' FakeClassnameTags123Api
|
||||||
|
//Assert.IsInstanceOfType(typeof(FakeClassnameTags123Api), instance, "instance is a FakeClassnameTags123Api");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test TestClassname
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void TestClassnameTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//ModelClient body = null;
|
||||||
|
//var response = instance.TestClassname(body);
|
||||||
|
//Assert.IsInstanceOf<ModelClient> (response, "response is ModelClient");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,170 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Reflection;
|
||||||
|
using RestSharp;
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing PetApi
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the API endpoint.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class PetApiTests
|
||||||
|
{
|
||||||
|
private PetApi instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each unit test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
instance = new PetApi();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each unit test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of PetApi
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void InstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test 'IsInstanceOfType' PetApi
|
||||||
|
//Assert.IsInstanceOfType(typeof(PetApi), instance, "instance is a PetApi");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test AddPet
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void AddPetTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//Pet body = null;
|
||||||
|
//instance.AddPet(body);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test DeletePet
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void DeletePetTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//long? petId = null;
|
||||||
|
//string apiKey = null;
|
||||||
|
//instance.DeletePet(petId, apiKey);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test FindPetsByStatus
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void FindPetsByStatusTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//List<string> status = null;
|
||||||
|
//var response = instance.FindPetsByStatus(status);
|
||||||
|
//Assert.IsInstanceOf<List<Pet>> (response, "response is List<Pet>");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test FindPetsByTags
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void FindPetsByTagsTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//List<string> tags = null;
|
||||||
|
//var response = instance.FindPetsByTags(tags);
|
||||||
|
//Assert.IsInstanceOf<List<Pet>> (response, "response is List<Pet>");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test GetPetById
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void GetPetByIdTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//long? petId = null;
|
||||||
|
//var response = instance.GetPetById(petId);
|
||||||
|
//Assert.IsInstanceOf<Pet> (response, "response is Pet");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test UpdatePet
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void UpdatePetTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//Pet body = null;
|
||||||
|
//instance.UpdatePet(body);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test UpdatePetWithForm
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void UpdatePetWithFormTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//long? petId = null;
|
||||||
|
//string name = null;
|
||||||
|
//string status = null;
|
||||||
|
//instance.UpdatePetWithForm(petId, name, status);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test UploadFile
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void UploadFileTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//long? petId = null;
|
||||||
|
//string additionalMetadata = null;
|
||||||
|
//System.IO.Stream file = null;
|
||||||
|
//var response = instance.UploadFile(petId, additionalMetadata, file);
|
||||||
|
//Assert.IsInstanceOf<ApiResponse> (response, "response is ApiResponse");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,116 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Reflection;
|
||||||
|
using RestSharp;
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing StoreApi
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the API endpoint.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class StoreApiTests
|
||||||
|
{
|
||||||
|
private StoreApi instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each unit test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
instance = new StoreApi();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each unit test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of StoreApi
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void InstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test 'IsInstanceOfType' StoreApi
|
||||||
|
//Assert.IsInstanceOfType(typeof(StoreApi), instance, "instance is a StoreApi");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test DeleteOrder
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void DeleteOrderTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//string orderId = null;
|
||||||
|
//instance.DeleteOrder(orderId);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test GetInventory
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void GetInventoryTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//var response = instance.GetInventory();
|
||||||
|
//Assert.IsInstanceOf<Dictionary<string, int?>> (response, "response is Dictionary<string, int?>");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test GetOrderById
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void GetOrderByIdTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//long? orderId = null;
|
||||||
|
//var response = instance.GetOrderById(orderId);
|
||||||
|
//Assert.IsInstanceOf<Order> (response, "response is Order");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test PlaceOrder
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void PlaceOrderTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//Order body = null;
|
||||||
|
//var response = instance.PlaceOrder(body);
|
||||||
|
//Assert.IsInstanceOf<Order> (response, "response is Order");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,166 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Reflection;
|
||||||
|
using RestSharp;
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing UserApi
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the API endpoint.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class UserApiTests
|
||||||
|
{
|
||||||
|
private UserApi instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each unit test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
instance = new UserApi();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each unit test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of UserApi
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void InstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test 'IsInstanceOfType' UserApi
|
||||||
|
//Assert.IsInstanceOfType(typeof(UserApi), instance, "instance is a UserApi");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test CreateUser
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void CreateUserTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//User body = null;
|
||||||
|
//instance.CreateUser(body);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test CreateUsersWithArrayInput
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void CreateUsersWithArrayInputTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//List<User> body = null;
|
||||||
|
//instance.CreateUsersWithArrayInput(body);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test CreateUsersWithListInput
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void CreateUsersWithListInputTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//List<User> body = null;
|
||||||
|
//instance.CreateUsersWithListInput(body);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test DeleteUser
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void DeleteUserTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//string username = null;
|
||||||
|
//instance.DeleteUser(username);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test GetUserByName
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void GetUserByNameTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//string username = null;
|
||||||
|
//var response = instance.GetUserByName(username);
|
||||||
|
//Assert.IsInstanceOf<User> (response, "response is User");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test LoginUser
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void LoginUserTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//string username = null;
|
||||||
|
//string password = null;
|
||||||
|
//var response = instance.LoginUser(username, password);
|
||||||
|
//Assert.IsInstanceOf<string> (response, "response is string");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test LogoutUser
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void LogoutUserTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//instance.LogoutUser();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test UpdateUser
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void UpdateUserTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test the method and replace null with proper value
|
||||||
|
//string username = null;
|
||||||
|
//User body = null;
|
||||||
|
//instance.UpdateUser(username, body);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,83 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Swagger Petstore
|
||||||
|
|
||||||
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
|
||||||
|
OpenAPI spec version: 1.0.0
|
||||||
|
Contact: apiteam@swagger.io
|
||||||
|
-->
|
||||||
|
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{19F1DEBC-DE5E-4517-8062-F000CD499087}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>IO.Swagger.Test</RootNamespace>
|
||||||
|
<AssemblyName>IO.Swagger.Test</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="System.ComponentModel.DataAnnotations" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Runtime.Serialization" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
<Reference Include="Newtonsoft.Json">
|
||||||
|
<HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\Newtonsoft.Json.10.0.3\lib\net40\Newtonsoft.Json.dll</HintPath>
|
||||||
|
<HintPath Condition="Exists('..\packages')">..\packages\Newtonsoft.Json.10.0.3\lib\net40\Newtonsoft.Json.dll</HintPath>
|
||||||
|
<HintPath Condition="Exists('..\..\packages')">..\..\packages\Newtonsoft.Json.10.0.3\lib\net40\Newtonsoft.Json.dll</HintPath>
|
||||||
|
<HintPath Condition="Exists('..\..\vendor')">..\..\vendor\Newtonsoft.Json.10.0.3\lib\net40\Newtonsoft.Json.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="RestSharp">
|
||||||
|
<HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\RestSharp.105.1.0\lib\net40\RestSharp.dll</HintPath>
|
||||||
|
<HintPath Condition="Exists('..\packages')">..\packages\RestSharp.105.1.0\lib\net40\RestSharp.dll</HintPath>
|
||||||
|
<HintPath Condition="Exists('..\..\packages')">..\..\packages\RestSharp.105.1.0\lib\net40\RestSharp.dll</HintPath>
|
||||||
|
<HintPath Condition="Exists('..\..\vendor')">..\..\vendor\RestSharp.105.1.0\lib\net40\RestSharp.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="nunit.framework">
|
||||||
|
<HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
|
||||||
|
<HintPath Condition="Exists('..\packages')">..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
|
||||||
|
<HintPath Condition="Exists('..\..\packages')">..\..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
|
||||||
|
<HintPath Condition="Exists('..\..\vendor')">..\..\vendor\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="**\*.cs"
|
||||||
|
Exclude="obj\**"/>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="packages.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MsBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\IO.Swagger\IO.Swagger.csproj">
|
||||||
|
<Project>{321C8C3F-0156-40C1-AE42-D59761FB9B6C}</Project>
|
||||||
|
<Name>IO.Swagger</Name>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
|
|
@ -0,0 +1,88 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing AdditionalPropertiesClass
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class AdditionalPropertiesClassTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for AdditionalPropertiesClass
|
||||||
|
//private AdditionalPropertiesClass instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of AdditionalPropertiesClass
|
||||||
|
//instance = new AdditionalPropertiesClass();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of AdditionalPropertiesClass
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void AdditionalPropertiesClassInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" AdditionalPropertiesClass
|
||||||
|
//Assert.IsInstanceOfType<AdditionalPropertiesClass> (instance, "variable 'instance' is a AdditionalPropertiesClass");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'MapProperty'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void MapPropertyTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'MapProperty'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'MapOfMapProperty'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void MapOfMapPropertyTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'MapOfMapProperty'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing AnimalFarm
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class AnimalFarmTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for AnimalFarm
|
||||||
|
//private AnimalFarm instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of AnimalFarm
|
||||||
|
//instance = new AnimalFarm();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of AnimalFarm
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void AnimalFarmInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" AnimalFarm
|
||||||
|
//Assert.IsInstanceOfType<AnimalFarm> (instance, "variable 'instance' is a AnimalFarm");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,106 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing Animal
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class AnimalTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for Animal
|
||||||
|
//private Animal instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of Animal
|
||||||
|
//instance = new Animal();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of Animal
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void AnimalInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" Animal
|
||||||
|
//Assert.IsInstanceOfType<Animal> (instance, "variable 'instance' is a Animal");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test deserialize a Dog from type Animal
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void DogDeserializeFromAnimalTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test deserialize a Dog from type Animal
|
||||||
|
//Assert.IsInstanceOf<Animal>(JsonConvert.DeserializeObject<Animal>(new Dog().ToJson()));
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test deserialize a Cat from type Animal
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void CatDeserializeFromAnimalTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test deserialize a Cat from type Animal
|
||||||
|
//Assert.IsInstanceOf<Animal>(JsonConvert.DeserializeObject<Animal>(new Cat().ToJson()));
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'ClassName'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void ClassNameTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'ClassName'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Color'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void ColorTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Color'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,96 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing ApiResponse
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class ApiResponseTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for ApiResponse
|
||||||
|
//private ApiResponse instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of ApiResponse
|
||||||
|
//instance = new ApiResponse();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of ApiResponse
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void ApiResponseInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" ApiResponse
|
||||||
|
//Assert.IsInstanceOfType<ApiResponse> (instance, "variable 'instance' is a ApiResponse");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Code'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void CodeTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Code'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Type'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void TypeTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Type'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Message'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void MessageTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Message'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,80 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing ArrayOfArrayOfNumberOnly
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class ArrayOfArrayOfNumberOnlyTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for ArrayOfArrayOfNumberOnly
|
||||||
|
//private ArrayOfArrayOfNumberOnly instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of ArrayOfArrayOfNumberOnly
|
||||||
|
//instance = new ArrayOfArrayOfNumberOnly();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of ArrayOfArrayOfNumberOnly
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void ArrayOfArrayOfNumberOnlyInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" ArrayOfArrayOfNumberOnly
|
||||||
|
//Assert.IsInstanceOfType<ArrayOfArrayOfNumberOnly> (instance, "variable 'instance' is a ArrayOfArrayOfNumberOnly");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'ArrayArrayNumber'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void ArrayArrayNumberTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'ArrayArrayNumber'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,80 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing ArrayOfNumberOnly
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class ArrayOfNumberOnlyTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for ArrayOfNumberOnly
|
||||||
|
//private ArrayOfNumberOnly instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of ArrayOfNumberOnly
|
||||||
|
//instance = new ArrayOfNumberOnly();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of ArrayOfNumberOnly
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void ArrayOfNumberOnlyInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" ArrayOfNumberOnly
|
||||||
|
//Assert.IsInstanceOfType<ArrayOfNumberOnly> (instance, "variable 'instance' is a ArrayOfNumberOnly");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'ArrayNumber'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void ArrayNumberTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'ArrayNumber'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,96 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing ArrayTest
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class ArrayTestTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for ArrayTest
|
||||||
|
//private ArrayTest instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of ArrayTest
|
||||||
|
//instance = new ArrayTest();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of ArrayTest
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void ArrayTestInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" ArrayTest
|
||||||
|
//Assert.IsInstanceOfType<ArrayTest> (instance, "variable 'instance' is a ArrayTest");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'ArrayOfString'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void ArrayOfStringTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'ArrayOfString'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'ArrayArrayOfInteger'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void ArrayArrayOfIntegerTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'ArrayArrayOfInteger'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'ArrayArrayOfModel'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void ArrayArrayOfModelTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'ArrayArrayOfModel'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,120 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing Capitalization
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class CapitalizationTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for Capitalization
|
||||||
|
//private Capitalization instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of Capitalization
|
||||||
|
//instance = new Capitalization();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of Capitalization
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void CapitalizationInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" Capitalization
|
||||||
|
//Assert.IsInstanceOfType<Capitalization> (instance, "variable 'instance' is a Capitalization");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'SmallCamel'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void SmallCamelTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'SmallCamel'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'CapitalCamel'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void CapitalCamelTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'CapitalCamel'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'SmallSnake'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void SmallSnakeTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'SmallSnake'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'CapitalSnake'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void CapitalSnakeTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'CapitalSnake'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'SCAETHFlowPoints'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void SCAETHFlowPointsTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'SCAETHFlowPoints'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'ATT_NAME'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void ATT_NAMETest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'ATT_NAME'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,80 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing Cat
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class CatTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for Cat
|
||||||
|
//private Cat instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of Cat
|
||||||
|
//instance = new Cat();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of Cat
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void CatInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" Cat
|
||||||
|
//Assert.IsInstanceOfType<Cat> (instance, "variable 'instance' is a Cat");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Declawed'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void DeclawedTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Declawed'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,88 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing Category
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class CategoryTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for Category
|
||||||
|
//private Category instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of Category
|
||||||
|
//instance = new Category();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of Category
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void CategoryInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" Category
|
||||||
|
//Assert.IsInstanceOfType<Category> (instance, "variable 'instance' is a Category");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Id'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void IdTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Id'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Name'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void NameTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Name'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,80 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing ClassModel
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class ClassModelTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for ClassModel
|
||||||
|
//private ClassModel instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of ClassModel
|
||||||
|
//instance = new ClassModel();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of ClassModel
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void ClassModelInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" ClassModel
|
||||||
|
//Assert.IsInstanceOfType<ClassModel> (instance, "variable 'instance' is a ClassModel");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property '_Class'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void _ClassTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property '_Class'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,80 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing Dog
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class DogTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for Dog
|
||||||
|
//private Dog instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of Dog
|
||||||
|
//instance = new Dog();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of Dog
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void DogInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" Dog
|
||||||
|
//Assert.IsInstanceOfType<Dog> (instance, "variable 'instance' is a Dog");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Breed'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void BreedTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Breed'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,88 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing EnumArrays
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class EnumArraysTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for EnumArrays
|
||||||
|
//private EnumArrays instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of EnumArrays
|
||||||
|
//instance = new EnumArrays();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of EnumArrays
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void EnumArraysInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" EnumArrays
|
||||||
|
//Assert.IsInstanceOfType<EnumArrays> (instance, "variable 'instance' is a EnumArrays");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'JustSymbol'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void JustSymbolTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'JustSymbol'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'ArrayEnum'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void ArrayEnumTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'ArrayEnum'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing EnumClass
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class EnumClassTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for EnumClass
|
||||||
|
//private EnumClass instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of EnumClass
|
||||||
|
//instance = new EnumClass();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of EnumClass
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void EnumClassInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" EnumClass
|
||||||
|
//Assert.IsInstanceOfType<EnumClass> (instance, "variable 'instance' is a EnumClass");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,104 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing EnumTest
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class EnumTestTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for EnumTest
|
||||||
|
//private EnumTest instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of EnumTest
|
||||||
|
//instance = new EnumTest();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of EnumTest
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void EnumTestInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" EnumTest
|
||||||
|
//Assert.IsInstanceOfType<EnumTest> (instance, "variable 'instance' is a EnumTest");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'EnumString'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void EnumStringTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'EnumString'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'EnumInteger'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void EnumIntegerTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'EnumInteger'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'EnumNumber'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void EnumNumberTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'EnumNumber'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'OuterEnum'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void OuterEnumTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'OuterEnum'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,176 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing FormatTest
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class FormatTestTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for FormatTest
|
||||||
|
//private FormatTest instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of FormatTest
|
||||||
|
//instance = new FormatTest();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of FormatTest
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void FormatTestInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" FormatTest
|
||||||
|
//Assert.IsInstanceOfType<FormatTest> (instance, "variable 'instance' is a FormatTest");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Integer'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void IntegerTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Integer'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Int32'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void Int32Test()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Int32'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Int64'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void Int64Test()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Int64'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Number'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void NumberTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Number'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property '_Float'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void _FloatTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property '_Float'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property '_Double'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void _DoubleTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property '_Double'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property '_String'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void _StringTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property '_String'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property '_Byte'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void _ByteTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property '_Byte'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Binary'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void BinaryTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Binary'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Date'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void DateTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Date'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'DateTime'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void DateTimeTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'DateTime'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Uuid'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void UuidTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Uuid'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Password'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void PasswordTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Password'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,88 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing HasOnlyReadOnly
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class HasOnlyReadOnlyTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for HasOnlyReadOnly
|
||||||
|
//private HasOnlyReadOnly instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of HasOnlyReadOnly
|
||||||
|
//instance = new HasOnlyReadOnly();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of HasOnlyReadOnly
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void HasOnlyReadOnlyInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" HasOnlyReadOnly
|
||||||
|
//Assert.IsInstanceOfType<HasOnlyReadOnly> (instance, "variable 'instance' is a HasOnlyReadOnly");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Bar'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void BarTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Bar'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Foo'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void FooTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Foo'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,80 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing List
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class ListTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for List
|
||||||
|
//private List instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of List
|
||||||
|
//instance = new List();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of List
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void ListInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" List
|
||||||
|
//Assert.IsInstanceOfType<List> (instance, "variable 'instance' is a List");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property '_123List'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void _123ListTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property '_123List'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,88 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing MapTest
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class MapTestTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for MapTest
|
||||||
|
//private MapTest instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of MapTest
|
||||||
|
//instance = new MapTest();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of MapTest
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void MapTestInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" MapTest
|
||||||
|
//Assert.IsInstanceOfType<MapTest> (instance, "variable 'instance' is a MapTest");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'MapMapOfString'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void MapMapOfStringTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'MapMapOfString'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'MapOfEnumString'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void MapOfEnumStringTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'MapOfEnumString'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,96 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing MixedPropertiesAndAdditionalPropertiesClass
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class MixedPropertiesAndAdditionalPropertiesClassTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for MixedPropertiesAndAdditionalPropertiesClass
|
||||||
|
//private MixedPropertiesAndAdditionalPropertiesClass instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of MixedPropertiesAndAdditionalPropertiesClass
|
||||||
|
//instance = new MixedPropertiesAndAdditionalPropertiesClass();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of MixedPropertiesAndAdditionalPropertiesClass
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void MixedPropertiesAndAdditionalPropertiesClassInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" MixedPropertiesAndAdditionalPropertiesClass
|
||||||
|
//Assert.IsInstanceOfType<MixedPropertiesAndAdditionalPropertiesClass> (instance, "variable 'instance' is a MixedPropertiesAndAdditionalPropertiesClass");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Uuid'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void UuidTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Uuid'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'DateTime'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void DateTimeTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'DateTime'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Map'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void MapTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Map'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,88 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing Model200Response
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class Model200ResponseTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for Model200Response
|
||||||
|
//private Model200Response instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of Model200Response
|
||||||
|
//instance = new Model200Response();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of Model200Response
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void Model200ResponseInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" Model200Response
|
||||||
|
//Assert.IsInstanceOfType<Model200Response> (instance, "variable 'instance' is a Model200Response");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Name'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void NameTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Name'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property '_Class'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void _ClassTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property '_Class'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,80 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing ModelClient
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class ModelClientTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for ModelClient
|
||||||
|
//private ModelClient instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of ModelClient
|
||||||
|
//instance = new ModelClient();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of ModelClient
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void ModelClientInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" ModelClient
|
||||||
|
//Assert.IsInstanceOfType<ModelClient> (instance, "variable 'instance' is a ModelClient");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property '_Client'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void _ClientTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property '_Client'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,80 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing ModelReturn
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class ModelReturnTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for ModelReturn
|
||||||
|
//private ModelReturn instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of ModelReturn
|
||||||
|
//instance = new ModelReturn();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of ModelReturn
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void ModelReturnInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" ModelReturn
|
||||||
|
//Assert.IsInstanceOfType<ModelReturn> (instance, "variable 'instance' is a ModelReturn");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property '_Return'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void _ReturnTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property '_Return'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,104 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing Name
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class NameTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for Name
|
||||||
|
//private Name instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of Name
|
||||||
|
//instance = new Name();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of Name
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void NameInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" Name
|
||||||
|
//Assert.IsInstanceOfType<Name> (instance, "variable 'instance' is a Name");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property '_Name'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void _NameTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property '_Name'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'SnakeCase'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void SnakeCaseTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'SnakeCase'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Property'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void PropertyTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Property'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property '_123Number'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void _123NumberTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property '_123Number'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,80 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing NumberOnly
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class NumberOnlyTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for NumberOnly
|
||||||
|
//private NumberOnly instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of NumberOnly
|
||||||
|
//instance = new NumberOnly();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of NumberOnly
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void NumberOnlyInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" NumberOnly
|
||||||
|
//Assert.IsInstanceOfType<NumberOnly> (instance, "variable 'instance' is a NumberOnly");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'JustNumber'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void JustNumberTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'JustNumber'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,120 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing Order
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class OrderTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for Order
|
||||||
|
//private Order instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of Order
|
||||||
|
//instance = new Order();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of Order
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void OrderInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" Order
|
||||||
|
//Assert.IsInstanceOfType<Order> (instance, "variable 'instance' is a Order");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Id'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void IdTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Id'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'PetId'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void PetIdTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'PetId'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Quantity'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void QuantityTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Quantity'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'ShipDate'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void ShipDateTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'ShipDate'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Status'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void StatusTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Status'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'Complete'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void CompleteTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'Complete'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing OuterBoolean
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class OuterBooleanTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for OuterBoolean
|
||||||
|
//private OuterBoolean instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of OuterBoolean
|
||||||
|
//instance = new OuterBoolean();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of OuterBoolean
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void OuterBooleanInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" OuterBoolean
|
||||||
|
//Assert.IsInstanceOfType<OuterBoolean> (instance, "variable 'instance' is a OuterBoolean");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,96 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing OuterComposite
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class OuterCompositeTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for OuterComposite
|
||||||
|
//private OuterComposite instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of OuterComposite
|
||||||
|
//instance = new OuterComposite();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of OuterComposite
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void OuterCompositeInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" OuterComposite
|
||||||
|
//Assert.IsInstanceOfType<OuterComposite> (instance, "variable 'instance' is a OuterComposite");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'MyNumber'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void MyNumberTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'MyNumber'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'MyString'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void MyStringTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'MyString'
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Test the property 'MyBoolean'
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void MyBooleanTest()
|
||||||
|
{
|
||||||
|
// TODO unit test for the property 'MyBoolean'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing OuterEnum
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class OuterEnumTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for OuterEnum
|
||||||
|
//private OuterEnum instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of OuterEnum
|
||||||
|
//instance = new OuterEnum();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of OuterEnum
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void OuterEnumInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" OuterEnum
|
||||||
|
//Assert.IsInstanceOfType<OuterEnum> (instance, "variable 'instance' is a OuterEnum");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing OuterNumber
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class OuterNumberTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for OuterNumber
|
||||||
|
//private OuterNumber instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of OuterNumber
|
||||||
|
//instance = new OuterNumber();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of OuterNumber
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void OuterNumberInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" OuterNumber
|
||||||
|
//Assert.IsInstanceOfType<OuterNumber> (instance, "variable 'instance' is a OuterNumber");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
*
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using System.IO;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using IO.Swagger.Api;
|
||||||
|
using IO.Swagger.Model;
|
||||||
|
using IO.Swagger.Client;
|
||||||
|
using System.Reflection;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
namespace IO.Swagger.Test
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Class for testing OuterString
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// This file is automatically generated by Swagger Codegen.
|
||||||
|
/// Please update the test case below to test the model.
|
||||||
|
/// </remarks>
|
||||||
|
[TestFixture]
|
||||||
|
public class OuterStringTests
|
||||||
|
{
|
||||||
|
// TODO uncomment below to declare an instance variable for OuterString
|
||||||
|
//private OuterString instance;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Setup before each test
|
||||||
|
/// </summary>
|
||||||
|
[SetUp]
|
||||||
|
public void Init()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to create an instance of OuterString
|
||||||
|
//instance = new OuterString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up after each test
|
||||||
|
/// </summary>
|
||||||
|
[TearDown]
|
||||||
|
public void Cleanup()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Test an instance of OuterString
|
||||||
|
/// </summary>
|
||||||
|
[Test]
|
||||||
|
public void OuterStringInstanceTest()
|
||||||
|
{
|
||||||
|
// TODO uncomment below to test "IsInstanceOfType" OuterString
|
||||||
|
//Assert.IsInstanceOfType<OuterString> (instance, "variable 'instance' is a OuterString");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user