26 lines
973 B
C#
26 lines
973 B
C#
using Persistence.Models;
|
||
using Refit;
|
||
|
||
namespace Persistence.IntegrationTests.Clients
|
||
{
|
||
/// <summary>
|
||
/// Интерфейс для тестирования API, предназначенного для работы с уставками
|
||
/// </summary>
|
||
public interface ISetpointClient
|
||
{
|
||
private const string BaseRoute = "/api/setpoint";
|
||
|
||
[Get($"{BaseRoute}/current")]
|
||
Task<IApiResponse<IEnumerable<SetpointValueDto>>> GetCurrent([Query(CollectionFormat.Multi)] IEnumerable<Guid> setpointKeys);
|
||
|
||
[Get($"{BaseRoute}/history")]
|
||
Task<IApiResponse<IEnumerable<SetpointValueDto>>> GetHistory([Query(CollectionFormat.Multi)] IEnumerable<Guid> setpointKeys, [Query] DateTimeOffset historyMoment);
|
||
|
||
[Get($"{BaseRoute}/log")]
|
||
Task<IApiResponse<Dictionary<Guid, IEnumerable<SetpointLogDto>>>> GetLog([Query(CollectionFormat.Multi)] IEnumerable<Guid> setpointKeys);
|
||
|
||
[Post($"{BaseRoute}/")]
|
||
Task<IApiResponse> Save(Guid setpointKey, object newValue);
|
||
}
|
||
}
|