Forum Discussion

mayank's avatar
11 years ago

How can we fetch hyperlink of post via attribute using rest api

http://lithosphere.lithium.com/t5/rest-api/bd-p/developers-rest-api?page=apiresponse

 

Using ajax function how can we fetch full hyperlink of post.......so that we can link it...i have fetched latest post but i dont know how to fetch its hyperlink....please help

  • Hi mayank,

     

    usually by including the attribute

     

    restapi.response_style=view

    in a REST call, you are telling the engine that you want extra view attributes in the API response that can be used in the context of building a view. In this case, you will find that the posts have a view_href attribute that is the web link to that post.

     

    I am not sure what is the issue with your code as it seems chopped off.

     

    Thanks,