Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1712

Joomla! 5.x Coding • get relationship data in webservice

$
0
0
hi
i have a question about joomla webservice
joomla return relationships object in web service like below

Code:

            "relationships": {                "category": {                    "data": {                        "type": "categories",                        "id": "11"                    }                },                "created_by": {                    "data": {                        "type": "users",                        "id": "203"                    }                }            }
i want to get data of relationships for example category title or creator name
i know joomla uses Tobscure\JsonApi package and i search in internet and i realized that if in JsonApi add an include param to my url i can get data


like this:

/api/index.php/v1/content/articles/11?include=category

but this not work

can anybody can explain how to get relationships data from joomla witout send a new request


resources:
https://www.[[youtube]].com/watch?v=N-4prIh7t38

Statistics: Posted by babak_7x — Tue Jul 30, 2024 9:46 am



Viewing all articles
Browse latest Browse all 1712

Trending Articles