2023-12-29 11:46:17 +05:00
|
|
|
using AsbCloudApp.Data;
|
|
|
|
using Refit;
|
|
|
|
|
|
|
|
namespace AsbCloudWebApi.IntegrationTests.Clients;
|
|
|
|
|
|
|
|
public interface IAdminDepositClient
|
|
|
|
{
|
2024-07-04 11:02:45 +05:00
|
|
|
private const string BaseRoute = "/api/admin/deposit";
|
2023-12-29 11:46:17 +05:00
|
|
|
|
2024-07-04 11:02:45 +05:00
|
|
|
[Post(BaseRoute)]
|
|
|
|
Task<IApiResponse<int>> InsertAsync([Body] DepositBaseDto deposit);
|
2023-12-29 11:46:17 +05:00
|
|
|
|
2024-07-04 11:02:45 +05:00
|
|
|
[Post($"{BaseRoute}/range")]
|
|
|
|
Task<IApiResponse<int>> InsertRangeAsync([Body] IEnumerable<DepositBaseDto> deposits);
|
2023-12-29 11:46:17 +05:00
|
|
|
|
2024-07-04 11:02:45 +05:00
|
|
|
[Put($"{BaseRoute}")]
|
|
|
|
Task<IApiResponse<int>> UpdateAsync([Body] DepositBaseDto deposit);
|
2023-12-29 11:46:17 +05:00
|
|
|
|
2024-07-04 11:02:45 +05:00
|
|
|
[Get(BaseRoute + "/{id}")]
|
|
|
|
Task<IApiResponse<DepositBaseDto>> GetOrDefaultAsync(int id);
|
2023-12-29 11:46:17 +05:00
|
|
|
|
2024-07-04 11:02:45 +05:00
|
|
|
[Get(BaseRoute)]
|
|
|
|
Task<IApiResponse<IEnumerable<DepositBaseDto>>> GetAllAsync();
|
|
|
|
|
|
|
|
[Delete(BaseRoute + "/{id}")]
|
|
|
|
Task<IApiResponse<int>> DeleteAsync(int id);
|
2024-01-19 17:49:09 +05:00
|
|
|
}
|