2024-02-17 15:39:59 +03:30
|
|
|
|
namespace NetinaShop.AdminPanel.PWA.Services.RestServices;
|
|
|
|
|
|
|
|
|
|
|
|
public interface IPageRestApi
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
[Get("/type/{type}")]
|
2024-04-03 10:40:42 +03:30
|
|
|
|
Task<BasePageSDto> ReadByType([Query] string type, [Header("Authorization")] string authorization);
|
2024-02-17 15:39:59 +03:30
|
|
|
|
|
|
|
|
|
|
[Get("/{id}")]
|
2024-04-03 10:40:42 +03:30
|
|
|
|
Task<BasePageSDto> ReadById(Guid id, [Header("Authorization")] string authorization);
|
2024-02-17 15:39:59 +03:30
|
|
|
|
|
|
|
|
|
|
[Post("")]
|
|
|
|
|
|
Task CreatePage([Body] PageActionRequestDto request, [Header("Authorization")] string authorization);
|
|
|
|
|
|
}
|