wing328 e53b3a03aa [PowerShell] Add PowerShell API client generator (WIP) (#5789)
* add powershell generator (wip)

* minor fix to api template

* rename model files

* Powershell generator fix (#11)

* Fix typo

pacakge -> package

* Add missing `petstore` subfolder to $ClientPath

* Resolve $ClientPath to absolute path

Start-Process needs WorkingDirectory to be absolute

* Fix spaces in variable name

${ somevar } is a vairable that literally has spaces in name. We need to
temporarily redifine mustache delimiters so we can generate var. names
without spaces.

* Fix typo

Remove stray `r`

* Fix *.ps1 import in module

Directory structure has changed + we should export functions using
manifest.

* Remove erroneous file

* various fixes and enhancements

* remove nullable for string

* change function name based on feedback by beatcracker

* set index to start at 0

* fix file type

* Powershell generator fix 1 (#12)

* Add closing curly brace

* Fix duplicated '['

* Get FunctionsToExport using AST

Discussion: swagger-api/swagger-codegen#5789

* add guid option to powershell generator

* add test files, remove docs

* fix array of items

* clean up powershell comment, update model/api test files
2017-06-20 22:20:05 +08:00

70 lines
2.3 KiB
PowerShell

# This file is auto-generated by Swagger Codegen (https://github.com/swagger-api/swagger-codegen)
# Please replace "TEST_VALUE" with a proper value and uncomment the code for testing the function
Describe 'IO.Swagger UserApi' {
Context 'UserApi' {
It 'Invoke-UserApiCreateUser' {
$ret = Invoke-PetApiGetPetById -body "TEST_VALUE"
#$ret | Should BeOfType IO.Swagger.Model.ModelNameHere
#$ret.property | Should Be 0
}
}
Context 'UserApi' {
It 'Invoke-UserApiCreateUsersWithArrayInput' {
$ret = Invoke-PetApiGetPetById -body "TEST_VALUE"
#$ret | Should BeOfType IO.Swagger.Model.ModelNameHere
#$ret.property | Should Be 0
}
}
Context 'UserApi' {
It 'Invoke-UserApiCreateUsersWithListInput' {
$ret = Invoke-PetApiGetPetById -body "TEST_VALUE"
#$ret | Should BeOfType IO.Swagger.Model.ModelNameHere
#$ret.property | Should Be 0
}
}
Context 'UserApi' {
It 'Invoke-UserApiDeleteUser' {
$ret = Invoke-PetApiGetPetById -username "TEST_VALUE"
#$ret | Should BeOfType IO.Swagger.Model.ModelNameHere
#$ret.property | Should Be 0
}
}
Context 'UserApi' {
It 'Invoke-UserApiGetUserByName' {
$ret = Invoke-PetApiGetPetById -username "TEST_VALUE"
#$ret | Should BeOfType IO.Swagger.Model.ModelNameHere
#$ret.property | Should Be 0
}
}
Context 'UserApi' {
It 'Invoke-UserApiLoginUser' {
$ret = Invoke-PetApiGetPetById -username "TEST_VALUE" -password "TEST_VALUE"
#$ret | Should BeOfType IO.Swagger.Model.ModelNameHere
#$ret.property | Should Be 0
}
}
Context 'UserApi' {
It 'Invoke-UserApiLogoutUser' {
$ret = Invoke-PetApiGetPetById
#$ret | Should BeOfType IO.Swagger.Model.ModelNameHere
#$ret.property | Should Be 0
}
}
Context 'UserApi' {
It 'Invoke-UserApiUpdateUser' {
$ret = Invoke-PetApiGetPetById -username "TEST_VALUE" -body "TEST_VALUE"
#$ret | Should BeOfType IO.Swagger.Model.ModelNameHere
#$ret.property | Should Be 0
}
}
}