18 lines
545 B
C#
18 lines
545 B
C#
using NetinaShop.Domain.Dtos.ResponseDtos;
|
|
|
|
namespace NetinaShop.AdminPanel.PWA.Services.RestServices;
|
|
|
|
public interface IProductRestApi
|
|
{
|
|
|
|
[Get("")]
|
|
Task<GetProductsResponseDto> ReadAll();
|
|
[Get("/{productId}")]
|
|
Task<GetProductResponseDto> ReadOne(Guid productId);
|
|
[Get("")]
|
|
Task<GetProductsResponseDto> ReadAll([Query] int page);
|
|
[Get("")]
|
|
Task<GetProductsResponseDto> ReadAll([Query] int page, [Query] string productName);
|
|
[Get("")]
|
|
Task<GetProductsResponseDto> ReadAll([Query] string productName);
|
|
} |