Class IdentityRoleController
Inheritance
IdentityRoleController
Implements
IApplicationService
IRemoteService
Assembly: Volo.Abp.Identity.Pro.HttpApi.dll
Syntax
[Area("identity")]
[Route("api/identity/roles")]
public class IdentityRoleController : AbpControllerBase, IIdentityRoleAppService, ICrudAppService<IdentityRoleDto, Guid, GetIdentityRoleListInput, IdentityRoleCreateDto, IdentityRoleUpdateDto>, ICrudAppService<IdentityRoleDto, IdentityRoleDto, Guid, GetIdentityRoleListInput, IdentityRoleCreateDto, IdentityRoleUpdateDto>, IReadOnlyAppService<IdentityRoleDto, IdentityRoleDto, Guid, GetIdentityRoleListInput>, IApplicationService, IRemoteService, ICreateUpdateAppService<IdentityRoleDto, Guid, IdentityRoleCreateDto, IdentityRoleUpdateDto>, ICreateAppService<IdentityRoleDto, IdentityRoleCreateDto>, IUpdateAppService<IdentityRoleDto, Guid, IdentityRoleUpdateDto>, IDeleteAppService<Guid>
Constructors
IdentityRoleController(IIdentityRoleAppService)
Declaration
public IdentityRoleController(IIdentityRoleAppService roleAppService)
Parameters
Properties
RoleAppService
Declaration
protected IIdentityRoleAppService RoleAppService { get; }
Property Value
Methods
CreateAsync(IdentityRoleCreateDto)
Declaration
[HttpPost]
public virtual Task<IdentityRoleDto> CreateAsync(IdentityRoleCreateDto input)
Parameters
Returns
DeleteAsync(Guid)
Declaration
[HttpDelete]
[Route("{id}")]
public virtual Task DeleteAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
GetAllClaimTypesAsync()
Declaration
[HttpGet]
[Route("all-claim-types")]
public virtual Task<List<ClaimTypeDto>> GetAllClaimTypesAsync()
Returns
GetAllListAsync()
Declaration
[HttpGet]
[Route("all")]
public virtual Task<ListResultDto<IdentityRoleDto>> GetAllListAsync()
Returns
GetAsync(Guid)
Declaration
[HttpGet]
[Route("{id}")]
public virtual Task<IdentityRoleDto> GetAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
GetClaimsAsync(Guid)
Declaration
[HttpGet]
[Route("{id}/claims")]
public virtual Task<List<IdentityRoleClaimDto>> GetClaimsAsync(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
Declaration
[HttpGet]
[Route("")]
public virtual Task<PagedResultDto<IdentityRoleDto>> GetListAsync(GetIdentityRoleListInput input)
Parameters
Returns
MoveAllUsersAsync(Guid, Guid?)
Declaration
[HttpPut]
[Route("{id}/move-all-users")]
public virtual Task MoveAllUsersAsync(Guid id, Guid? roleId)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Guid? |
roleId |
|
Returns
UpdateAsync(Guid, IdentityRoleUpdateDto)
Declaration
[HttpPut]
[Route("{id}")]
public virtual Task<IdentityRoleDto> UpdateAsync(Guid id, IdentityRoleUpdateDto input)
Parameters
Returns
UpdateClaimsAsync(Guid, List<IdentityRoleClaimDto>)
Declaration
[HttpPut]
[Route("{id}/claims")]
public virtual Task UpdateClaimsAsync(Guid id, List<IdentityRoleClaimDto> input)
Parameters
Returns
Implements
Volo.Abp.Application.Services.ICrudAppService<,,,,>
Volo.Abp.Application.Services.ICrudAppService<,,,,,>
Volo.Abp.Application.Services.IReadOnlyAppService<,,,>
Volo.Abp.Application.Services.IApplicationService
Volo.Abp.IRemoteService
Volo.Abp.Application.Services.ICreateUpdateAppService<,,,>
Volo.Abp.Application.Services.ICreateAppService<,>
Volo.Abp.Application.Services.IUpdateAppService<,,>
Volo.Abp.Application.Services.IDeleteAppService<>