C# Class IO.Swagger.Api.StoreApi

Represents a collection of functions to interact with the API endpoints
Inheritance: IStoreApi
Datei anzeigen Open project: QualityUnit/swagger-codegen Class Usage Examples

Public Methods

Method Description
DeleteOrder ( string orderId ) : void

Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors

DeleteOrderAsync ( string orderId ) : System.Threading.Tasks.Task

Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors

DeleteOrderAsyncWithHttpInfo ( string orderId ) : System.Threading.Tasks.Task>

Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors

DeleteOrderWithHttpInfo ( string orderId ) : ApiResponse

Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors

GetBasePath ( ) : String

Gets the base path of the API client.

GetInventory ( ) : int?>.Dictionary

Returns pet inventories by status Returns a map of status codes to quantities

GetInventoryAsync ( ) : int?>>.System.Threading.Tasks.Task

Returns pet inventories by status Returns a map of status codes to quantities

GetInventoryAsyncWithHttpInfo ( ) : int?>>>.System.Threading.Tasks.Task

Returns pet inventories by status Returns a map of status codes to quantities

GetInventoryWithHttpInfo ( ) : int?>>.ApiResponse

Returns pet inventories by status Returns a map of status codes to quantities

GetOrderById ( long orderId ) : Order

Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions

GetOrderByIdAsync ( long orderId ) : System.Threading.Tasks.Task

Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions

GetOrderByIdAsyncWithHttpInfo ( long orderId ) : System.Threading.Tasks.Task>

Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions

GetOrderByIdWithHttpInfo ( long orderId ) : ApiResponse

Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions

PlaceOrder ( Order body ) : Order

Place an order for a pet

PlaceOrderAsync ( Order body ) : System.Threading.Tasks.Task

Place an order for a pet

PlaceOrderAsyncWithHttpInfo ( Order body ) : System.Threading.Tasks.Task>

Place an order for a pet

PlaceOrderWithHttpInfo ( Order body ) : ApiResponse

Place an order for a pet

StoreApi ( Configuration configuration = null ) : System

Initializes a new instance of the StoreApi class using Configuration object

StoreApi ( String basePath ) : System

Initializes a new instance of the StoreApi class.

Private Methods

Method Description
AddDefaultHeader ( string key, string value ) : void
DefaultHeader ( ) : String>.Dictionary
SetBasePath ( String basePath ) : void

Method Details

DeleteOrder() public method

Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
Thrown when fails to make API call
public DeleteOrder ( string orderId ) : void
orderId string ID of the order that needs to be deleted
return void

DeleteOrderAsync() public method

Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
Thrown when fails to make API call
public DeleteOrderAsync ( string orderId ) : System.Threading.Tasks.Task
orderId string ID of the order that needs to be deleted
return System.Threading.Tasks.Task

DeleteOrderAsyncWithHttpInfo() public method

Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
Thrown when fails to make API call
public DeleteOrderAsyncWithHttpInfo ( string orderId ) : System.Threading.Tasks.Task>
orderId string ID of the order that needs to be deleted
return System.Threading.Tasks.Task>

DeleteOrderWithHttpInfo() public method

Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
Thrown when fails to make API call
public DeleteOrderWithHttpInfo ( string orderId ) : ApiResponse
orderId string ID of the order that needs to be deleted
return ApiResponse

GetBasePath() public method

Gets the base path of the API client.
public GetBasePath ( ) : String
return String

GetInventory() public method

Returns pet inventories by status Returns a map of status codes to quantities
Thrown when fails to make API call
public GetInventory ( ) : int?>.Dictionary
return int?>.Dictionary

GetInventoryAsync() public method

Returns pet inventories by status Returns a map of status codes to quantities
Thrown when fails to make API call
public GetInventoryAsync ( ) : int?>>.System.Threading.Tasks.Task
return int?>>.System.Threading.Tasks.Task

GetInventoryAsyncWithHttpInfo() public method

Returns pet inventories by status Returns a map of status codes to quantities
Thrown when fails to make API call
public GetInventoryAsyncWithHttpInfo ( ) : int?>>>.System.Threading.Tasks.Task
return int?>>>.System.Threading.Tasks.Task

GetInventoryWithHttpInfo() public method

Returns pet inventories by status Returns a map of status codes to quantities
Thrown when fails to make API call
public GetInventoryWithHttpInfo ( ) : int?>>.ApiResponse
return int?>>.ApiResponse

GetOrderById() public method

Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
Thrown when fails to make API call
public GetOrderById ( long orderId ) : Order
orderId long ID of pet that needs to be fetched
return IO.Swagger.Model.Order

GetOrderByIdAsync() public method

Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
Thrown when fails to make API call
public GetOrderByIdAsync ( long orderId ) : System.Threading.Tasks.Task
orderId long ID of pet that needs to be fetched
return System.Threading.Tasks.Task

GetOrderByIdAsyncWithHttpInfo() public method

Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
Thrown when fails to make API call
public GetOrderByIdAsyncWithHttpInfo ( long orderId ) : System.Threading.Tasks.Task>
orderId long ID of pet that needs to be fetched
return System.Threading.Tasks.Task>

GetOrderByIdWithHttpInfo() public method

Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
Thrown when fails to make API call
public GetOrderByIdWithHttpInfo ( long orderId ) : ApiResponse
orderId long ID of pet that needs to be fetched
return ApiResponse

PlaceOrder() public method

Place an order for a pet
Thrown when fails to make API call
public PlaceOrder ( Order body ) : Order
body IO.Swagger.Model.Order order placed for purchasing the pet
return IO.Swagger.Model.Order

PlaceOrderAsync() public method

Place an order for a pet
Thrown when fails to make API call
public PlaceOrderAsync ( Order body ) : System.Threading.Tasks.Task
body IO.Swagger.Model.Order order placed for purchasing the pet
return System.Threading.Tasks.Task

PlaceOrderAsyncWithHttpInfo() public method

Place an order for a pet
Thrown when fails to make API call
public PlaceOrderAsyncWithHttpInfo ( Order body ) : System.Threading.Tasks.Task>
body IO.Swagger.Model.Order order placed for purchasing the pet
return System.Threading.Tasks.Task>

PlaceOrderWithHttpInfo() public method

Place an order for a pet
Thrown when fails to make API call
public PlaceOrderWithHttpInfo ( Order body ) : ApiResponse
body IO.Swagger.Model.Order order placed for purchasing the pet
return ApiResponse

StoreApi() public method

Initializes a new instance of the StoreApi class using Configuration object
public StoreApi ( Configuration configuration = null ) : System
configuration IO.Swagger.Client.Configuration An instance of Configuration
return System

StoreApi() public method

Initializes a new instance of the StoreApi class.
public StoreApi ( String basePath ) : System
basePath String
return System