This is how SP presents Version History:
I use this URL to get file history:
http://portal:34798/Documents/_api/Web/GetFileByServerRelativeUrl('/Documents/Documents/Tests/Tests_TextFile.txt')/Versions
Server response is a collection of objects:
{
"__metadata": {
"id": "http:\/\/portal:34798\/Documents\/_api\/SP.FileVersionc5f4d85f-501a-421b-a3cb-446f090daa15",
"uri": "http:\/\/portal:34798\/Documents\/_api\/SP.FileVersionc5f4d85f-501a-421b-a3cb-446f090daa15",
"type": "SP.FileVersion"
},
"CreatedBy": {
"__deferred": {
"uri": "http:\/\/portal:34798\/Documents\/_api\/SP.FileVersionc5f4d85f-501a-421b-a3cb-446f090daa15\/CreatedBy"
}
},
"CheckInComment": "88979",
"Created": "2014-08-20T11:17:14Z",
"ID": 2048,
"IsCurrentVersion": false,
"Size": 10,
"Url": "_vti_history\/2048\/Documents\/Tests\/Tests_TextFile.txt",
"VersionLabel": "4.0"
}
Approval Status information is missing in response. Question is how to get Approval Status for Version History items?