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-02-22 20:34:52 +03:30
|
|
|
|
[Put("/{productId}")]
|
|
|
|
|
|
Task<bool> ChangeDisplayedAsync(Guid productId, [Query]bool beDisplayed, [Header("Authorization")]string authorization);
|
2024-01-28 20:51:50 +03:30
|
|
|
|
|
2024-02-17 15:39:59 +03:30
|
|
|
|
[Get("/{productId}")]
|
|
|
|
|
|
Task<GetProductResponseDto> ReadOne(Guid productId);
|
2024-02-22 20:34:52 +03:30
|
|
|
|
|
2024-01-28 20:51:50 +03:30
|
|
|
|
[Get("")]
|
2024-04-14 12:38:16 +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-04-14 12:38:16 +03:30
|
|
|
|
Task<GetProductsResponseDto> ReadAll([Query] int page, [Query] string? productName, [Query] Guid? categoryId, [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
|
|
|
|
}
|