trying confluence rest api to read comments for given page - from below rest calls but its giving different result when add expand (_expandable) body.view
Total : comment for given ID (some page id) is 28
Request 1) able to get 25 in first and rest 3 with next link Request 2) not able to get 25 in first call
Request 1:
/rest/api/content/ID/child/comment
Results:
{
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": ""
}
Request 2: only changed to add expand
/rest/api/content/ID/child/comment?expand=body.view
Results:
{
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": ""
}
Any suggestion why ?