-
Print
-
DarkLight
GET/articles/{id}/{langcode}/versions
Gets all article versions in respective language
Header
Parameter | Type | Description |
---|---|---|
api_token | string | REST API key you can get it from Settings > API. |
Route Parameters
Parameter | Type | Description |
---|---|---|
id | string | ID of the article |
langcode | string | Language code for multilingual (Default value is en) |
Response
{
"data": [
{
"version_number": 1,
"created_by": "Daniel Szweda",
"created_at": "2018-10-19T09:39:16.844Z",
"modified_at": "2018-10-19T09:39:18.755Z",
"base_version": 0,
"status": 0,
"profile_url": "https://s.gravatar.com/avatar/1b7c898ca4afb6c3ca5b7ccf89adc5a9.png"
},
{
"version_number": 2,
"created_by": "Daniel Szweda",
"created_at": "2018-10-25T09:43:09.273Z",
"modified_at": "2018-10-31T14:47:27.577Z",
"base_version": 1,
"status": 0,
"profile_url": "https://s.gravatar.com/avatar/1b7c898ca4afb6c3ca5b7ccf89adc5a9.png"
},
{
"version_number": 3,
"created_by": "Daniel Szweda",
"created_at": "2018-11-05T12:26:38.66Z",
"modified_at": "2018-11-12T15:25:22.104Z",
"base_version": 2,
"status": 0,
"profile_url": "https://s.gravatar.com/avatar/1b7c898ca4afb6c3ca5b7ccf89adc5a9.png"
}
],
"extension_data": null,
"context": null,
"success": true,
"errors": [],
"warnings": [],
"information": []
}
Response Data
Parameter | Type | Description |
---|---|---|
version_number | number | The version number of the article |
created_by | string | Author name |
created_at | datetime | The date the version was created |
modified_at | datetime | Last time the version was modified |
base_version | number | The version number from which this version is derived |
status | enumerated | The status of the article: 0 - Draft, 3 - Published |
profile_url | string | Author profile image |
Was this article helpful?