?
avatar chetanmadaan
chetanmadaan
18 Jul 2020

Steps to reproduce the issue

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.

Expected result

Should have the value indicating if the article is featured or not and the Access Level Group ID for the Article as well.

Actual result

{
    "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
    }
}

System information (as much as possible)

Joomla 4 Beta 2

Additional comments

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

avatar chetanmadaan chetanmadaan - open - 18 Jul 2020
avatar joomla-cms-bot joomla-cms-bot - change - 18 Jul 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 18 Jul 2020
avatar richard67
richard67 - comment - 18 Jul 2020

Ping @alikon ?

avatar alikon alikon - change - 19 Jul 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-07-19 08:51:24
Closed_By alikon
avatar alikon
alikon - comment - 19 Jul 2020

please test #30134

avatar alikon alikon - close - 19 Jul 2020

Add a Comment

Login with GitHub to post a comment