尝试confluence rest api来读取给定页面的评论 - 来自下面的休息调用,但是当添加expand (_expandable) body.view
时它会给出不同的结果
总计:给定ID(某些页面ID)的评论为28
请求1)能够先获得25分,然后使用下一个链接获得3分 请求2)无法在第一次通话中获得25次
/rest/api/content/ID/child/comment
结果:
{
results : [ from 1 to 25 ],
"start": 0,
"limit": 25,
"size": 25,
"_links": {
"self": "/rest/api/content/ID/child/comment?limit=25",
"next": "/rest/api/content/ID/child/comment?limit=25&start=25",
"base": "baseurl",
"context": ""
}
/rest/api/content/ID/child/comment?expand=body.view
结果:
{
results : [ from 1 to 0],
"start": 0,
"limit": 25,
"size": 20,
"_links": {
"self": "/rest/api/content/ID/child/comment?limit=25",
"next": "***0/***rest/api/content/ID/child/comment?limit=25&start=25",
"base": "baseurl",
"context": ""
}
有什么建议吗?