using AsbCloudApp.Data; using AsbCloudApp.Data.WellOperation; using AsbCloudApp.Requests; using Microsoft.AspNetCore.Mvc; using Refit; namespace AsbCloudWebApi.IntegrationTests.Clients; public interface IWellOperationClient { private const string BaseRoute = "/api/well/{idWell}/wellOperations"; [Post(BaseRoute + "/{deleteBeforeInsert}")] Task> InsertRangeAsync(int idWell, bool deleteBeforeInsert, [Body] IEnumerable dtos); [Put(BaseRoute)] Task> UpdateRangeAsync(int idWell, [Body] IEnumerable dtos); [Get(BaseRoute)] Task>> GetPageOperationsAsync(int idWell, [Query] WellOperationRequestBase request); [Multipart] [Post(BaseRoute + "/parse/{idType}")] Task>> ParseAsync(int idWell, int idType, [AliasAs("file")] StreamPart file); [Get(BaseRoute + "/export")] Task> ExportAsync(int idWell, int idType); [Get(BaseRoute + "/template")] Task> GetTemplate(int idWell, int idType); [Get(BaseRoute + "/categories")] Task>> GetCategories(int idWell, bool includeParents, bool includeHidden); }