Forum Discussion

cike's avatar
cike
Champion
11 years ago

Getting all recent topics via REST API

Hi, I'm trying to modify the output of the recent topics component (in Studio it is named as "post-list") within the recent topics page with a custom component using the REST API and jQuery. Everyth...
  • HaidongG's avatar
    11 years ago

    Hi cike 

     

    you need to to specify a additional parameter named "page_size", e.g. "/topics/recent?restapi.response_style=view&page_size=100", otherwise, default page size, i.e. 25 will be used.  

     

    to get the next page, just pass another parameter "page", e.g.  "/topics/recent?restapi.response_style=view&page_size=100&page=2" will list topic #101 to topic #200.