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

Datei anzeigen Open project: hike/swagger-codegen

Public Methods

Method Description
addPet ( Pet body ) : void

Add a new pet to the store

deletePet ( string petId ) : void

Deletes a pet

findPetsByStatus ( string status ) : List

Finds Pets by status Multiple status values can be provided with comma seperated strings

findPetsByTags ( string tags ) : List

Finds Pets by tags Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.

getBasePath ( ) : String
getInvoker ( ) : Com.Wordnik.Petstore.ApiInvoker
getPetById ( string petId ) : Pet

Find pet by ID Returns a pet based on ID

setBasePath ( string basePath ) : void
updatePet ( Pet body ) : void

Update an existing pet

Method Details

addPet() public method

Add a new pet to the store
public addPet ( Pet body ) : void
body Com.Wordnik.Petstore.Model.Pet Pet object that needs to be added to the store
return void

deletePet() public method

Deletes a pet
public deletePet ( string petId ) : void
petId string Pet id to delete
return void

findPetsByStatus() public method

Finds Pets by status Multiple status values can be provided with comma seperated strings
public findPetsByStatus ( string status ) : List
status string Status values that need to be considered for filter
return List

findPetsByTags() public method

Finds Pets by tags Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.
public findPetsByTags ( string tags ) : List
tags string Tags to filter by
return List

getBasePath() public method

public getBasePath ( ) : String
return String

getInvoker() public method

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

getPetById() public method

Find pet by ID Returns a pet based on ID
public getPetById ( string petId ) : Pet
petId string ID of pet that needs to be fetched
return Com.Wordnik.Petstore.Model.Pet

setBasePath() public method

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

updatePet() public method

Update an existing pet
public updatePet ( Pet body ) : void
body Com.Wordnik.Petstore.Model.Pet Pet object that needs to be updated in the store
return void