Comments Reactions - List
获取注释的反应。
GET https://dev.azure.com/{organization}/{project}/_apis/wit/workItems/{workItemId}/comments/{commentId}/reactions?api-version=7.1-preview.1
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
comment
|
path | True |
integer int32 |
评论 ID |
organization
|
path | True |
string |
Azure DevOps 组织的名称。 |
project
|
path | True |
string |
项目 ID 或项目名称 |
work
|
path | True |
integer int32 |
WorkItem ID |
api-version
|
query | True |
string |
要使用的 API 版本。 应将其设置为“7.1-preview.1”才能使用此版本的 API。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
成功的操作 |
安全性
oauth2
类型:
oauth2
流向:
accessCode
授权 URL:
https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
令牌 URL:
https://app.vssps.visualstudio.com/oauth2/token?client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer
作用域
名称 | 说明 |
---|---|
vso.work | 授予读取工作项、查询、板、区域和迭代路径以及其他工作项跟踪相关元数据的能力。 此外,还允许通过服务挂钩执行查询、搜索工作项和接收有关工作项事件的通知。 |
定义
名称 | 说明 |
---|---|
Comment |
包含有关特定反应类型的工作项注释反应的信息。 |
Comment |
反应的类型。 |
Reference |
表示 REST 引用链接集合的类。 |
CommentReaction
包含有关特定反应类型的工作项注释反应的信息。
名称 | 类型 | 说明 |
---|---|---|
_links |
将引用链接到相关的 REST 资源。 |
|
commentId |
integer |
此反应所属的注释的 ID。 |
count |
integer |
CommentReactionType 的反应总数。 |
isCurrentUserEngaged |
boolean |
指示当前用户是否已参与此特定 EngagementType (例如,他们是否喜欢) 关联的注释的标志。 |
type |
反应的类型。 |
|
url |
string |
CommentReactionType
反应的类型。
值 | 说明 |
---|---|
confused | |
dislike | |
heart | |
hooray | |
like | |
smile |
ReferenceLinks
表示 REST 引用链接集合的类。
名称 | 类型 | 说明 |
---|---|---|
links |
object |
链接的只读视图。 由于引用链接是只读的,因此我们只想将其公开为只读。 |