2024-05-07 11:01:57 +03:30
|
|
|
|
namespace Netina.AdminPanel.PWA.Services.RestServices;
|
2024-01-28 20:51:50 +03:30
|
|
|
|
|
|
|
|
|
|
public interface IProductRestApi
|
|
|
|
|
|
{
|
2024-08-06 12:38:57 +03:30
|
|
|
|
[Put("/{productId}/displayed")]
|
2024-02-22 20:34:52 +03:30
|
|
|
|
Task<bool> ChangeDisplayedAsync(Guid productId, [Query]bool beDisplayed, [Header("Authorization")]string authorization);
|
2024-01-28 20:51:50 +03:30
|
|
|
|
|
2024-08-06 12:38:57 +03:30
|
|
|
|
[Put("/{productId}/cost")]
|
|
|
|
|
|
Task<bool> ChangeCostAsync(Guid productId, [Query] double cost, [Header("Authorization")] string authorization);
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-02-17 15:39:59 +03:30
|
|
|
|
[Get("/{productId}")]
|
|
|
|
|
|
Task<GetProductResponseDto> ReadOne(Guid productId);
|
2024-02-22 20:34:52 +03:30
|
|
|
|
|
2024-12-18 02:14:07 +03:30
|
|
|
|
[Get("/{productId}/sub")]
|
|
|
|
|
|
Task<List<SubProductSDto>> GetSubProductsAsync(Guid productId);
|
|
|
|
|
|
|
2024-01-28 20:51:50 +03:30
|
|
|
|
[Get("")]
|
2024-08-10 20:35:38 +03:30
|
|
|
|
Task<GetProductsResponseDto> ReadAll([Query] string productName, [Header("Authorization")] string authorization);
|
2024-02-22 20:34:52 +03:30
|
|
|
|
|
2024-01-28 20:51:50 +03:30
|
|
|
|
[Get("")]
|
2024-08-10 20:35:38 +03:30
|
|
|
|
Task<GetProductsResponseDto> ReadAll([Query] int page, [Query] string? productName, [Query] Guid? categoryId, [Query] bool? isActive, [Header("Authorization")] string authorization);
|
2024-02-22 20:34:52 +03:30
|
|
|
|
|
2024-02-04 16:52:32 +03:30
|
|
|
|
[Get("")]
|
2024-04-14 12:38:16 +03:30
|
|
|
|
Task<GetProductsResponseDto> ReadAll([Query] string productName, [Query] Guid categoryId, [Header("Authorization")] string authorization);
|
2024-01-28 20:51:50 +03:30
|
|
|
|
}
|