jaikumar1
8 years agoMentor
How to find REST api result sets
Hi, I need to display latest topic with number of views, kudos, replies and ratings in the custom component. I just checked and found an API rest("threads/recent?restapi.response_style=view&page_...
- 8 years ago
You can hit the API in the browser to check the result of V1 API.
Here is the API documentation(V1 &V2)
https://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal
- 8 years ago
You basically enter the following URL in your browser: https://<your.community.url>/restapi/vc/threads/recent?restapi.response_style=view&page_size=6 (if you prefer a JSON output add &restapi.response_format=json to the URL) to see the output, from there you have to go down the rabbit hole of the different properties of the returned object/node(s) and read them with FreeMarker, note that attribute values are referenced with object.item.@attribute...
regarding the docs, check the link above.