forked from loafle/openapi-generator-original
remove old petstore powershell sample
This commit is contained in:
@@ -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 -t modules/swagger-codegen/src/main/resources/powershell -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l powershell -o samples/client/petstore/powershell_test --additional-properties packageGuid=a27b908d-2a20-467f-bc32-af6f3a654ac5,csharpClientPath=\$ScriptDir\..\..\petstore\csharp\SwaggerClient $@"
|
ags="generate -t modules/swagger-codegen/src/main/resources/powershell -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l powershell -o samples/client/petstore/powershell --additional-properties packageGuid=a27b908d-2a20-467f-bc32-af6f3a654ac5,csharpClientPath=\$ScriptDir\..\..\petstore\csharp\SwaggerClient $@"
|
||||||
|
|
||||||
java ${JAVA_OPTS} -jar ${executable} ${ags}
|
java ${JAVA_OPTS} -jar ${executable} ${ags}
|
||||||
|
|||||||
@@ -1,185 +0,0 @@
|
|||||||
# 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
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
$ScriptDir = Split-Path $script:MyInvocation.MyCommand.Path
|
|
||||||
$ClientPath = "$ScriptDir\..\..\csharp\SwaggerClient"
|
|
||||||
$PublicPath = "$ScriptDir\src\IO.Swagger\Public"
|
|
||||||
$BinPath = "$ScriptDir\src\IO.Swagger\Bin"
|
|
||||||
|
|
||||||
Start-Process -FilePath "$ClientPath\build.bat" -WorkingDirectory $ClientPath -Wait -NoNewWindow
|
|
||||||
|
|
||||||
if (!(Test-Path "$ScriptDir\src\IO.Swagger\Bin" -PathType Container)) {
|
|
||||||
New-Item "$ScriptDir\src\IO.Swagger\Bin" -ItemType Directory > $null
|
|
||||||
}
|
|
||||||
|
|
||||||
Copy-Item "$ClientPath\bin\*.dll" $BinPath
|
|
||||||
|
|
||||||
$Manifest = @{
|
|
||||||
Path = "$ScriptDir\src\IO.Swagger\IO.Swagger.psd1"
|
|
||||||
|
|
||||||
Author = 'apiteam@swagger.io'
|
|
||||||
CompanyName = 'swagger.io'
|
|
||||||
Description = 'IO.Swagger - the PowerShell module for the Swagger Petstore'
|
|
||||||
|
|
||||||
RootModule = 'IO.Swagger.psm1'
|
|
||||||
Guid = 'a27b908d-2a20-467f-bc32-af6f3a654ac5' # Has to be static, otherwise each new build will be considered different module
|
|
||||||
|
|
||||||
PowerShellVersion = '3.0'
|
|
||||||
|
|
||||||
RequiredAssemblies = Get-ChildItem "$BinPath\*.dll" | ForEach-Object {
|
|
||||||
Join-Path $_.Directory.Name $_.Name
|
|
||||||
}
|
|
||||||
|
|
||||||
FunctionsToExport = Get-ChildItem "$PublicPath\*.ps1" | ForEach-Object {
|
|
||||||
$_.BaseName
|
|
||||||
}
|
|
||||||
|
|
||||||
VariablesToExport = @()
|
|
||||||
AliasesToExport = @()
|
|
||||||
CmdletsToExport = @()
|
|
||||||
|
|
||||||
# Should we use prefix to prevent command name collisions?
|
|
||||||
# https://www.sapien.com/blog/2016/02/15/use-prefixes-to-prevent-command-name-collision/
|
|
||||||
#
|
|
||||||
# Kirk Munro recommends against it:
|
|
||||||
# https://www.sapien.com/blog/2016/02/15/use-prefixes-to-prevent-command-name-collision/#comment-20820
|
|
||||||
#
|
|
||||||
# If not, we'd need to generate functions name with prefix.
|
|
||||||
#
|
|
||||||
# DefaultCommandPrefix = 'PetStore'
|
|
||||||
}
|
|
||||||
|
|
||||||
New-ModuleManifest @Manifest
|
|
||||||
@@ -1,148 +0,0 @@
|
|||||||
# IO.Swagger - the PowerShell module 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 PowerShell module 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
|
|
||||||
- PowerShell 3.0 or later
|
|
||||||
- .NET 4.0 or later
|
|
||||||
|
|
||||||
<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
|
|
||||||
- [Windows] `build.ps1`
|
|
||||||
|
|
||||||
Then import module from the `.\src\IO.Swagger` folder:
|
|
||||||
```posh
|
|
||||||
Import-Module -Name '.\src\IO.Swagger'
|
|
||||||
```
|
|
||||||
<a name="getting-started"></a>
|
|
||||||
## Getting Started
|
|
||||||
|
|
||||||
```posh
|
|
||||||
Set-ApiCredential -AccessToken 'YOUR_ACCESS_TOKEN'
|
|
||||||
|
|
||||||
New-Pet -Id 1 -Name 'foo' -Category (
|
|
||||||
New-Category -Id 2 -Name 'bar'
|
|
||||||
) -PhotoUrls @(
|
|
||||||
'http://example.com/foo',
|
|
||||||
'http://example.com/bar'
|
|
||||||
) -Tags (
|
|
||||||
New-Tag -Id 3 -Name 'baz'
|
|
||||||
) -Status Available | Update-Pet
|
|
||||||
|
|
||||||
Get-PetById -Id 1
|
|
||||||
```
|
|
||||||
|
|
||||||
<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
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
*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
|
|
||||||
*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.Cat](docs/Cat.md)
|
|
||||||
- [Model.Category](docs/Category.md)
|
|
||||||
- [Model.ClassModel](docs/ClassModel.md)
|
|
||||||
- [Model.Dog](docs/Dog.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.OuterEnum](docs/OuterEnum.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)
|
|
||||||
|
|
||||||
|
|
||||||
<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="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
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
# Ignore module manifests
|
|
||||||
*.psd1
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
#region Import functions
|
|
||||||
|
|
||||||
$FunctionsToExport = @()
|
|
||||||
$Folders = 'Public', 'Private'
|
|
||||||
|
|
||||||
foreach ($Scope in $Folders) {
|
|
||||||
Get-ChildItem -LiteralPath (
|
|
||||||
Join-Path -Path $PSScriptRoot -ChildPath $Scope
|
|
||||||
) -File -Filter '*.ps1' | ForEach-Object {
|
|
||||||
$File = $_
|
|
||||||
try {
|
|
||||||
Write-Verbose "Dotsourcing file: $File"
|
|
||||||
. $File.FullName
|
|
||||||
|
|
||||||
switch ($Scope) {
|
|
||||||
'Public' {
|
|
||||||
$FunctionsToExport += $File.BaseName
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch {
|
|
||||||
throw "Can't import functions from file: $File"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Export-ModuleMember -Function $FunctionsToExport
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
#region Initialize APIs
|
|
||||||
|
|
||||||
'Creating object: IO.Swagger.Api.PetApi' | Write-Verbose
|
|
||||||
$Script:PetApi = New-Object -TypeName IO.Swagger.Api.PetApi -ArgumentList @($null)
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
<#
|
|
||||||
.Synopsis
|
|
||||||
Helper function to get common parameters (Verbose, Debug, etc.)
|
|
||||||
|
|
||||||
.Example
|
|
||||||
Get-CommonParameters
|
|
||||||
#>
|
|
||||||
function Get-CommonParameters {
|
|
||||||
function tmp {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param ()
|
|
||||||
}
|
|
||||||
|
|
||||||
(Get-Command -Name tmp -CommandType Function).Parameters.Keys
|
|
||||||
}
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
<#
|
|
||||||
.Synopsis
|
|
||||||
Helper function to format debug parameter output.
|
|
||||||
|
|
||||||
.Example
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
#>
|
|
||||||
function Out-DebugParameter {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(ValueFromPipeline = $true, Mandatory = $true)]
|
|
||||||
[AllowEmptyCollection()]
|
|
||||||
$InputObject
|
|
||||||
)
|
|
||||||
|
|
||||||
Begin {
|
|
||||||
$CommonParameters = Get-CommonParameters
|
|
||||||
}
|
|
||||||
|
|
||||||
Process {
|
|
||||||
$InputObject.GetEnumerator() | Where-Object {
|
|
||||||
$CommonParameters -notcontains $_.Key
|
|
||||||
} | Format-Table -AutoSize -Property (
|
|
||||||
@{
|
|
||||||
Name = 'Parameter'
|
|
||||||
Expression = {$_.Key}
|
|
||||||
},
|
|
||||||
@{
|
|
||||||
Name = 'Value'
|
|
||||||
Expression = {$_.Value}
|
|
||||||
}
|
|
||||||
) | Out-String -Stream | ForEach-Object {
|
|
||||||
if ($_.Trim()) {
|
|
||||||
$_
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
<#
|
|
||||||
.Synopsis
|
|
||||||
Find pet by ID.
|
|
||||||
|
|
||||||
.Description
|
|
||||||
Find pet by ID. Returns a single pet.
|
|
||||||
|
|
||||||
.Parameter Id
|
|
||||||
ID of pet to return.
|
|
||||||
|
|
||||||
.Example
|
|
||||||
Get-PetById -Id 1
|
|
||||||
|
|
||||||
.Example
|
|
||||||
1 | Get-PetById
|
|
||||||
|
|
||||||
.Inputs
|
|
||||||
long
|
|
||||||
|
|
||||||
.Outputs
|
|
||||||
IO.Swagger.Model.Pet
|
|
||||||
|
|
||||||
.Notes
|
|
||||||
This function is automatically generated by the Swagger Codegen.
|
|
||||||
|
|
||||||
.Link
|
|
||||||
https://github.com/swagger-api/swagger-codegen
|
|
||||||
#>
|
|
||||||
function Get-PetById {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[long]
|
|
||||||
${Id}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Calling method: GetPetById' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:PetApi.GetPetById(
|
|
||||||
${Id}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
<#
|
|
||||||
.Synopsis
|
|
||||||
Creates new IO.Swagger.Model.Category object.
|
|
||||||
|
|
||||||
.Description
|
|
||||||
Creates new IO.Swagger.Model.Category object.
|
|
||||||
|
|
||||||
.Parameter Id
|
|
||||||
ID.
|
|
||||||
|
|
||||||
.Parameter Name
|
|
||||||
Name
|
|
||||||
|
|
||||||
.Example
|
|
||||||
New-Category -Id 1 -Name 'foo'
|
|
||||||
|
|
||||||
.Inputs
|
|
||||||
System.Nullable[long]
|
|
||||||
|
|
||||||
System.String
|
|
||||||
|
|
||||||
.Outputs
|
|
||||||
IO.Swagger.Model.Category
|
|
||||||
|
|
||||||
.Notes
|
|
||||||
This function is automatically generated by the Swagger Codegen.
|
|
||||||
|
|
||||||
.Link
|
|
||||||
https://github.com/swagger-api/swagger-codegen
|
|
||||||
#>
|
|
||||||
function New-Category {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[System.Nullable[long]]
|
|
||||||
${Id},
|
|
||||||
|
|
||||||
[Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[string]
|
|
||||||
${Name}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Creating object: IO.Swagger.Model.Category' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
New-Object -TypeName IO.Swagger.Model.Category -ArgumentList @(
|
|
||||||
${Id},
|
|
||||||
${Name}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,98 +0,0 @@
|
|||||||
<#
|
|
||||||
.Synopsis
|
|
||||||
Creates new IO.Swagger.Model.Pet object.
|
|
||||||
|
|
||||||
.Description
|
|
||||||
Creates new IO.Swagger.Model.Pet object.
|
|
||||||
|
|
||||||
.Parameter Id
|
|
||||||
ID of pet.
|
|
||||||
|
|
||||||
.Parameter Category
|
|
||||||
Category of pet.
|
|
||||||
|
|
||||||
.Parameter Name
|
|
||||||
Name of pet.
|
|
||||||
|
|
||||||
.Parameter PhotoUrls
|
|
||||||
PhotoUrls.
|
|
||||||
|
|
||||||
.Parameter Tags
|
|
||||||
Tags
|
|
||||||
|
|
||||||
.Parameter Status
|
|
||||||
Status.
|
|
||||||
|
|
||||||
.Example
|
|
||||||
New-Pet -Id 1 -Name 'foo' -Category (
|
|
||||||
New-Category -Id 2 -Name 'bar'
|
|
||||||
) -PhotoUrls @(
|
|
||||||
'http://example.com/foo',
|
|
||||||
'http://example.com/bar'
|
|
||||||
) -Tags (
|
|
||||||
New-Tag -Id 3 -Name 'baz'
|
|
||||||
) -Status 'Available'
|
|
||||||
|
|
||||||
.Inputs
|
|
||||||
System.Nullable[long]
|
|
||||||
|
|
||||||
IO.Swagger.Model.Category
|
|
||||||
|
|
||||||
System.String
|
|
||||||
|
|
||||||
System.Collections.Generic.List[string]
|
|
||||||
|
|
||||||
System.Collections.Generic.List[IO.Swagger.Model.Tag]
|
|
||||||
|
|
||||||
System.Nullable[IO.Swagger.Model.Pet+StatusEnum]
|
|
||||||
|
|
||||||
.Outputs
|
|
||||||
|
|
||||||
.Notes
|
|
||||||
This function is automatically generated by the Swagger Codegen.
|
|
||||||
|
|
||||||
.Link
|
|
||||||
https://github.com/swagger-api/swagger-codegen
|
|
||||||
#>
|
|
||||||
function New-Pet {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[System.Nullable[long]]
|
|
||||||
${Id},
|
|
||||||
|
|
||||||
[Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[IO.Swagger.Model.Category]
|
|
||||||
${Category},
|
|
||||||
|
|
||||||
[Parameter(Position = 2, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[string]
|
|
||||||
${Name},
|
|
||||||
|
|
||||||
[Parameter(Position = 3, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[System.Collections.Generic.List[string]]
|
|
||||||
${PhotoUrls},
|
|
||||||
|
|
||||||
[Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[System.Collections.Generic.List[IO.Swagger.Model.Tag]]
|
|
||||||
${Tags},
|
|
||||||
|
|
||||||
[Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[System.Nullable[IO.Swagger.Model.Pet+StatusEnum]]
|
|
||||||
${Status}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Creating object: IO.Swagger.Model.Pet' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
New-Object -TypeName IO.Swagger.Model.Pet -ArgumentList @(
|
|
||||||
${Id},
|
|
||||||
${Category},
|
|
||||||
${Name},
|
|
||||||
${PhotoUrls},
|
|
||||||
${Tags},
|
|
||||||
${Status}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
<#
|
|
||||||
.Synopsis
|
|
||||||
Creates new IO.Swagger.Model.Tag object.
|
|
||||||
|
|
||||||
.Description
|
|
||||||
Creates new IO.Swagger.Model.Tag object.
|
|
||||||
|
|
||||||
.Parameter Id
|
|
||||||
ID.
|
|
||||||
|
|
||||||
.Parameter Name
|
|
||||||
Name
|
|
||||||
|
|
||||||
.Example
|
|
||||||
New-Tag -Id 1 -Name 'foo'
|
|
||||||
|
|
||||||
.Inputs
|
|
||||||
System.Nullable[long]
|
|
||||||
|
|
||||||
System.String
|
|
||||||
|
|
||||||
.Outputs
|
|
||||||
IO.Swagger.Model.Tag
|
|
||||||
|
|
||||||
.Notes
|
|
||||||
This function is automatically generated by the Swagger Codegen.
|
|
||||||
|
|
||||||
.Link
|
|
||||||
https://github.com/swagger-api/swagger-codegen
|
|
||||||
#>
|
|
||||||
function New-Tag {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[System.Nullable[long]]
|
|
||||||
${Id},
|
|
||||||
|
|
||||||
[Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[string]
|
|
||||||
${Name}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Creating object: IO.Swagger.Model.Tag' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
New-Object -TypeName IO.Swagger.Model.Tag -ArgumentList @(
|
|
||||||
${Id},
|
|
||||||
${Name}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
<#
|
|
||||||
.Synopsis
|
|
||||||
Set PetStore Authorization data.
|
|
||||||
|
|
||||||
.Description
|
|
||||||
Set PetStore Authorization data.
|
|
||||||
|
|
||||||
.Parameter ApiKey
|
|
||||||
API key.
|
|
||||||
|
|
||||||
.Parameter ApiKeyPrefix
|
|
||||||
API Key prefix.
|
|
||||||
|
|
||||||
.Parameter AccessToken
|
|
||||||
Access Token.
|
|
||||||
|
|
||||||
.Example
|
|
||||||
Set-ApiCredential -ApiKey 'foo'
|
|
||||||
|
|
||||||
.Example
|
|
||||||
Set-ApiCredential -ApiKey 'foo' -ApiPrefix 'Bearer'
|
|
||||||
|
|
||||||
.Example
|
|
||||||
Set-ApiCredential -ApiKey 'foo' -ApiPrefix 'Bearer'
|
|
||||||
|
|
||||||
.Example
|
|
||||||
Set-ApiCredential -AccessToken 'YOUR_ACCESS_TOKEN'
|
|
||||||
#>
|
|
||||||
function Set-ApiCredential {
|
|
||||||
[CmdletBinding(DefaultParameterSetName = 'ApiKey')]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ParameterSetName = 'ApiKey')]
|
|
||||||
[string]
|
|
||||||
${ApiKey},
|
|
||||||
|
|
||||||
[Parameter(Position = 1, ParameterSetName = 'ApiKey')]
|
|
||||||
[string]
|
|
||||||
${ApiKeyPrefix},
|
|
||||||
|
|
||||||
[Parameter(Position = 2, ParameterSetName = 'AccessToken')]
|
|
||||||
[string]
|
|
||||||
${AccessToken}
|
|
||||||
)
|
|
||||||
|
|
||||||
End {
|
|
||||||
if (${ApiKey}) {
|
|
||||||
([IO.Swagger.Client.Configuration]::Default).ApiKey.Add(
|
|
||||||
'api_key',
|
|
||||||
${ApiKey}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($ApiKeyPrefix) {
|
|
||||||
([IO.Swagger.Client.Configuration]::Default).ApiKeyPrefix.Add(
|
|
||||||
'api_key',
|
|
||||||
${ApiKeyPrefix}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (${AccessToken}) {
|
|
||||||
([IO.Swagger.Client.Configuration]::Default).AccessToken = ${AccessToken}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
<#
|
|
||||||
.Synopsis
|
|
||||||
Updates a pet in the store.
|
|
||||||
|
|
||||||
.Description
|
|
||||||
Updates a pet in the store.
|
|
||||||
|
|
||||||
.Parameter Pet
|
|
||||||
Pet.
|
|
||||||
|
|
||||||
.Example
|
|
||||||
Update-Pet -Pet $Pet
|
|
||||||
|
|
||||||
.Example
|
|
||||||
$Pet | Update-Pet
|
|
||||||
|
|
||||||
.Inputs
|
|
||||||
IO.Swagger.Model.Pet
|
|
||||||
|
|
||||||
.Outputs
|
|
||||||
|
|
||||||
.Notes
|
|
||||||
This function is automatically generated by the Swagger Codegen.
|
|
||||||
|
|
||||||
.Link
|
|
||||||
https://github.com/swagger-api/swagger-codegen
|
|
||||||
#>
|
|
||||||
function Update-Pet {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[IO.Swagger.Model.Pet]
|
|
||||||
${Pet}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Calling method: UpdatePet' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:PetApi.UpdatePet(
|
|
||||||
${Pet}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,90 +0,0 @@
|
|||||||
<#
|
|
||||||
.Synopsis
|
|
||||||
Updates a pet in the store.
|
|
||||||
|
|
||||||
.Description
|
|
||||||
Updates a pet in the store.
|
|
||||||
|
|
||||||
.Parameter Id
|
|
||||||
ID of pet to return.
|
|
||||||
|
|
||||||
.Example
|
|
||||||
Update-PetUsingParameterSet -Id 1 -Name 'foo' -Status 'Available'
|
|
||||||
|
|
||||||
.Example
|
|
||||||
Update-PetUsingParameterSet -Id 1 -Name 'foo' -Status 'Available'
|
|
||||||
|
|
||||||
.Example
|
|
||||||
Update-PetUsingParameterSet -Pet $Pet
|
|
||||||
|
|
||||||
.Example
|
|
||||||
$Pet | Update-PetUsingParameterSet
|
|
||||||
|
|
||||||
.Inputs
|
|
||||||
System.Nullable[long]
|
|
||||||
|
|
||||||
System.String
|
|
||||||
|
|
||||||
System.String
|
|
||||||
|
|
||||||
IO.Swagger.Model.Pet
|
|
||||||
|
|
||||||
.Outputs
|
|
||||||
|
|
||||||
.Notes
|
|
||||||
This function is automatically generated by the Swagger Codegen.
|
|
||||||
|
|
||||||
.Link
|
|
||||||
https://github.com/swagger-api/swagger-codegen
|
|
||||||
#>
|
|
||||||
|
|
||||||
function Update-PetUsingParameterSet {
|
|
||||||
[CmdletBinding(DefaultParameterSetName = 'UpdatePetWithForm')]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true, Mandatory = $true, ParameterSetName = 'UpdatePetWithForm')]
|
|
||||||
[System.Nullable[long]]
|
|
||||||
${Id},
|
|
||||||
|
|
||||||
[Parameter(Position = 1, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'UpdatePetWithForm')]
|
|
||||||
[string]
|
|
||||||
${Name},
|
|
||||||
|
|
||||||
[Parameter(Position = 2, ValueFromPipelineByPropertyName = $true, ParameterSetName = 'UpdatePetWithForm')]
|
|
||||||
[string]
|
|
||||||
${Status},
|
|
||||||
|
|
||||||
[Parameter(Position = 0, ValueFromPipeline = $true, Mandatory = $true, ParameterSetName = 'UpdatePet')]
|
|
||||||
[IO.Swagger.Model.Pet]
|
|
||||||
${Pet}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
switch ($PSCmdlet.ParameterSetName) {
|
|
||||||
'UpdatePetWithForm' {
|
|
||||||
'Calling method: UpdatePetWithForm' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:PetApi.UpdatePetWithForm(
|
|
||||||
${Id},
|
|
||||||
${Name},
|
|
||||||
${Status}
|
|
||||||
)
|
|
||||||
break
|
|
||||||
}
|
|
||||||
|
|
||||||
'UpdatePet' {
|
|
||||||
'Calling method: UpdatePet' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:PetApi.UpdatePet(
|
|
||||||
${Pet}
|
|
||||||
)
|
|
||||||
break
|
|
||||||
}
|
|
||||||
|
|
||||||
default {
|
|
||||||
throw 'Invalid ParameterSet!'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
<#
|
|
||||||
.Synopsis
|
|
||||||
Updates a pet in the store with form data.
|
|
||||||
|
|
||||||
.Description
|
|
||||||
Updates a pet in the store with form data.
|
|
||||||
|
|
||||||
.Parameter Id
|
|
||||||
ID of pet to return.
|
|
||||||
|
|
||||||
.Example
|
|
||||||
Update-PetWithForm -Id 1 -Name 'foo' -Status 'Available'
|
|
||||||
|
|
||||||
.Inputs
|
|
||||||
System.Nullable[long]
|
|
||||||
|
|
||||||
System.String
|
|
||||||
|
|
||||||
System.String
|
|
||||||
|
|
||||||
.Outputs
|
|
||||||
|
|
||||||
.Notes
|
|
||||||
This function is automatically generated by the Swagger Codegen.
|
|
||||||
|
|
||||||
.Link
|
|
||||||
https://github.com/swagger-api/swagger-codegen
|
|
||||||
#>
|
|
||||||
function Update-PetWithForm {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[System.Nullable[long]]
|
|
||||||
${Id},
|
|
||||||
|
|
||||||
[Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[string]
|
|
||||||
${Name},
|
|
||||||
|
|
||||||
[Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[string]
|
|
||||||
${Status}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Calling method: UpdatePetWithForm' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:PetApi.UpdatePetWithForm(
|
|
||||||
${Id},
|
|
||||||
${Name},
|
|
||||||
${Status}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
PSTOPIC
|
|
||||||
about_IO.Swagger
|
|
||||||
|
|
||||||
SHORT DESCRIPTION
|
|
||||||
IO.Swagger - the PowerShell module for the Swagger Petstore
|
|
||||||
|
|
||||||
LONG DESCRIPTION
|
|
||||||
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 PowerShell module is automatically generated by the Swagger Codegen project.
|
|
||||||
|
|
||||||
* API version: 1.0.0
|
|
||||||
* SDK version: 1.0.0
|
|
||||||
* Build package: io.swagger.codegen.languages.CSharpClientCodegen
|
|
||||||
|
|
||||||
Frameworks supported:
|
|
||||||
|
|
||||||
* PowerShell 3.0+
|
|
||||||
* .NET 4.0 or later
|
|
||||||
@@ -6,26 +6,16 @@ This PowerShell module is automatically generated by the [Swagger Codegen](https
|
|||||||
|
|
||||||
- API version: 1.0.0
|
- API version: 1.0.0
|
||||||
- SDK version:
|
- SDK version:
|
||||||
- Build date: 2017-06-09T17:28:25.415+04:00
|
- Build date: 2017-06-20T22:49:00.415+08:00
|
||||||
- Build package: io.swagger.codegen.languages.PowerShellClientCodegen
|
- Build package: io.swagger.codegen.languages.PowerShellClientCodegen
|
||||||
|
|
||||||
<a name="frameworks-supported"></a>
|
<a name="frameworks-supported"></a>
|
||||||
## Frameworks supported
|
## Frameworks supported
|
||||||
- .NET 4.0 or later
|
|
||||||
- PowerShell 3.0 or later
|
- PowerShell 3.0 or later
|
||||||
|
|
||||||
<a name="dependencies"></a>
|
<a name="dependencies"></a>
|
||||||
## Dependencies
|
## Dependencies
|
||||||
- [RestSharp](https://www.nuget.org/packages/RestSharp) - 105.1.0 or later
|
- C# API client generated by Swagger Codegen AND should be located in $ScriptDir\..\..\petstore\csharp\SwaggerClient as stated in Build.ps1
|
||||||
- [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>
|
<a name="installation"></a>
|
||||||
## Installation
|
## Installation
|
||||||
@@ -34,68 +24,8 @@ Run the following command to generate the DLL
|
|||||||
|
|
||||||
Then import module from the .\src\IO.Swagger folder:
|
Then import module from the .\src\IO.Swagger folder:
|
||||||
```powershell
|
```powershell
|
||||||
using IO.Swagger.IO.Swagger\API;
|
using IO.Swagger.IO.Swagger/API;
|
||||||
using IO.Swagger.Client;
|
using IO.Swagger.Client;
|
||||||
using IO.Swagger.IO.Swagger\Model;
|
using IO.Swagger.IO.Swagger/Model;
|
||||||
```
|
```
|
||||||
|
|
||||||
<a name="documentation-for-api-endpoints"></a>
|
|
||||||
## Documentation for API Endpoints
|
|
||||||
|
|
||||||
All URIs are relative to *http://petstore.swagger.io/v2*
|
|
||||||
|
|
||||||
Class | Method | HTTP request | Description
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
*PetApi* | [**AddPet**](docs/PetApi.md#addpet) | **POST** /pet | Add a new pet to the store
|
|
||||||
*PetApi* | [**DeletePet**](docs/PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
|
|
||||||
*PetApi* | [**FindPetsByStatus**](docs/PetApi.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status
|
|
||||||
*PetApi* | [**FindPetsByTags**](docs/PetApi.md#findpetsbytags) | **GET** /pet/findByTags | Finds Pets by tags
|
|
||||||
*PetApi* | [**GetPetById**](docs/PetApi.md#getpetbyid) | **GET** /pet/{petId} | Find pet by ID
|
|
||||||
*PetApi* | [**UpdatePet**](docs/PetApi.md#updatepet) | **PUT** /pet | Update an existing pet
|
|
||||||
*PetApi* | [**UpdatePetWithForm**](docs/PetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
|
|
||||||
*PetApi* | [**UploadFile**](docs/PetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
|
|
||||||
*StoreApi* | [**DeleteOrder**](docs/StoreApi.md#deleteorder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID
|
|
||||||
*StoreApi* | [**GetInventory**](docs/StoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
|
|
||||||
*StoreApi* | [**GetOrderById**](docs/StoreApi.md#getorderbyid) | **GET** /store/order/{orderId} | Find purchase order by ID
|
|
||||||
*StoreApi* | [**PlaceOrder**](docs/StoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet
|
|
||||||
*UserApi* | [**CreateUser**](docs/UserApi.md#createuser) | **POST** /user | Create user
|
|
||||||
*UserApi* | [**CreateUsersWithArrayInput**](docs/UserApi.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array
|
|
||||||
*UserApi* | [**CreateUsersWithListInput**](docs/UserApi.md#createuserswithlistinput) | **POST** /user/createWithList | Creates list of users with given input array
|
|
||||||
*UserApi* | [**DeleteUser**](docs/UserApi.md#deleteuser) | **DELETE** /user/{username} | Delete user
|
|
||||||
*UserApi* | [**GetUserByName**](docs/UserApi.md#getuserbyname) | **GET** /user/{username} | Get user by user name
|
|
||||||
*UserApi* | [**LoginUser**](docs/UserApi.md#loginuser) | **GET** /user/login | Logs user into the system
|
|
||||||
*UserApi* | [**LogoutUser**](docs/UserApi.md#logoutuser) | **GET** /user/logout | Logs out current logged in user session
|
|
||||||
*UserApi* | [**UpdateUser**](docs/UserApi.md#updateuser) | **PUT** /user/{username} | Updated user
|
|
||||||
|
|
||||||
|
|
||||||
<a name="documentation-for-models"></a>
|
|
||||||
## Documentation for Models
|
|
||||||
|
|
||||||
- [IO.Swagger\Model.ApiResponse](docs/ApiResponse.md)
|
|
||||||
- [IO.Swagger\Model.Category](docs/Category.md)
|
|
||||||
- [IO.Swagger\Model.Order](docs/Order.md)
|
|
||||||
- [IO.Swagger\Model.Pet](docs/Pet.md)
|
|
||||||
- [IO.Swagger\Model.Tag](docs/Tag.md)
|
|
||||||
- [IO.Swagger\Model.User](docs/User.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="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
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
# IO.Swagger.IO.Swagger\Model.ApiResponse
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**code** | **Int32** | | [optional] [default to null]
|
|
||||||
**type** | **String** | | [optional] [default to null]
|
|
||||||
**message** | **String** | | [optional] [default to null]
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# IO.Swagger.IO.Swagger\Model.Category
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**id** | **Int64** | | [optional] [default to null]
|
|
||||||
**name** | **String** | | [optional] [default to null]
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
# IO.Swagger.IO.Swagger\Model.Order
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**id** | **Int64** | | [optional] [default to null]
|
|
||||||
**petId** | **Int64** | | [optional] [default to null]
|
|
||||||
**quantity** | **Int32** | | [optional] [default to null]
|
|
||||||
**shipDate** | **System.DateTime** | | [optional] [default to null]
|
|
||||||
**status** | **String** | Order Status | [optional] [default to null]
|
|
||||||
**complete** | **Boolean** | | [optional] [default to null]
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
# IO.Swagger.IO.Swagger\Model.Pet
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**id** | **Int64** | | [optional] [default to null]
|
|
||||||
**category** | [**IO.Swagger.Model.Category**](Category.md) | | [optional] [default to null]
|
|
||||||
**name** | **String** | | [default to null]
|
|
||||||
**photoUrls** | **String** | | [default to null]
|
|
||||||
**tags** | [**IO.Swagger.Model.Tag**](Tag.md) | | [optional] [default to null]
|
|
||||||
**status** | **String** | pet status in the store | [optional] [default to null]
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
@@ -1,536 +0,0 @@
|
|||||||
# IO.Swagger.IO.Swagger\API.PetApi
|
|
||||||
|
|
||||||
All URIs are relative to *http://petstore.swagger.io/v2*
|
|
||||||
|
|
||||||
Method | HTTP request | Description
|
|
||||||
------------- | ------------- | -------------
|
|
||||||
[**AddPet**](PetApi.md#addpet) | **POST** /pet | Add a new pet to the store
|
|
||||||
[**DeletePet**](PetApi.md#deletepet) | **DELETE** /pet/{petId} | Deletes a pet
|
|
||||||
[**FindPetsByStatus**](PetApi.md#findpetsbystatus) | **GET** /pet/findByStatus | Finds Pets by status
|
|
||||||
[**FindPetsByTags**](PetApi.md#findpetsbytags) | **GET** /pet/findByTags | Finds Pets by tags
|
|
||||||
[**GetPetById**](PetApi.md#getpetbyid) | **GET** /pet/{petId} | Find pet by ID
|
|
||||||
[**UpdatePet**](PetApi.md#updatepet) | **PUT** /pet | Update an existing pet
|
|
||||||
[**UpdatePetWithForm**](PetApi.md#updatepetwithform) | **POST** /pet/{petId} | Updates a pet in the store with form data
|
|
||||||
[**UploadFile**](PetApi.md#uploadfile) | **POST** /pet/{petId}/uploadImage | uploads an image
|
|
||||||
|
|
||||||
|
|
||||||
<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.IO.Swagger\API;
|
|
||||||
using IO.Swagger.Client;
|
|
||||||
using IO.Swagger.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 (Int64 petId, String apiKey)
|
|
||||||
|
|
||||||
Deletes a pet
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
|
||||||
```csharp
|
|
||||||
using System;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using IO.Swagger.IO.Swagger\API;
|
|
||||||
using IO.Swagger.Client;
|
|
||||||
using IO.Swagger.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; // Int64 | 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** | **Int64**| 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**
|
|
||||||
> IO.Swagger.Model.Pet FindPetsByStatus (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.IO.Swagger\API;
|
|
||||||
using IO.Swagger.Client;
|
|
||||||
using IO.Swagger.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 String(); // String | Status values that need to be considered for filter
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
// Finds Pets by status
|
|
||||||
IO.Swagger.Model.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** | [**String**](String.md)| Status values that need to be considered for filter |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**IO.Swagger.Model.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**
|
|
||||||
> IO.Swagger.Model.Pet FindPetsByTags (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.IO.Swagger\API;
|
|
||||||
using IO.Swagger.Client;
|
|
||||||
using IO.Swagger.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 String(); // String | Tags to filter by
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
// Finds Pets by tags
|
|
||||||
IO.Swagger.Model.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** | [**String**](String.md)| Tags to filter by |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**IO.Swagger.Model.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**
|
|
||||||
> IO.Swagger.Model.Pet GetPetById (Int64 petId)
|
|
||||||
|
|
||||||
Find pet by ID
|
|
||||||
|
|
||||||
Returns a single pet
|
|
||||||
|
|
||||||
### Example
|
|
||||||
```csharp
|
|
||||||
using System;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using IO.Swagger.IO.Swagger\API;
|
|
||||||
using IO.Swagger.Client;
|
|
||||||
using IO.Swagger.IO.Swagger\Model;
|
|
||||||
|
|
||||||
namespace Example
|
|
||||||
{
|
|
||||||
public class GetPetByIdExample
|
|
||||||
{
|
|
||||||
public void main()
|
|
||||||
{
|
|
||||||
// Configure API key authorization: api_key
|
|
||||||
Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
|
|
||||||
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
||||||
// Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");
|
|
||||||
|
|
||||||
var apiInstance = new PetApi();
|
|
||||||
var petId = 789; // Int64 | ID of pet to return
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
// Find pet by ID
|
|
||||||
IO.Swagger.Model.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** | **Int64**| ID of pet to return |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**IO.Swagger.Model.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.IO.Swagger\API;
|
|
||||||
using IO.Swagger.Client;
|
|
||||||
using IO.Swagger.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 (Int64 petId, String name, String status)
|
|
||||||
|
|
||||||
Updates a pet in the store with form data
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
|
||||||
```csharp
|
|
||||||
using System;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using IO.Swagger.IO.Swagger\API;
|
|
||||||
using IO.Swagger.Client;
|
|
||||||
using IO.Swagger.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; // Int64 | 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** | **Int64**| 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**
|
|
||||||
> IO.Swagger.Model.ApiResponse UploadFile (Int64 petId, String additionalMetadata, String file)
|
|
||||||
|
|
||||||
uploads an image
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
|
||||||
```csharp
|
|
||||||
using System;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using IO.Swagger.IO.Swagger\API;
|
|
||||||
using IO.Swagger.Client;
|
|
||||||
using IO.Swagger.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; // Int64 | ID of pet to update
|
|
||||||
var additionalMetadata = additionalMetadata_example; // String | Additional data to pass to server (optional)
|
|
||||||
var file = new String(); // String | file to upload (optional)
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
// uploads an image
|
|
||||||
IO.Swagger.Model.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** | **Int64**| ID of pet to update |
|
|
||||||
**additionalMetadata** | **String**| Additional data to pass to server | [optional]
|
|
||||||
**file** | **String**| file to upload | [optional]
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**IO.Swagger.Model.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)
|
|
||||||
|
|
||||||
@@ -1,256 +0,0 @@
|
|||||||
# IO.Swagger.IO.Swagger\API.StoreApi
|
|
||||||
|
|
||||||
All URIs are relative to *http://petstore.swagger.io/v2*
|
|
||||||
|
|
||||||
Method | HTTP request | Description
|
|
||||||
------------- | ------------- | -------------
|
|
||||||
[**DeleteOrder**](StoreApi.md#deleteorder) | **DELETE** /store/order/{orderId} | Delete purchase order by ID
|
|
||||||
[**GetInventory**](StoreApi.md#getinventory) | **GET** /store/inventory | Returns pet inventories by status
|
|
||||||
[**GetOrderById**](StoreApi.md#getorderbyid) | **GET** /store/order/{orderId} | Find purchase order by ID
|
|
||||||
[**PlaceOrder**](StoreApi.md#placeorder) | **POST** /store/order | Place an order for a pet
|
|
||||||
|
|
||||||
|
|
||||||
<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.IO.Swagger\API;
|
|
||||||
using IO.Swagger.Client;
|
|
||||||
using IO.Swagger.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**
|
|
||||||
> {String, Int32} GetInventory ()
|
|
||||||
|
|
||||||
Returns pet inventories by status
|
|
||||||
|
|
||||||
Returns a map of status codes to quantities
|
|
||||||
|
|
||||||
### Example
|
|
||||||
```csharp
|
|
||||||
using System;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using IO.Swagger.IO.Swagger\API;
|
|
||||||
using IO.Swagger.Client;
|
|
||||||
using IO.Swagger.IO.Swagger\Model;
|
|
||||||
|
|
||||||
namespace Example
|
|
||||||
{
|
|
||||||
public class GetInventoryExample
|
|
||||||
{
|
|
||||||
public void main()
|
|
||||||
{
|
|
||||||
// Configure API key authorization: api_key
|
|
||||||
Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
|
|
||||||
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
|
|
||||||
// Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");
|
|
||||||
|
|
||||||
var apiInstance = new StoreApi();
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
// Returns pet inventories by status
|
|
||||||
{String, Int32} 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
|
|
||||||
|
|
||||||
[**{String, Int32}**](Map.md)
|
|
||||||
|
|
||||||
### 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**
|
|
||||||
> IO.Swagger.Model.Order GetOrderById (Int64 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.IO.Swagger\API;
|
|
||||||
using IO.Swagger.Client;
|
|
||||||
using IO.Swagger.IO.Swagger\Model;
|
|
||||||
|
|
||||||
namespace Example
|
|
||||||
{
|
|
||||||
public class GetOrderByIdExample
|
|
||||||
{
|
|
||||||
public void main()
|
|
||||||
{
|
|
||||||
var apiInstance = new StoreApi();
|
|
||||||
var orderId = 789; // Int64 | ID of pet that needs to be fetched
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
// Find purchase order by ID
|
|
||||||
IO.Swagger.Model.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** | **Int64**| ID of pet that needs to be fetched |
|
|
||||||
|
|
||||||
### Return type
|
|
||||||
|
|
||||||
[**IO.Swagger.Model.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**
|
|
||||||
> IO.Swagger.Model.Order PlaceOrder (Order body)
|
|
||||||
|
|
||||||
Place an order for a pet
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
|
||||||
```csharp
|
|
||||||
using System;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using IO.Swagger.IO.Swagger\API;
|
|
||||||
using IO.Swagger.Client;
|
|
||||||
using IO.Swagger.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
|
|
||||||
IO.Swagger.Model.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
|
|
||||||
|
|
||||||
[**IO.Swagger.Model.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)
|
|
||||||
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
# IO.Swagger.IO.Swagger\Model.Tag
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**id** | **Int64** | | [optional] [default to null]
|
|
||||||
**name** | **String** | | [optional] [default to null]
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
# IO.Swagger.IO.Swagger\Model.User
|
|
||||||
## Properties
|
|
||||||
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**id** | **Int64** | | [optional] [default to null]
|
|
||||||
**username** | **String** | | [optional] [default to null]
|
|
||||||
**firstName** | **String** | | [optional] [default to null]
|
|
||||||
**lastName** | **String** | | [optional] [default to null]
|
|
||||||
**email** | **String** | | [optional] [default to null]
|
|
||||||
**password** | **String** | | [optional] [default to null]
|
|
||||||
**phone** | **String** | | [optional] [default to null]
|
|
||||||
**userStatus** | **Int32** | User Status | [optional] [default to null]
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
@@ -1,498 +0,0 @@
|
|||||||
# IO.Swagger.IO.Swagger\API.UserApi
|
|
||||||
|
|
||||||
All URIs are relative to *http://petstore.swagger.io/v2*
|
|
||||||
|
|
||||||
Method | HTTP request | Description
|
|
||||||
------------- | ------------- | -------------
|
|
||||||
[**CreateUser**](UserApi.md#createuser) | **POST** /user | Create user
|
|
||||||
[**CreateUsersWithArrayInput**](UserApi.md#createuserswitharrayinput) | **POST** /user/createWithArray | Creates list of users with given input array
|
|
||||||
[**CreateUsersWithListInput**](UserApi.md#createuserswithlistinput) | **POST** /user/createWithList | Creates list of users with given input array
|
|
||||||
[**DeleteUser**](UserApi.md#deleteuser) | **DELETE** /user/{username} | Delete user
|
|
||||||
[**GetUserByName**](UserApi.md#getuserbyname) | **GET** /user/{username} | Get user by user name
|
|
||||||
[**LoginUser**](UserApi.md#loginuser) | **GET** /user/login | Logs user into the system
|
|
||||||
[**LogoutUser**](UserApi.md#logoutuser) | **GET** /user/logout | Logs out current logged in user session
|
|
||||||
[**UpdateUser**](UserApi.md#updateuser) | **PUT** /user/{username} | Updated user
|
|
||||||
|
|
||||||
|
|
||||||
<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.IO.Swagger\API;
|
|
||||||
using IO.Swagger.Client;
|
|
||||||
using IO.Swagger.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 (IO.Swagger.Model.User body)
|
|
||||||
|
|
||||||
Creates list of users with given input array
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
|
||||||
```csharp
|
|
||||||
using System;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using IO.Swagger.IO.Swagger\API;
|
|
||||||
using IO.Swagger.Client;
|
|
||||||
using IO.Swagger.IO.Swagger\Model;
|
|
||||||
|
|
||||||
namespace Example
|
|
||||||
{
|
|
||||||
public class CreateUsersWithArrayInputExample
|
|
||||||
{
|
|
||||||
public void main()
|
|
||||||
{
|
|
||||||
var apiInstance = new UserApi();
|
|
||||||
var body = new IO.Swagger.Model.User(); // IO.Swagger.Model.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** | [**IO.Swagger.Model.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 (IO.Swagger.Model.User body)
|
|
||||||
|
|
||||||
Creates list of users with given input array
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
|
||||||
```csharp
|
|
||||||
using System;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using IO.Swagger.IO.Swagger\API;
|
|
||||||
using IO.Swagger.Client;
|
|
||||||
using IO.Swagger.IO.Swagger\Model;
|
|
||||||
|
|
||||||
namespace Example
|
|
||||||
{
|
|
||||||
public class CreateUsersWithListInputExample
|
|
||||||
{
|
|
||||||
public void main()
|
|
||||||
{
|
|
||||||
var apiInstance = new UserApi();
|
|
||||||
var body = new IO.Swagger.Model.User(); // IO.Swagger.Model.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** | [**IO.Swagger.Model.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.IO.Swagger\API;
|
|
||||||
using IO.Swagger.Client;
|
|
||||||
using IO.Swagger.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**
|
|
||||||
> IO.Swagger.Model.User GetUserByName (String username)
|
|
||||||
|
|
||||||
Get user by user name
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Example
|
|
||||||
```csharp
|
|
||||||
using System;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using IO.Swagger.IO.Swagger\API;
|
|
||||||
using IO.Swagger.Client;
|
|
||||||
using IO.Swagger.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
|
|
||||||
IO.Swagger.Model.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
|
|
||||||
|
|
||||||
[**IO.Swagger.Model.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.IO.Swagger\API;
|
|
||||||
using IO.Swagger.Client;
|
|
||||||
using IO.Swagger.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.IO.Swagger\API;
|
|
||||||
using IO.Swagger.Client;
|
|
||||||
using IO.Swagger.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.IO.Swagger\API;
|
|
||||||
using IO.Swagger.Client;
|
|
||||||
using IO.Swagger.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)
|
|
||||||
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
function Invoke-PetApiAddPet {
|
function Invoke-PetApiAddPet {
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
Param (
|
Param (
|
||||||
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
||||||
[IO.Swagger.Model.Pet]
|
[IO.Swagger.Model.Pet]
|
||||||
${body}
|
${body}
|
||||||
)
|
)
|
||||||
@@ -19,10 +19,10 @@ function Invoke-PetApiAddPet {
|
|||||||
function Invoke-PetApiDeletePet {
|
function Invoke-PetApiDeletePet {
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
Param (
|
Param (
|
||||||
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
||||||
[Int64]
|
[Int64]
|
||||||
${petId},
|
${petId},
|
||||||
[Parameter(Position = 2, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)]
|
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)]
|
||||||
[String]
|
[String]
|
||||||
${apiKey}
|
${apiKey}
|
||||||
)
|
)
|
||||||
@@ -41,8 +41,8 @@ function Invoke-PetApiDeletePet {
|
|||||||
function Invoke-PetApiFindPetsByStatus {
|
function Invoke-PetApiFindPetsByStatus {
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
Param (
|
Param (
|
||||||
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
||||||
[String]
|
[String[]]
|
||||||
${status}
|
${status}
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -59,8 +59,8 @@ function Invoke-PetApiFindPetsByStatus {
|
|||||||
function Invoke-PetApiFindPetsByTags {
|
function Invoke-PetApiFindPetsByTags {
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
Param (
|
Param (
|
||||||
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
||||||
[String]
|
[String[]]
|
||||||
${tags}
|
${tags}
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ function Invoke-PetApiFindPetsByTags {
|
|||||||
function Invoke-PetApiGetPetById {
|
function Invoke-PetApiGetPetById {
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
Param (
|
Param (
|
||||||
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
||||||
[Int64]
|
[Int64]
|
||||||
${petId}
|
${petId}
|
||||||
)
|
)
|
||||||
@@ -95,7 +95,7 @@ function Invoke-PetApiGetPetById {
|
|||||||
function Invoke-PetApiUpdatePet {
|
function Invoke-PetApiUpdatePet {
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
Param (
|
Param (
|
||||||
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
||||||
[IO.Swagger.Model.Pet]
|
[IO.Swagger.Model.Pet]
|
||||||
${body}
|
${body}
|
||||||
)
|
)
|
||||||
@@ -113,13 +113,13 @@ function Invoke-PetApiUpdatePet {
|
|||||||
function Invoke-PetApiUpdatePetWithForm {
|
function Invoke-PetApiUpdatePetWithForm {
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
Param (
|
Param (
|
||||||
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
||||||
[Int64]
|
[Int64]
|
||||||
${petId},
|
${petId},
|
||||||
[Parameter(Position = 2, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)]
|
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)]
|
||||||
[String]
|
[String]
|
||||||
${name},
|
${name},
|
||||||
[Parameter(Position = 3, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)]
|
[Parameter(Position = 2, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)]
|
||||||
[String]
|
[String]
|
||||||
${status}
|
${status}
|
||||||
)
|
)
|
||||||
@@ -139,14 +139,14 @@ function Invoke-PetApiUpdatePetWithForm {
|
|||||||
function Invoke-PetApiUploadFile {
|
function Invoke-PetApiUploadFile {
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
Param (
|
Param (
|
||||||
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
||||||
[Int64]
|
[Int64]
|
||||||
${petId},
|
${petId},
|
||||||
[Parameter(Position = 2, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)]
|
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)]
|
||||||
[String]
|
[String]
|
||||||
${additionalMetadata},
|
${additionalMetadata},
|
||||||
[Parameter(Position = 3, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)]
|
[Parameter(Position = 2, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)]
|
||||||
[IO.Swagger.Model.String]
|
[String]
|
||||||
${file}
|
${file}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
function Invoke-StoreApiDeleteOrder {
|
function Invoke-StoreApiDeleteOrder {
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
Param (
|
Param (
|
||||||
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
||||||
[String]
|
[String]
|
||||||
${orderId}
|
${orderId}
|
||||||
)
|
)
|
||||||
@@ -33,7 +33,7 @@ function Invoke-StoreApiGetInventory {
|
|||||||
function Invoke-StoreApiGetOrderById {
|
function Invoke-StoreApiGetOrderById {
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
Param (
|
Param (
|
||||||
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
||||||
[Int64]
|
[Int64]
|
||||||
${orderId}
|
${orderId}
|
||||||
)
|
)
|
||||||
@@ -51,7 +51,7 @@ function Invoke-StoreApiGetOrderById {
|
|||||||
function Invoke-StoreApiPlaceOrder {
|
function Invoke-StoreApiPlaceOrder {
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
Param (
|
Param (
|
||||||
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
||||||
[IO.Swagger.Model.Order]
|
[IO.Swagger.Model.Order]
|
||||||
${body}
|
${body}
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
function Invoke-UserApiCreateUser {
|
function Invoke-UserApiCreateUser {
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
Param (
|
Param (
|
||||||
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
||||||
[IO.Swagger.Model.User]
|
[IO.Swagger.Model.User]
|
||||||
${body}
|
${body}
|
||||||
)
|
)
|
||||||
@@ -19,8 +19,8 @@ function Invoke-UserApiCreateUser {
|
|||||||
function Invoke-UserApiCreateUsersWithArrayInput {
|
function Invoke-UserApiCreateUsersWithArrayInput {
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
Param (
|
Param (
|
||||||
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
||||||
[IO.Swagger.Model.User]
|
[IO.Swagger.Model.User[]]
|
||||||
${body}
|
${body}
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -37,8 +37,8 @@ function Invoke-UserApiCreateUsersWithArrayInput {
|
|||||||
function Invoke-UserApiCreateUsersWithListInput {
|
function Invoke-UserApiCreateUsersWithListInput {
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
Param (
|
Param (
|
||||||
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
||||||
[IO.Swagger.Model.User]
|
[IO.Swagger.Model.User[]]
|
||||||
${body}
|
${body}
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -55,7 +55,7 @@ function Invoke-UserApiCreateUsersWithListInput {
|
|||||||
function Invoke-UserApiDeleteUser {
|
function Invoke-UserApiDeleteUser {
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
Param (
|
Param (
|
||||||
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
||||||
[String]
|
[String]
|
||||||
${username}
|
${username}
|
||||||
)
|
)
|
||||||
@@ -73,7 +73,7 @@ function Invoke-UserApiDeleteUser {
|
|||||||
function Invoke-UserApiGetUserByName {
|
function Invoke-UserApiGetUserByName {
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
Param (
|
Param (
|
||||||
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
||||||
[String]
|
[String]
|
||||||
${username}
|
${username}
|
||||||
)
|
)
|
||||||
@@ -91,10 +91,10 @@ function Invoke-UserApiGetUserByName {
|
|||||||
function Invoke-UserApiLoginUser {
|
function Invoke-UserApiLoginUser {
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
Param (
|
Param (
|
||||||
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
||||||
[String]
|
[String]
|
||||||
${username},
|
${username},
|
||||||
[Parameter(Position = 2, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
||||||
[String]
|
[String]
|
||||||
${password}
|
${password}
|
||||||
)
|
)
|
||||||
@@ -127,10 +127,10 @@ function Invoke-UserApiLogoutUser {
|
|||||||
function Invoke-UserApiUpdateUser {
|
function Invoke-UserApiUpdateUser {
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
Param (
|
Param (
|
||||||
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
||||||
[String]
|
[String]
|
||||||
${username},
|
${username},
|
||||||
[Parameter(Position = 2, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
||||||
[IO.Swagger.Model.User]
|
[IO.Swagger.Model.User]
|
||||||
${body}
|
${body}
|
||||||
)
|
)
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -11,10 +11,10 @@ function New-Pet {
|
|||||||
[String]
|
[String]
|
||||||
${name},
|
${name},
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
||||||
[[String]]
|
[String[]]
|
||||||
${photoUrls},
|
${photoUrls},
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
||||||
[System.Nullable[IO.Swagger.Model.Tag]]
|
[System.Nullable[IO.Swagger.Model.Tag[]]]
|
||||||
${tags},
|
${tags},
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
||||||
[String]
|
[String]
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ LONG DESCRIPTION
|
|||||||
|
|
||||||
- API version: 1.0.0
|
- API version: 1.0.0
|
||||||
- SDK version:
|
- SDK version:
|
||||||
- Build date: 2017-06-09T17:28:25.415+04:00
|
- Build date: 2017-06-20T22:49:00.415+08:00
|
||||||
- Build package: io.swagger.codegen.languages.PowerShellClientCodegen
|
- Build package: io.swagger.codegen.languages.PowerShellClientCodegen
|
||||||
|
|
||||||
Frameworks supported:
|
Frameworks supported:
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
# 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
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
2.2.3-SNAPSHOT
|
|
||||||
@@ -1,86 +0,0 @@
|
|||||||
function Get-FunctionsToExport {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[ValidateNotNullOrEmpty()]
|
|
||||||
[Alias('FullName')]
|
|
||||||
$Path
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
$Token = $null
|
|
||||||
$ParserErr = $null
|
|
||||||
|
|
||||||
$Ast = [System.Management.Automation.Language.Parser]::ParseFile(
|
|
||||||
$Path,
|
|
||||||
[ref]$Token,
|
|
||||||
[ref]$ParserErr
|
|
||||||
)
|
|
||||||
|
|
||||||
if ($ParserErr) {
|
|
||||||
throw $ParserErr
|
|
||||||
} else {
|
|
||||||
foreach ($name in 'Begin', 'Process', 'End') {
|
|
||||||
foreach ($Statement in $Ast."${name}Block".Statements) {
|
|
||||||
if (
|
|
||||||
[String]::IsNullOrWhiteSpace($Statement.Name) -or
|
|
||||||
$Statement.Extent.ToString() -notmatch
|
|
||||||
('function\W+{0}' -f $Statement.Name)
|
|
||||||
) {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
$Statement.Name
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$ScriptDir = Split-Path $script:MyInvocation.MyCommand.Path
|
|
||||||
$ClientPath = ("$ScriptDir\..\..\petstore\csharp\SwaggerClient" | Resolve-Path).ProviderPath
|
|
||||||
$FunctionPath = 'API', 'Model' | ForEach-Object {Join-Path "$ScriptDir\src\IO.Swagger\" $_}
|
|
||||||
$BinPath = "$ScriptDir\src\IO.Swagger\Bin"
|
|
||||||
|
|
||||||
Start-Process -FilePath "$ClientPath\build.bat" -WorkingDirectory $ClientPath -Wait -NoNewWindow
|
|
||||||
|
|
||||||
if (!(Test-Path "$ScriptDir\src\IO.Swagger\Bin" -PathType Container)) {
|
|
||||||
New-Item "$ScriptDir\src\IO.Swagger\Bin" -ItemType Directory > $null
|
|
||||||
}
|
|
||||||
|
|
||||||
Copy-Item "$ClientPath\bin\*.dll" $BinPath
|
|
||||||
|
|
||||||
$Manifest = @{
|
|
||||||
Path = "$ScriptDir\src\IO.Swagger\IO.Swagger.psd1"
|
|
||||||
|
|
||||||
Author = 'Swagger Codegen Team'
|
|
||||||
CompanyName = 'swagger.io'
|
|
||||||
Description = 'IO.Swagger - the PowerShell module for Swagger Petstore'
|
|
||||||
|
|
||||||
RootModule = 'IO.Swagger.psm1'
|
|
||||||
Guid = 'a27b908d-2a20-467f-bc32-af6f3a654ac5' # Has to be static, otherwise each new build will be considered different module
|
|
||||||
|
|
||||||
PowerShellVersion = '3.0'
|
|
||||||
|
|
||||||
RequiredAssemblies = Get-ChildItem "$BinPath\*.dll" | ForEach-Object {
|
|
||||||
Join-Path $_.Directory.Name $_.Name
|
|
||||||
}
|
|
||||||
|
|
||||||
FunctionsToExport = $FunctionPath | Get-ChildItem -Filter *.ps1 | Get-FunctionsToExport
|
|
||||||
|
|
||||||
VariablesToExport = @()
|
|
||||||
AliasesToExport = @()
|
|
||||||
CmdletsToExport = @()
|
|
||||||
|
|
||||||
# Should we use prefix to prevent command name collisions?
|
|
||||||
# https://www.sapien.com/blog/2016/02/15/use-prefixes-to-prevent-command-name-collision/
|
|
||||||
#
|
|
||||||
# Kirk Munro recommends against it:
|
|
||||||
# https://www.sapien.com/blog/2016/02/15/use-prefixes-to-prevent-command-name-collision/#comment-20820
|
|
||||||
#
|
|
||||||
# If not, we'd need to generate functions name with prefix.
|
|
||||||
#
|
|
||||||
# DefaultCommandPrefix = 'PetStore'
|
|
||||||
}
|
|
||||||
|
|
||||||
New-ModuleManifest @Manifest
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
# IO.Swagger - the PowerShell module for the Swagger Petstore
|
|
||||||
|
|
||||||
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
|
||||||
|
|
||||||
This PowerShell module is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
|
||||||
|
|
||||||
- API version: 1.0.0
|
|
||||||
- SDK version:
|
|
||||||
- Build date: 2017-06-20T22:49:00.415+08:00
|
|
||||||
- Build package: io.swagger.codegen.languages.PowerShellClientCodegen
|
|
||||||
|
|
||||||
<a name="frameworks-supported"></a>
|
|
||||||
## Frameworks supported
|
|
||||||
- PowerShell 3.0 or later
|
|
||||||
|
|
||||||
<a name="dependencies"></a>
|
|
||||||
## Dependencies
|
|
||||||
- C# API client generated by Swagger Codegen AND should be located in $ScriptDir\..\..\petstore\csharp\SwaggerClient as stated in Build.ps1
|
|
||||||
|
|
||||||
<a name="installation"></a>
|
|
||||||
## Installation
|
|
||||||
Run the following command to generate the DLL
|
|
||||||
- [Windows] `Build.ps1`
|
|
||||||
|
|
||||||
Then import module from the .\src\IO.Swagger folder:
|
|
||||||
```powershell
|
|
||||||
using IO.Swagger.IO.Swagger/API;
|
|
||||||
using IO.Swagger.Client;
|
|
||||||
using IO.Swagger.IO.Swagger/Model;
|
|
||||||
```
|
|
||||||
|
|
||||||
@@ -1,164 +0,0 @@
|
|||||||
function Invoke-PetApiAddPet {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[IO.Swagger.Model.Pet]
|
|
||||||
${body}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Calling method: PetApi-AddPet' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:PetApi.AddPet(
|
|
||||||
${body}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Invoke-PetApiDeletePet {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[Int64]
|
|
||||||
${petId},
|
|
||||||
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)]
|
|
||||||
[String]
|
|
||||||
${apiKey}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Calling method: PetApi-DeletePet' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:PetApi.DeletePet(
|
|
||||||
${petId},
|
|
||||||
${apiKey}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Invoke-PetApiFindPetsByStatus {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[String[]]
|
|
||||||
${status}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Calling method: PetApi-FindPetsByStatus' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:PetApi.FindPetsByStatus(
|
|
||||||
${status}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Invoke-PetApiFindPetsByTags {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[String[]]
|
|
||||||
${tags}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Calling method: PetApi-FindPetsByTags' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:PetApi.FindPetsByTags(
|
|
||||||
${tags}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Invoke-PetApiGetPetById {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[Int64]
|
|
||||||
${petId}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Calling method: PetApi-GetPetById' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:PetApi.GetPetById(
|
|
||||||
${petId}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Invoke-PetApiUpdatePet {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[IO.Swagger.Model.Pet]
|
|
||||||
${body}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Calling method: PetApi-UpdatePet' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:PetApi.UpdatePet(
|
|
||||||
${body}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Invoke-PetApiUpdatePetWithForm {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[Int64]
|
|
||||||
${petId},
|
|
||||||
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)]
|
|
||||||
[String]
|
|
||||||
${name},
|
|
||||||
[Parameter(Position = 2, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)]
|
|
||||||
[String]
|
|
||||||
${status}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Calling method: PetApi-UpdatePetWithForm' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:PetApi.UpdatePetWithForm(
|
|
||||||
${petId},
|
|
||||||
${name},
|
|
||||||
${status}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Invoke-PetApiUploadFile {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[Int64]
|
|
||||||
${petId},
|
|
||||||
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)]
|
|
||||||
[String]
|
|
||||||
${additionalMetadata},
|
|
||||||
[Parameter(Position = 2, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $false)]
|
|
||||||
[String]
|
|
||||||
${file}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Calling method: PetApi-UploadFile' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:PetApi.UploadFile(
|
|
||||||
${petId},
|
|
||||||
${additionalMetadata},
|
|
||||||
${file}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,68 +0,0 @@
|
|||||||
function Invoke-StoreApiDeleteOrder {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[String]
|
|
||||||
${orderId}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Calling method: StoreApi-DeleteOrder' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:StoreApi.DeleteOrder(
|
|
||||||
${orderId}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Invoke-StoreApiGetInventory {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Calling method: StoreApi-GetInventory' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:StoreApi.GetInventory(
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Invoke-StoreApiGetOrderById {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[Int64]
|
|
||||||
${orderId}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Calling method: StoreApi-GetOrderById' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:StoreApi.GetOrderById(
|
|
||||||
${orderId}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Invoke-StoreApiPlaceOrder {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[IO.Swagger.Model.Order]
|
|
||||||
${body}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Calling method: StoreApi-PlaceOrder' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:StoreApi.PlaceOrder(
|
|
||||||
${body}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,148 +0,0 @@
|
|||||||
function Invoke-UserApiCreateUser {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[IO.Swagger.Model.User]
|
|
||||||
${body}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Calling method: UserApi-CreateUser' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:UserApi.CreateUser(
|
|
||||||
${body}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Invoke-UserApiCreateUsersWithArrayInput {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[IO.Swagger.Model.User[]]
|
|
||||||
${body}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Calling method: UserApi-CreateUsersWithArrayInput' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:UserApi.CreateUsersWithArrayInput(
|
|
||||||
${body}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Invoke-UserApiCreateUsersWithListInput {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[IO.Swagger.Model.User[]]
|
|
||||||
${body}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Calling method: UserApi-CreateUsersWithListInput' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:UserApi.CreateUsersWithListInput(
|
|
||||||
${body}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Invoke-UserApiDeleteUser {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[String]
|
|
||||||
${username}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Calling method: UserApi-DeleteUser' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:UserApi.DeleteUser(
|
|
||||||
${username}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Invoke-UserApiGetUserByName {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[String]
|
|
||||||
${username}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Calling method: UserApi-GetUserByName' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:UserApi.GetUserByName(
|
|
||||||
${username}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Invoke-UserApiLoginUser {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[String]
|
|
||||||
${username},
|
|
||||||
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[String]
|
|
||||||
${password}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Calling method: UserApi-LoginUser' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:UserApi.LoginUser(
|
|
||||||
${username},
|
|
||||||
${password}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Invoke-UserApiLogoutUser {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Calling method: UserApi-LogoutUser' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:UserApi.LogoutUser(
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Invoke-UserApiUpdateUser {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[String]
|
|
||||||
${username},
|
|
||||||
[Parameter(Position = 1, ValueFromPipeline = $true, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[IO.Swagger.Model.User]
|
|
||||||
${body}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Calling method: UserApi-UpdateUser' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
$Script:UserApi.UpdateUser(
|
|
||||||
${username},
|
|
||||||
${body}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
#region Import functions
|
|
||||||
|
|
||||||
'API', 'Model', 'Private' | Get-ChildItem -Path {
|
|
||||||
Join-Path $PSScriptRoot $_
|
|
||||||
} -Filter '*.ps1' | ForEach-Object {
|
|
||||||
Write-Verbose "Importing file: $($_.BaseName)"
|
|
||||||
try {
|
|
||||||
. $_.FullName
|
|
||||||
} catch {
|
|
||||||
Write-Verbose "Can't import function!"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
#region Initialize APIs
|
|
||||||
|
|
||||||
'Creating object: IO.Swagger.Api.PetApi' | Write-Verbose
|
|
||||||
$Script:PetApi= New-Object -TypeName IO.Swagger.Api.PetApi -ArgumentList @($null)
|
|
||||||
|
|
||||||
'Creating object: IO.Swagger.Api.StoreApi' | Write-Verbose
|
|
||||||
$Script:StoreApi= New-Object -TypeName IO.Swagger.Api.StoreApi -ArgumentList @($null)
|
|
||||||
|
|
||||||
'Creating object: IO.Swagger.Api.UserApi' | Write-Verbose
|
|
||||||
$Script:UserApi= New-Object -TypeName IO.Swagger.Api.UserApi -ArgumentList @($null)
|
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
function New-ApiResponse {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[System.Nullable[Int32]]
|
|
||||||
${code},
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[String]
|
|
||||||
${type},
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[String]
|
|
||||||
${message}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Creating object: IO.Swagger.Model.ApiResponse' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
New-Object -TypeName IO.Swagger.Model.ApiResponse -ArgumentList @(
|
|
||||||
${code},
|
|
||||||
${type},
|
|
||||||
${message}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
function New-Category {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[System.Nullable[Int64]]
|
|
||||||
${id},
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[String]
|
|
||||||
${name}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Creating object: IO.Swagger.Model.Category' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
New-Object -TypeName IO.Swagger.Model.Category -ArgumentList @(
|
|
||||||
${id},
|
|
||||||
${name}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
function New-Order {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[System.Nullable[Int64]]
|
|
||||||
${id},
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[System.Nullable[Int64]]
|
|
||||||
${petId},
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[System.Nullable[Int32]]
|
|
||||||
${quantity},
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[System.Nullable[System.DateTime]]
|
|
||||||
${shipDate},
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[String]
|
|
||||||
${status},
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[System.Nullable[Boolean]]
|
|
||||||
${complete}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Creating object: IO.Swagger.Model.Order' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
New-Object -TypeName IO.Swagger.Model.Order -ArgumentList @(
|
|
||||||
${id},
|
|
||||||
${petId},
|
|
||||||
${quantity},
|
|
||||||
${shipDate},
|
|
||||||
${status},
|
|
||||||
${complete}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
function New-Pet {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[System.Nullable[Int64]]
|
|
||||||
${id},
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[System.Nullable[IO.Swagger.Model.Category]]
|
|
||||||
${category},
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[String]
|
|
||||||
${name},
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true, Mandatory = $true)]
|
|
||||||
[String[]]
|
|
||||||
${photoUrls},
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[System.Nullable[IO.Swagger.Model.Tag[]]]
|
|
||||||
${tags},
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[String]
|
|
||||||
${status}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Creating object: IO.Swagger.Model.Pet' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
New-Object -TypeName IO.Swagger.Model.Pet -ArgumentList @(
|
|
||||||
${id},
|
|
||||||
${category},
|
|
||||||
${name},
|
|
||||||
${photoUrls},
|
|
||||||
${tags},
|
|
||||||
${status}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
function New-Tag {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[System.Nullable[Int64]]
|
|
||||||
${id},
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[String]
|
|
||||||
${name}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Creating object: IO.Swagger.Model.Tag' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
New-Object -TypeName IO.Swagger.Model.Tag -ArgumentList @(
|
|
||||||
${id},
|
|
||||||
${name}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
function New-User {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[System.Nullable[Int64]]
|
|
||||||
${id},
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[String]
|
|
||||||
${username},
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[String]
|
|
||||||
${firstName},
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[String]
|
|
||||||
${lastName},
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[String]
|
|
||||||
${email},
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[String]
|
|
||||||
${password},
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[String]
|
|
||||||
${phone},
|
|
||||||
[Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
|
|
||||||
[System.Nullable[Int32]]
|
|
||||||
${userStatus}
|
|
||||||
)
|
|
||||||
|
|
||||||
Process {
|
|
||||||
'Creating object: IO.Swagger.Model.User' | Write-Verbose
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
|
|
||||||
New-Object -TypeName IO.Swagger.Model.User -ArgumentList @(
|
|
||||||
${id},
|
|
||||||
${username},
|
|
||||||
${firstName},
|
|
||||||
${lastName},
|
|
||||||
${email},
|
|
||||||
${password},
|
|
||||||
${phone},
|
|
||||||
${userStatus}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
<#
|
|
||||||
.Synopsis
|
|
||||||
Helper function to get common parameters (Verbose, Debug, etc.)
|
|
||||||
.Example
|
|
||||||
Get-CommonParameters
|
|
||||||
#>
|
|
||||||
function Get-CommonParameters {
|
|
||||||
function tmp {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param ()
|
|
||||||
}
|
|
||||||
|
|
||||||
(Get-Command -Name tmp -CommandType Function).Parameters.Keys
|
|
||||||
}
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
<#
|
|
||||||
.Synopsis
|
|
||||||
Helper function to format debug parameter output.
|
|
||||||
.Example
|
|
||||||
$PSBoundParameters | Out-DebugParameter | Write-Debug
|
|
||||||
#>
|
|
||||||
function Out-DebugParameter {
|
|
||||||
[CmdletBinding()]
|
|
||||||
Param (
|
|
||||||
[Parameter(ValueFromPipeline = $true, Mandatory = $true)]
|
|
||||||
[AllowEmptyCollection()]
|
|
||||||
$InputObject
|
|
||||||
)
|
|
||||||
|
|
||||||
Begin {
|
|
||||||
$CommonParameters = Get-CommonParameters
|
|
||||||
}
|
|
||||||
|
|
||||||
Process {
|
|
||||||
$InputObject.GetEnumerator() | Where-Object {
|
|
||||||
$CommonParameters -notcontains $_.Key
|
|
||||||
} | Format-Table -AutoSize -Property (
|
|
||||||
@{
|
|
||||||
Name = 'Parameter'
|
|
||||||
Expression = {$_.Key}
|
|
||||||
},
|
|
||||||
@{
|
|
||||||
Name = 'Value'
|
|
||||||
Expression = {$_.Value}
|
|
||||||
}
|
|
||||||
) | Out-String -Stream | ForEach-Object {
|
|
||||||
if ($_.Trim()) {
|
|
||||||
$_
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
PSTOPIC
|
|
||||||
about_IO.Swagger
|
|
||||||
|
|
||||||
SHORT DESCRIPTION
|
|
||||||
IO.Swagger - the PowerShell module for the Swagger Petstore
|
|
||||||
|
|
||||||
LONG DESCRIPTION
|
|
||||||
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
|
||||||
|
|
||||||
This PowerShell module is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
|
||||||
|
|
||||||
- API version: 1.0.0
|
|
||||||
- SDK version:
|
|
||||||
- Build date: 2017-06-20T22:49:00.415+08:00
|
|
||||||
- Build package: io.swagger.codegen.languages.PowerShellClientCodegen
|
|
||||||
|
|
||||||
Frameworks supported:
|
|
||||||
|
|
||||||
* PowerShell 3.0+
|
|
||||||
* .NET 4.0 or later
|
|
||||||
Reference in New Issue
Block a user