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

10 lines
356 B
C#
Raw 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);
}