C# Class IO.Swagger.Api.FakeApi

Represents a collection of functions to interact with the API endpoints
Inheritance: IFakeApi
Mostra file Open project: swagger-api/swagger-codegen Class Usage Examples

Public Methods

Method Description
FakeApi ( Configuration configuration = null ) : System

Initializes a new instance of the FakeApi class using Configuration object

FakeApi ( String basePath ) : System

Initializes a new instance of the FakeApi class.

GetBasePath ( ) : String

Gets the base path of the API client.

TestClientModel ( ModelClient body ) : ModelClient

To test \"client\" model

TestClientModelAsync ( ModelClient body ) : System.Threading.Tasks.Task

To test \"client\" model

TestClientModelAsyncWithHttpInfo ( ModelClient body ) : System.Threading.Tasks.Task>

To test \"client\" model

TestClientModelWithHttpInfo ( ModelClient body ) : ApiResponse

To test \"client\" model

TestEndpointParameters ( decimal number, double _double, string patternWithoutDelimiter, byte _byte, int integer = null, int int32 = null, long int64 = null, float _float = null, string _string = null, byte binary = null, System.DateTime date = null, System.DateTime dateTime = null, string password = null, string callback = null ) : void

Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트

TestEndpointParametersAsync ( decimal number, double _double, string patternWithoutDelimiter, byte _byte, int integer = null, int int32 = null, long int64 = null, float _float = null, string _string = null, byte binary = null, System.DateTime date = null, System.DateTime dateTime = null, string password = null, string callback = null ) : System.Threading.Tasks.Task

Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트

TestEndpointParametersAsyncWithHttpInfo ( decimal number, double _double, string patternWithoutDelimiter, byte _byte, int integer = null, int int32 = null, long int64 = null, float _float = null, string _string = null, byte binary = null, System.DateTime date = null, System.DateTime dateTime = null, string password = null, string callback = null ) : System.Threading.Tasks.Task>

Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트

TestEndpointParametersWithHttpInfo ( decimal number, double _double, string patternWithoutDelimiter, byte _byte, int integer = null, int int32 = null, long int64 = null, float _float = null, string _string = null, byte binary = null, System.DateTime date = null, System.DateTime dateTime = null, string password = null, string callback = null ) : ApiResponse

Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트

TestEnumParameters ( List enumFormStringArray = null, string enumFormString = null, List enumHeaderStringArray = null, string enumHeaderString = null, List enumQueryStringArray = null, string enumQueryString = null, int enumQueryInteger = null, double enumQueryDouble = null ) : void

To test enum parameters

TestEnumParametersAsync ( List enumFormStringArray = null, string enumFormString = null, List enumHeaderStringArray = null, string enumHeaderString = null, List enumQueryStringArray = null, string enumQueryString = null, int enumQueryInteger = null, double enumQueryDouble = null ) : System.Threading.Tasks.Task

To test enum parameters

TestEnumParametersAsyncWithHttpInfo ( List enumFormStringArray = null, string enumFormString = null, List enumHeaderStringArray = null, string enumHeaderString = null, List enumQueryStringArray = null, string enumQueryString = null, int enumQueryInteger = null, double enumQueryDouble = null ) : System.Threading.Tasks.Task>

To test enum parameters

TestEnumParametersWithHttpInfo ( List enumFormStringArray = null, string enumFormString = null, List enumHeaderStringArray = null, string enumHeaderString = null, List enumQueryStringArray = null, string enumQueryString = null, int enumQueryInteger = null, double enumQueryDouble = null ) : ApiResponse

To test enum parameters

Private Methods

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

Method Details

FakeApi() public method

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

FakeApi() public method

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

GetBasePath() public method

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

TestClientModel() public method

To test \"client\" model
Thrown when fails to make API call
public TestClientModel ( ModelClient body ) : ModelClient
body ModelClient client model
return ModelClient

TestClientModelAsync() public method

To test \"client\" model
Thrown when fails to make API call
public TestClientModelAsync ( ModelClient body ) : System.Threading.Tasks.Task
body ModelClient client model
return System.Threading.Tasks.Task

TestClientModelAsyncWithHttpInfo() public method

To test \"client\" model
Thrown when fails to make API call
public TestClientModelAsyncWithHttpInfo ( ModelClient body ) : System.Threading.Tasks.Task>
body ModelClient client model
return System.Threading.Tasks.Task>

TestClientModelWithHttpInfo() public method

To test \"client\" model
Thrown when fails to make API call
public TestClientModelWithHttpInfo ( ModelClient body ) : ApiResponse
body ModelClient client model
return ApiResponse

TestEndpointParameters() public method

Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
Thrown when fails to make API call
public TestEndpointParameters ( decimal number, double _double, string patternWithoutDelimiter, byte _byte, int integer = null, int int32 = null, long int64 = null, float _float = null, string _string = null, byte binary = null, System.DateTime date = null, System.DateTime dateTime = null, string password = null, string callback = null ) : void
number decimal None
_double double None
patternWithoutDelimiter string None
_byte byte None
integer int None (optional)
int32 int None (optional)
int64 long None (optional)
_float float None (optional)
_string string None (optional)
binary byte None (optional)
date System.DateTime None (optional)
dateTime System.DateTime None (optional)
password string None (optional)
callback string None (optional)
return void

TestEndpointParametersAsync() public method

Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
Thrown when fails to make API call
public TestEndpointParametersAsync ( decimal number, double _double, string patternWithoutDelimiter, byte _byte, int integer = null, int int32 = null, long int64 = null, float _float = null, string _string = null, byte binary = null, System.DateTime date = null, System.DateTime dateTime = null, string password = null, string callback = null ) : System.Threading.Tasks.Task
number decimal None
_double double None
patternWithoutDelimiter string None
_byte byte None
integer int None (optional)
int32 int None (optional)
int64 long None (optional)
_float float None (optional)
_string string None (optional)
binary byte None (optional)
date System.DateTime None (optional)
dateTime System.DateTime None (optional)
password string None (optional)
callback string None (optional)
return System.Threading.Tasks.Task

TestEndpointParametersAsyncWithHttpInfo() public method

Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
Thrown when fails to make API call
public TestEndpointParametersAsyncWithHttpInfo ( decimal number, double _double, string patternWithoutDelimiter, byte _byte, int integer = null, int int32 = null, long int64 = null, float _float = null, string _string = null, byte binary = null, System.DateTime date = null, System.DateTime dateTime = null, string password = null, string callback = null ) : System.Threading.Tasks.Task>
number decimal None
_double double None
patternWithoutDelimiter string None
_byte byte None
integer int None (optional)
int32 int None (optional)
int64 long None (optional)
_float float None (optional)
_string string None (optional)
binary byte None (optional)
date System.DateTime None (optional)
dateTime System.DateTime None (optional)
password string None (optional)
callback string None (optional)
return System.Threading.Tasks.Task>

TestEndpointParametersWithHttpInfo() public method

Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
Thrown when fails to make API call
public TestEndpointParametersWithHttpInfo ( decimal number, double _double, string patternWithoutDelimiter, byte _byte, int integer = null, int int32 = null, long int64 = null, float _float = null, string _string = null, byte binary = null, System.DateTime date = null, System.DateTime dateTime = null, string password = null, string callback = null ) : ApiResponse
number decimal None
_double double None
patternWithoutDelimiter string None
_byte byte None
integer int None (optional)
int32 int None (optional)
int64 long None (optional)
_float float None (optional)
_string string None (optional)
binary byte None (optional)
date System.DateTime None (optional)
dateTime System.DateTime None (optional)
password string None (optional)
callback string None (optional)
return ApiResponse

TestEnumParameters() public method

To test enum parameters
Thrown when fails to make API call
public TestEnumParameters ( List enumFormStringArray = null, string enumFormString = null, List enumHeaderStringArray = null, string enumHeaderString = null, List enumQueryStringArray = null, string enumQueryString = null, int enumQueryInteger = null, double enumQueryDouble = null ) : void
enumFormStringArray List Form parameter enum test (string array) (optional)
enumFormString string Form parameter enum test (string) (optional, default to -efg)
enumHeaderStringArray List Header parameter enum test (string array) (optional)
enumHeaderString string Header parameter enum test (string) (optional, default to -efg)
enumQueryStringArray List Query parameter enum test (string array) (optional)
enumQueryString string Query parameter enum test (string) (optional, default to -efg)
enumQueryInteger int Query parameter enum test (double) (optional)
enumQueryDouble double Query parameter enum test (double) (optional)
return void

TestEnumParametersAsync() public method

To test enum parameters
Thrown when fails to make API call
public TestEnumParametersAsync ( List enumFormStringArray = null, string enumFormString = null, List enumHeaderStringArray = null, string enumHeaderString = null, List enumQueryStringArray = null, string enumQueryString = null, int enumQueryInteger = null, double enumQueryDouble = null ) : System.Threading.Tasks.Task
enumFormStringArray List Form parameter enum test (string array) (optional)
enumFormString string Form parameter enum test (string) (optional, default to -efg)
enumHeaderStringArray List Header parameter enum test (string array) (optional)
enumHeaderString string Header parameter enum test (string) (optional, default to -efg)
enumQueryStringArray List Query parameter enum test (string array) (optional)
enumQueryString string Query parameter enum test (string) (optional, default to -efg)
enumQueryInteger int Query parameter enum test (double) (optional)
enumQueryDouble double Query parameter enum test (double) (optional)
return System.Threading.Tasks.Task

TestEnumParametersAsyncWithHttpInfo() public method

To test enum parameters
Thrown when fails to make API call
public TestEnumParametersAsyncWithHttpInfo ( List enumFormStringArray = null, string enumFormString = null, List enumHeaderStringArray = null, string enumHeaderString = null, List enumQueryStringArray = null, string enumQueryString = null, int enumQueryInteger = null, double enumQueryDouble = null ) : System.Threading.Tasks.Task>
enumFormStringArray List Form parameter enum test (string array) (optional)
enumFormString string Form parameter enum test (string) (optional, default to -efg)
enumHeaderStringArray List Header parameter enum test (string array) (optional)
enumHeaderString string Header parameter enum test (string) (optional, default to -efg)
enumQueryStringArray List Query parameter enum test (string array) (optional)
enumQueryString string Query parameter enum test (string) (optional, default to -efg)
enumQueryInteger int Query parameter enum test (double) (optional)
enumQueryDouble double Query parameter enum test (double) (optional)
return System.Threading.Tasks.Task>

TestEnumParametersWithHttpInfo() public method

To test enum parameters
Thrown when fails to make API call
public TestEnumParametersWithHttpInfo ( List enumFormStringArray = null, string enumFormString = null, List enumHeaderStringArray = null, string enumHeaderString = null, List enumQueryStringArray = null, string enumQueryString = null, int enumQueryInteger = null, double enumQueryDouble = null ) : ApiResponse
enumFormStringArray List Form parameter enum test (string array) (optional)
enumFormString string Form parameter enum test (string) (optional, default to -efg)
enumHeaderStringArray List Header parameter enum test (string array) (optional)
enumHeaderString string Header parameter enum test (string) (optional, default to -efg)
enumQueryStringArray List Query parameter enum test (string array) (optional)
enumQueryString string Query parameter enum test (string) (optional, default to -efg)
enumQueryInteger int Query parameter enum test (double) (optional)
enumQueryDouble double Query parameter enum test (double) (optional)
return ApiResponse