using Microsoft.AspNetCore.Mvc; using DD.Persistence.Models; using Refit; namespace DD.Persistence.Client.Clients.Interfaces.Refit; public interface IRefitWitsDataClient : IDisposable { private const string BaseRoute = "/api/witsData"; [Get($"{BaseRoute}/{{discriminatorId}}/graph")] Task>> GetValuesForGraph(Guid discriminatorId, [Query] DateTimeOffset dateFrom, [Query] DateTimeOffset dateTo, [Query] int approxPointsCount, CancellationToken token); [Post($"{BaseRoute}/")] Task> AddRange(IEnumerable dtos, CancellationToken token); [Get($"{BaseRoute}/{{discriminatorId}}/part")] Task>> GetPart(Guid discriminatorId, [Query] DateTimeOffset dateBegin, [Query] int take = 24 * 60 * 60, CancellationToken token = default); [Get($"{BaseRoute}/{{discriminatorId}}/datesRange")] Task> GetDatesRangeAsync(Guid discriminatorId, CancellationToken token); }