13 lines
546 B
C#
13 lines
546 B
C#
namespace Jugenddienst_Stunden.Interfaces;
|
|
|
|
/// <summary>
|
|
/// Defines methods for making HTTP requests to a specified API.
|
|
/// </summary>
|
|
internal interface IApiClient {
|
|
Task<T> GetAsync<T>(string path, IDictionary<string, string?>? query = null, CancellationToken ct = default);
|
|
|
|
Task<T> SendAsync<T>(HttpMethod method, string path, object? body = null,
|
|
IDictionary<string, string?>? query = null, CancellationToken ct = default);
|
|
|
|
Task DeleteAsync(string path, IDictionary<string, string?>? query = null, CancellationToken ct = default);
|
|
} |