C# Class Com.Wordnik.Petstore.Api.UserApi

Mostra file Open project: hike/swagger-codegen

Public Methods

Method Description
createUser ( Com.Wordnik.Petstore.Model.User body ) : void

Create user This can only be done by the logged in user.

createUsersWithArrayInput ( array body ) : void

Creates list of users with given input array

createUsersWithListInput ( array body ) : void

Creates list of users with given list input

deleteUser ( string username ) : void

Delete user This can only be done by the logged in user.

getBasePath ( ) : String
getInvoker ( ) : Com.Wordnik.Petstore.ApiInvoker
getUserByName ( string username ) : Com.Wordnik.Petstore.Model.User

Get user by user name

loginUser ( string username, string password ) : string

Logs user into the system

logoutUser ( ) : void

Logs out current logged in user session

setBasePath ( string basePath ) : void
updateUser ( string username, Com.Wordnik.Petstore.Model.User body ) : void

Updated user This can only be done by the logged in user.

Method Details

createUser() public method

Create user This can only be done by the logged in user.
public createUser ( Com.Wordnik.Petstore.Model.User body ) : void
body Com.Wordnik.Petstore.Model.User Created user object
return void

createUsersWithArrayInput() public method

Creates list of users with given input array
public createUsersWithArrayInput ( array body ) : void
body array List of user object
return void

createUsersWithListInput() public method

Creates list of users with given list input
public createUsersWithListInput ( array body ) : void
body array List of user object
return void

deleteUser() public method

Delete user This can only be done by the logged in user.
public deleteUser ( string username ) : void
username string The name that needs to be deleted
return void

getBasePath() public method

public getBasePath ( ) : String
return String

getInvoker() public method

public getInvoker ( ) : Com.Wordnik.Petstore.ApiInvoker
return Com.Wordnik.Petstore.ApiInvoker

getUserByName() public method

Get user by user name
public getUserByName ( string username ) : Com.Wordnik.Petstore.Model.User
username string The name that needs to be fetched. Use user1 for testing.
return Com.Wordnik.Petstore.Model.User

loginUser() public method

Logs user into the system
public loginUser ( string username, string password ) : string
username string The user name for login
password string The password for login in clear text
return string

logoutUser() public method

Logs out current logged in user session
public logoutUser ( ) : void
return void

setBasePath() public method

public setBasePath ( string basePath ) : void
basePath string
return void

updateUser() public method

Updated user This can only be done by the logged in user.
public updateUser ( string username, Com.Wordnik.Petstore.Model.User body ) : void
username string name that need to be deleted
body Com.Wordnik.Petstore.Model.User Updated user object
return void