Class TagAdminController
Implements
Inherited Members
Namespace: Volo.CmsKit.Admin.Tags
Assembly: Volo.CmsKit.Admin.HttpApi.dll
Syntax
[RequiresFeature(new string[] { "CmsKit.TagEnable" })]
[RequiresGlobalFeature(typeof(TagsFeature))]
[RemoteService(true, Name = "CmsKitAdmin")]
[Area("cms-kit-admin")]
[Authorize("CmsKit.Tags")]
[Route("api/cms-kit-admin/tags")]
public class TagAdminController : CmsKitAdminController, IAvoidDuplicateCrossCuttingConcerns, ITagAdminAppService, ICrudAppService<TagDto, Guid, TagGetListInput, TagCreateDto, TagUpdateDto>, ICrudAppService<TagDto, TagDto, Guid, TagGetListInput, TagCreateDto, TagUpdateDto>, IReadOnlyAppService<TagDto, TagDto, Guid, TagGetListInput>, ICreateUpdateAppService<TagDto, Guid, TagCreateDto, TagUpdateDto>, ICreateAppService<TagDto, TagCreateDto>, IUpdateAppService<TagDto, Guid, TagUpdateDto>, IDeleteAppService<Guid>, IApplicationService, IRemoteService
Constructors
TagAdminController(ITagAdminAppService)
Declaration
public TagAdminController(ITagAdminAppService tagAdminAppService)
Parameters
Type | Name | Description |
---|---|---|
ITagAdminAppService | tagAdminAppService |
Properties
TagAdminAppService
Declaration
protected ITagAdminAppService TagAdminAppService { get; }
Property Value
Type | Description |
---|---|
ITagAdminAppService |
Methods
CreateAsync(TagCreateDto)
Declaration
[HttpPost]
[Authorize("CmsKit.Tags.Create")]
public Task<TagDto> CreateAsync(TagCreateDto input)
Parameters
Type | Name | Description |
---|---|---|
TagCreateDto | input |
Returns
Type | Description |
---|---|
Task<TagDto> |
DeleteAsync(Guid)
Declaration
[HttpDelete("{id}")]
[Authorize("CmsKit.Tags.Delete")]
public Task DeleteAsync(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id |
Returns
Type | Description |
---|---|
Task |
GetAsync(Guid)
Declaration
[HttpGet("{id}")]
[Authorize("CmsKit.Tags")]
public Task<TagDto> GetAsync(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id |
Returns
Type | Description |
---|---|
Task<TagDto> |
GetListAsync(TagGetListInput)
Declaration
[HttpGet]
[Authorize("CmsKit.Tags")]
public Task<PagedResultDto<TagDto>> GetListAsync(TagGetListInput input)
Parameters
Type | Name | Description |
---|---|---|
TagGetListInput | input |
Returns
Type | Description |
---|---|
Task<PagedResultDto<TagDto>> |
GetTagDefinitionsAsync()
Declaration
[HttpGet]
[Route("tag-definitions")]
public Task<List<TagDefinitionDto>> GetTagDefinitionsAsync()
Returns
Type | Description |
---|---|
Task<List<TagDefinitionDto>> |
UpdateAsync(Guid, TagUpdateDto)
Declaration
[HttpPut("{id}")]
[Authorize("CmsKit.Tags.Update")]
public Task<TagDto> UpdateAsync(Guid id, TagUpdateDto input)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | |
TagUpdateDto | input |
Returns
Type | Description |
---|---|
Task<TagDto> |