文章 List Comment REST 端点

URLs

GET api/v1/comments.xml (or .json)

LIST comments.

请求参数

名称

类型

描述

必需

默认值

选项

CommentIds

string

Comma separated list of Comment Ids. Used to filter comments and sort order if SoryBy is set to CommentIdsOrder

ContentId

Guid?

Content identifier

ContentUrl

string

Content url

ContainerId

Guid?

Content container identifier

IncludeSubContainers

bool?

Include sub containers

ApplicationId

Guid?

Content application identifier

ContentTypeId

Guid?

Content type identifier

UserId

int?

User identifier

CommentTypeId

Guid?

Categorization type

SortBy

string

Sort by CommentId, ParentCommentId, CommentTypeId, CreatedUtcDate, CreatedUserId, LastUpdatedUtcDate, LastUpdatedUserId, Body, FormattedBody, SortOrder, IpAddress, IsApproved, IsFeatured, ContainerId, ApplicationId, ContentTypeId, NodeId, ContentId, Score:SCORE_ID, CommentIdsOrder

SortOrder

string

Sort order 'Ascending' or 'Descending'

IsApproved

bool?

Approval status

IsFeatured

bool?

Feature state

IncludeChildren

bool?

Include child comments. False by default.

PageSize

int?

Page size to retrieve

PageIndex

int?

Page index to retrieve

ParentCommentId

Guid?

Parent comment Id

PostTarget

string

Do not document this property.