2024-01-25 10:35:16 +05:00
|
|
|
using AsbCloudApp.Data;
|
2024-01-25 17:13:56 +05:00
|
|
|
using Microsoft.AspNetCore.Mvc;
|
2024-01-25 10:35:16 +05:00
|
|
|
using Refit;
|
|
|
|
|
|
|
|
namespace AsbCloudWebApi.IntegrationTests.Clients;
|
|
|
|
|
|
|
|
public interface IWellOperationClient
|
|
|
|
{
|
2024-01-25 15:56:34 +05:00
|
|
|
private const string BaseRoute = "/api/well/{idWell}/wellOperations";
|
|
|
|
|
|
|
|
[Post(BaseRoute + "/{idType}/{deleteBeforeInsert}")]
|
|
|
|
Task<IApiResponse<int>> InsertRangeAsync(int idWell, int idType, bool deleteBeforeInsert, [Body] IEnumerable<WellOperationDto> dtos);
|
2024-01-25 10:35:16 +05:00
|
|
|
|
2024-01-25 17:13:56 +05:00
|
|
|
[Put(BaseRoute + "/{idOperation}")]
|
|
|
|
Task<IApiResponse<int>> UpdateAsync(int idWell, int idOperation, [FromBody] WellOperationDto value, CancellationToken token);
|
|
|
|
|
2024-01-25 10:35:16 +05:00
|
|
|
}
|