ProyectoGrupal/dolibarr-bff/DoliMiddlewareApi/Services/Clients/IDolibarrApiClient.cs

12 lines
442 B
C#
Raw Permalink Normal View History

namespace DoliMiddlewareApi.Services.Clients;
public interface IDolibarrApiClient
{
Task<T> GetResourceAsync<T>(string endpoint) where T : class;
Task<List<T>> GetCollectionAsync<T>(string endpoint) where T : class;
Task<string> PostAsync(string endpoint, object requestBody);
Task<string> PutAsync(string endpoint, object requestBody);
Task DeleteAsync(string endpoint);
Task<string> GetAsyncRaw(string endpoint);
}