Confluence内容REST api结果大小不匹配问题

时间:2015-03-27 18:35:14

标签: confluence confluence-rest-api

尝试confluence rest api来读取给定页面的评论 - 来自下面的休息调用,但是当添加expand (_expandable) body.view时它会给出不同的结果

总计:给定ID(某些页面ID)的评论为28

请求1)能够先获得25分,然后使用下一个链接获得3分 请求2)无法在第一次通话中获得25次


请求1:

/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": ""
    }

请求2:仅更改为添加展开

/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": ""
    }

有什么建议吗?

0 个答案:

没有答案