2024-02-25 18:21:01 +03:30
|
|
|
|
using NetinaShop.Domain.Dtos.ResponseDtos;
|
|
|
|
|
|
|
|
|
|
|
|
namespace NetinaShop.AdminPanel.PWA.Services.RestServices;
|
2024-01-22 17:26:29 +03:30
|
|
|
|
|
|
|
|
|
|
public interface IUserRestApi
|
|
|
|
|
|
{
|
|
|
|
|
|
[Put("")]
|
|
|
|
|
|
Task UpdateUserAsync([Body]UserActionRequestDto request, [Header("Authorization")] string authorization);
|
2024-02-09 19:43:20 +03:30
|
|
|
|
[Post("")]
|
|
|
|
|
|
Task CreateUserAsync([Body] UserActionRequestDto request, [Header("Authorization")] string authorization);
|
|
|
|
|
|
|
2024-02-25 18:21:01 +03:30
|
|
|
|
[Get("/changelog")]
|
|
|
|
|
|
Task<AdminChangeLogResponseDto> GetChangeLogAsync([Header("Authorization")] string authorization);
|
|
|
|
|
|
|
2024-02-09 19:43:20 +03:30
|
|
|
|
[Get("/{id}")]
|
|
|
|
|
|
Task<ApplicationUserSDto> ReadOne(Guid id, [Header("Authorization")] string authorization);
|
|
|
|
|
|
[Get("")]
|
|
|
|
|
|
Task<List<ApplicationUserSDto>> ReadAll([Query] int page, [Header("Authorization")] string authorization);
|
|
|
|
|
|
[Get("")]
|
|
|
|
|
|
Task<List<ApplicationUserSDto>> ReadAll([Query] int page, [Query] string userPhone, [Header("Authorization")] string authorization);
|
2024-01-22 17:26:29 +03:30
|
|
|
|
}
|