Refactor Api-Client
Add Exceptionhandler, AlertService JSON-Converter AppSettings via DI Reformat Code
This commit is contained in:
10
Jugenddienst Stunden/Interfaces/IApiClient.cs
Normal file
10
Jugenddienst Stunden/Interfaces/IApiClient.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Jugenddienst_Stunden.Interfaces;
|
||||
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user