?
avatar chetanmadaan
chetanmadaan
17 Jul 2020

Steps to reproduce the issue

Doing a GET request for a single Article or Group of Articles doesn't return all the data.
In this case, I am going to specifically report Meta Data and Meta Desc.

Expected result

Should return all the data that's available in the UDPATE and CREATE API request.

Actual result

    "data": {
        "type": "articles",
        "id": "9",
        "attributes": {
            "typeAlias": "com_content.article",
            "id": 9,
            "asset_id": 110,
            "title": "Title of Article goes here",
            "state": 1,
            "created": "2020-07-10 13:55:11",
            "language": "*",
            "tags": {
                "2": "test",
                "3": "test2"
            },
            "text": "<p>My text</p> "
        },
        "relationships": {
            "category": {
                "data": {
                    "type": "categories",
                    "id": "8"
                }
            },
            "author": {
                "data": {
                    "type": "users",
                    "id": "30"
                }
            }
        }
    }

System information (as much as possible)

Joomla 4 Beta 2

Additional comments

You can update metadesc and metakey using API but you don't know what the value of those keys are in an existing article.

avatar chetanmadaan chetanmadaan - open - 17 Jul 2020
avatar joomla-cms-bot joomla-cms-bot - change - 17 Jul 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 17 Jul 2020
avatar Quy Quy - change - 17 Jul 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-07-17 16:48:58
Closed_By Quy
avatar Quy
Quy - comment - 17 Jul 2020

Please see #27569

avatar Quy Quy - close - 17 Jul 2020
avatar chetanmadaan
chetanmadaan - comment - 17 Jul 2020

Thank YOU! sorry for not searching earlier.

avatar alikon
alikon - comment - 18 Jul 2020

@chetanmadaan please test #30134

avatar chetanmadaan
chetanmadaan - comment - 18 Jul 2020

Roger that! Give me a few hours please.

avatar chetanmadaan
chetanmadaan - comment - 18 Jul 2020

Hi @alikon I had a look and it looks good. Get's us what we need.

Before:
image

After:
image

Thank You!

avatar alikon
alikon - comment - 18 Jul 2020

please mark successfully tested on https://issues.joomla.org/tracker/joomla-cms/30134

avatar chetanmadaan
chetanmadaan - comment - 18 Jul 2020

Done deal!

avatar chetanmadaan
chetanmadaan - comment - 18 Jul 2020

I see some other limitations in the API, I'll be adding different todo for them all :).

Add a Comment

Login with GitHub to post a comment