14 lines
455 B
C#
14 lines
455 B
C#
|
|
namespace Netina.AdminPanel.PWA.Services.RestServices;
|
|||
|
|
|
|||
|
|
public interface IPageRestApi
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
[Get("/type/{type}")]
|
|||
|
|
Task<BasePageSDto> ReadByType([Query] string type, [Header("Authorization")] string authorization);
|
|||
|
|
|
|||
|
|
[Get("/{id}")]
|
|||
|
|
Task<BasePageSDto> ReadById(Guid id, [Header("Authorization")] string authorization);
|
|||
|
|
|
|||
|
|
[Post("")]
|
|||
|
|
Task CreatePage([Body] PageActionRequestDto request, [Header("Authorization")] string authorization);
|
|||
|
|
}
|