2024-02-17 15:39:59 +03:30
|
|
|
|
using NetinaShop.Domain.Dtos.ResponseDtos;
|
|
|
|
|
|
|
|
|
|
|
|
namespace NetinaShop.AdminPanel.PWA.Services.RestServices;
|
2024-01-28 20:51:50 +03:30
|
|
|
|
|
|
|
|
|
|
public interface IProductRestApi
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
[Get("")]
|
2024-02-17 15:39:59 +03:30
|
|
|
|
Task<GetProductsResponseDto> ReadAll();
|
|
|
|
|
|
[Get("/{productId}")]
|
|
|
|
|
|
Task<GetProductResponseDto> ReadOne(Guid productId);
|
2024-01-28 20:51:50 +03:30
|
|
|
|
[Get("")]
|
2024-02-17 15:39:59 +03:30
|
|
|
|
Task<GetProductsResponseDto> ReadAll([Query] int page);
|
2024-01-28 20:51:50 +03:30
|
|
|
|
[Get("")]
|
2024-02-17 15:39:59 +03:30
|
|
|
|
Task<GetProductsResponseDto> ReadAll([Query] int page, [Query] string productName);
|
2024-02-04 16:52:32 +03:30
|
|
|
|
[Get("")]
|
2024-02-17 15:39:59 +03:30
|
|
|
|
Task<GetProductsResponseDto> ReadAll([Query] string productName);
|
2024-01-28 20:51:50 +03:30
|
|
|
|
}
|