Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Recently i have started using Umbraco Rest API so third party applications can use these Apis to get the content from CMS. But i am facing two issues on the content API response.
1) I am not getting full src image path in content API response. How can i add my root url(i.e. ex. http://www.example.com/) to all the images src in content api response. Please find the below screenshot reference(i.e. UmbracoRestApi_1.png)
2) I have added two properties to my document type(i.e. One is Media picker & another is Content picker). But when use the content API i am getting some GUID number. Can we get the "IPublishContent" fields instead of GUID in Content API. Please find the below screenshot reference(i.e. UmbracoRestApi_0.png)
you are supplied the media unique GUID (or the integer ID in older versions).
you need to use this to call the API and retrieve the data for that media item.
we built our own wrapper over the API to make changes like this so full pages and nested content can be consumed as a json object.
Thanks for your reply,
Can you please provide any sample example of your wrapper class? So that it will be helpful for me to understand clearly.
Have you got any solution to this issue.I am also facing same issue.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted