William Cheng 457aff8496
[Powershell] refactor the client generator (#5629)
* add api client

* add local variables

* add configuration

* add header/query/form parameter support

* add partial header

* add auth, fix parameters type

* fix accept, content type

* url query string

* fix path, header

* remove dep on C# client

* fix method naming with package name

* fix object

* convert result from json

* better response handling

* remove tostring method

* fix model doc

* fix default module

* generate api test files

* better api, model tests

* fix add pet

* add appveyor

* fix accept, content type

* add petstore tests

* fix form parameters

* test delete

* better file handling (upload)

* better code sample

* add package version, better doc

* delete unused files

* fix header parameters

* clean up api client

* update samples

* support query parameter

* better method and parameter naming

* minor formatting change

* better doc, fix cookie parameter

* better doc

* add api prefix support

* better api nam prefix option

* fix configuration

* throw errors for required parameter

* fix authentication

* add try catch block to sample code

* rename model

* use debug, clean up comment

* revise code

* move bin script

* update doc

* add new file

* better map support
2020-03-19 15:53:11 +08:00

1.0 KiB

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]

Examples

  • Create a new object
New-PSPetstoreUser  -Id null `
 -Username null `
 -FirstName null `
 -LastName null `
 -Email null `
 -Password null `
 -Phone null `
 -UserStatus null
  • Convert the object to JSON
$ | Convert-ToJSON

[Back to Model list] [Back to API list] [Back to README]