persistence/DD.Persistence.Client/Clients/Interfaces/Refit/IRefitDataSourceSystemClient.cs
Оля Бизюкова 4ec4ec17eb
Some checks failed
Unit tests / test (push) Failing after 1m11s
Пуш изменений в проекте с интеграционными тестами
2024-12-27 00:37:52 +05:00

15 lines
465 B
C#

using DD.Persistence.Models;
using Refit;
namespace DD.Persistence.Client.Clients.Interfaces.Refit;
public interface IRefitDataSourceSystemClient : IRefitClient, IDisposable
{
private const string BaseRoute = "/api/dataSourceSystem";
[Get($"{BaseRoute}")]
Task<IApiResponse<IEnumerable<DataSourceSystemDto>>> Get(CancellationToken token);
[Post($"{BaseRoute}")]
Task<IApiResponse> Add(DataSourceSystemDto dataSourceSystemDto, CancellationToken token);
}