2026-01-03 13:57:23 +00:00
|
|
|
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);
|
2026-02-05 13:33:03 +00:00
|
|
|
Task DeleteAsync(string endpoint);
|
feat: add Contacts & Setup controllers, extend Clients/Invoices/Document controllers
- ContactsController: full CRUD (list, get, get by email, create, update, delete)
- SetupController: dictionary endpoints (payment-types, countries, civilities,
contact-types, payment-terms, company)
- ClientsController: added GET/{id}, POST, PUT/{id}, DELETE/{id}
- InvoicesController: added PUT/{id}/lines/{lineId}, GET /templates
- DocumentController: added GET /list and GET /download endpoints
- ClientService: added GetClientAsync, CreateClientAsync, UpdateClientAsync,
DeleteClientAsync
- InvoiceService: added UpdateInvoiceLineAsync, GetInvoiceTemplatesAsync
- DocumentService: added GetDocumentsAsync, DownloadDocumentAsync (using
new GetAsyncRaw on IDolibarrApiClient)
- ContactService: new service with CRUD operations
- SetupService: new service for Dolibarr dictionary data
- IDolibarrApiClient: added GetAsyncRaw method for raw string responses
- DolibarrApiClient: implemented GetAsyncRaw
- JwtTokenProvider: extended token expiry from 30 min to 8 hours
- AuthApplicationService: extended Dolibarr token cache from 30 min to 8 hours
2026-05-15 16:58:35 +00:00
|
|
|
Task<string> GetAsyncRaw(string endpoint);
|
2026-01-03 13:57:23 +00:00
|
|
|
}
|