DO a post request on
{{base_path}}/api/index.php/v1/content/article
We are assume the layout created using the API should be similar to the Joomla Article Manager, We don't have the Article Featured status, not the Article Access level.
Should have the value indicating if the article is featured or not and the Access Level Group ID for the Article as well.
{
"links": {
"self": "http://localhost/joomla4/api/index.php/v1/content/article"
},
"data": [
{
"type": "articles",
"id": "6",
"attributes": {
"id": 6,
"asset_id": 91,
"title": "Title of Article goes here",
"state": 1,
"created": "2020-07-18 10:47:32",
"language": "*",
"images": {
"image_intro": "",
"float_intro": "",
"image_intro_alt": "",
"image_intro_caption": "",
"image_fulltext": "",
"float_fulltext": "",
"image_fulltext_alt": "",
"image_fulltext_caption": ""
},
"metakey": "This is this",
"metadesc": "This",
"metadata": {
"robots": "noindex, follow",
"author": "Author",
"rights": "No Rights possible"
},
"typeAlias": "com_content.article",
"text": "My text ",
"tags": []
},
"relationships": {
"category": {
"data": {
"type": "categories",
"id": "8"
}
},
"author": {
"data": {
"type": "users",
"id": "815"
}
}
}
}
],
"meta": {
"total-pages": 1
}
}
Joomla 4 Beta 2
It's possible to add feature 1 to the Create/UPDATE api however it's not useful if the the API doesn't tell an article is already featured or not.
Related to issues: #30130
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-07-19 08:51:24 |
Closed_By | ⇒ | alikon |
Ping @alikon?