Headless architecture - I am able to see the content reference content fragment elements via graphql but while using HTTP asset API services, its giving only reference path information.
Could you anyone let me know is there any OOTB API is available to get content reference in asset api or we need to write a custom logic to iterate those content reference.
CF:
Graphql Response:
Assest API : Rest Call
Solved! Go to Solution.
Hi @sathyaprakash,
It's not available Out of the box in Assets API, As stated in the API Docs here "References are delivered as reference URLs".
Please check the Assets API documentation for content fragments.
Regards,
Nitesh
You can get more attributes out of Content Reference, but currently these are limited, like path, author, size etc.
Please see such sample queries below:
@krati_garg Thanks for your reply! My query here is how to get content reference elements in assets http api - localhost:4502/api/assets/my-project/en/team-alpha.json
@sathyaprakash Assets HTTP API is meant for CRUD operations. For Fetching such information, we need to use a Query Language and in case of Content Fragments, GraphQL is most apt.
Hi @sathyaprakash,
It's not available Out of the box in Assets API, As stated in the API Docs here "References are delivered as reference URLs".
Please check the Assets API documentation for content fragments.
Regards,
Nitesh
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies