Interface ISynchronousClient
Contract for Synchronous RESTful API interactions.
This interface allows consumers to provide a custom API accessor client.
Namespace: mailslurp.Client
Assembly: mailslurp.dll
Syntax
public interface ISynchronousClient
Methods
View SourceDelete<T>(string, RequestOptions, IReadableConfiguration)
Executes a blocking call to some path
using the DELETE http verb.
Declaration
ApiResponse<T> Delete<T>(string path, RequestOptions options, IReadableConfiguration configuration = null)
Parameters
Type | Name | Description |
---|---|---|
string | path | The relative path to invoke. |
RequestOptions | options | The request parameters to pass along to the client. |
IReadableConfiguration | configuration | Per-request configurable settings. |
Returns
Type | Description |
---|---|
ApiResponse<T> | The response data, decorated with ApiResponse<T> |
Type Parameters
Name | Description |
---|---|
T | The return type. |
Get<T>(string, RequestOptions, IReadableConfiguration)
Executes a blocking call to some path
using the GET http verb.
Declaration
ApiResponse<T> Get<T>(string path, RequestOptions options, IReadableConfiguration configuration = null)
Parameters
Type | Name | Description |
---|---|---|
string | path | The relative path to invoke. |
RequestOptions | options | The request parameters to pass along to the client. |
IReadableConfiguration | configuration | Per-request configurable settings. |
Returns
Type | Description |
---|---|
ApiResponse<T> | The response data, decorated with ApiResponse<T> |
Type Parameters
Name | Description |
---|---|
T | The return type. |
Head<T>(string, RequestOptions, IReadableConfiguration)
Executes a blocking call to some path
using the HEAD http verb.
Declaration
ApiResponse<T> Head<T>(string path, RequestOptions options, IReadableConfiguration configuration = null)
Parameters
Type | Name | Description |
---|---|---|
string | path | The relative path to invoke. |
RequestOptions | options | The request parameters to pass along to the client. |
IReadableConfiguration | configuration | Per-request configurable settings. |
Returns
Type | Description |
---|---|
ApiResponse<T> | The response data, decorated with ApiResponse<T> |
Type Parameters
Name | Description |
---|---|
T | The return type. |
Options<T>(string, RequestOptions, IReadableConfiguration)
Executes a blocking call to some path
using the OPTIONS http verb.
Declaration
ApiResponse<T> Options<T>(string path, RequestOptions options, IReadableConfiguration configuration = null)
Parameters
Type | Name | Description |
---|---|---|
string | path | The relative path to invoke. |
RequestOptions | options | The request parameters to pass along to the client. |
IReadableConfiguration | configuration | Per-request configurable settings. |
Returns
Type | Description |
---|---|
ApiResponse<T> | The response data, decorated with ApiResponse<T> |
Type Parameters
Name | Description |
---|---|
T | The return type. |
Patch<T>(string, RequestOptions, IReadableConfiguration)
Executes a blocking call to some path
using the PATCH http verb.
Declaration
ApiResponse<T> Patch<T>(string path, RequestOptions options, IReadableConfiguration configuration = null)
Parameters
Type | Name | Description |
---|---|---|
string | path | The relative path to invoke. |
RequestOptions | options | The request parameters to pass along to the client. |
IReadableConfiguration | configuration | Per-request configurable settings. |
Returns
Type | Description |
---|---|
ApiResponse<T> | The response data, decorated with ApiResponse<T> |
Type Parameters
Name | Description |
---|---|
T | The return type. |
Post<T>(string, RequestOptions, IReadableConfiguration)
Executes a blocking call to some path
using the POST http verb.
Declaration
ApiResponse<T> Post<T>(string path, RequestOptions options, IReadableConfiguration configuration = null)
Parameters
Type | Name | Description |
---|---|---|
string | path | The relative path to invoke. |
RequestOptions | options | The request parameters to pass along to the client. |
IReadableConfiguration | configuration | Per-request configurable settings. |
Returns
Type | Description |
---|---|
ApiResponse<T> | The response data, decorated with ApiResponse<T> |
Type Parameters
Name | Description |
---|---|
T | The return type. |
Put<T>(string, RequestOptions, IReadableConfiguration)
Executes a blocking call to some path
using the PUT http verb.
Declaration
ApiResponse<T> Put<T>(string path, RequestOptions options, IReadableConfiguration configuration = null)
Parameters
Type | Name | Description |
---|---|---|
string | path | The relative path to invoke. |
RequestOptions | options | The request parameters to pass along to the client. |
IReadableConfiguration | configuration | Per-request configurable settings. |
Returns
Type | Description |
---|---|
ApiResponse<T> | The response data, decorated with ApiResponse<T> |
Type Parameters
Name | Description |
---|---|
T | The return type. |