Class TagPublicController
Inheritance
TagPublicController
Inherited Members
Namespace: Volo.CmsKit.Public.Tags
Assembly: Volo.CmsKit.Public.HttpApi.dll
Syntax
[RequiresFeature(new string[] { "CmsKit.TagEnable" })]
[RequiresGlobalFeature(typeof(TagsFeature))]
[RemoteService(true, Name = "CmsKitPublic")]
[Area("cms-kit")]
[Route("api/cms-kit-public/tags")]
public class TagPublicController : CmsKitPublicControllerBase, IAvoidDuplicateCrossCuttingConcerns, ITagAppService, IApplicationService, IRemoteService
Constructors
TagPublicController(ITagAppService)
Declaration
public TagPublicController(ITagAppService tagAppService)
Parameters
Type | Name | Description |
---|---|---|
ITagAppService | tagAppService |
Properties
TagAppService
Declaration
protected ITagAppService TagAppService { get; }
Property Value
Type | Description |
---|---|
ITagAppService |
Methods
GetAllRelatedTagsAsync(string, string)
Declaration
[HttpGet]
[Route("{entityType}/{entityId}")]
public Task<List<TagDto>> GetAllRelatedTagsAsync(string entityType, string entityId)
Parameters
Type | Name | Description |
---|---|---|
string | entityType | |
string | entityId |
Returns
Type | Description |
---|---|
Task<List<TagDto>> |
GetPopularTagsAsync(string, int)
Declaration
[HttpGet]
[Route("popular/{entityType}/{maxCount:int}")]
public Task<List<PopularTagDto>> GetPopularTagsAsync(string entityType, int maxCount)
Parameters
Type | Name | Description |
---|---|---|
string | entityType | |
int | maxCount |
Returns
Type | Description |
---|---|
Task<List<PopularTagDto>> |