hi
i have a question about joomla webservice
joomla return relationships object in web service like belowi 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
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 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