I want to access custom post data from external application by REST API.
I use rest api url like this: hidden link
But I can't find here relationship data with a custom post type "region"
I also can't find here multilingual data (all city posts also translated to Russian and German languages).
How could I access both relationship and multilingual data by REST API?
Hi,
Thank you for contacting us and I'd be happy to assist.
By default, the post-relationship data is not returned in the REST API calls.
( ref: https://toolset.com/documentation/programmer-reference/toolset-integration-with-the-rest-api/ )
But you can use Toolset's Relationship API functions to achieve that:
https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_get_related_posts
You'll find some good usage examples, in the following support forum threads:
https://toolset.com/forums/topic/relationship-in-api-rest/#post-1832713
https://toolset.com/forums/topic/relationship-in-api-rest-2/
I hope this helps and please let me know if you need further assistance.
regards,
Waqar