bhupen
11 years agoAdvisor
How to show recent post from a specific role?
Requirement 1:
As a user, I would like to see the most recent 5 posts from users with the role 'aux' . i.e. I have have a user 'abc' and he have the'aux' role. Now i want to show a list of most recent post from 'aux' role.
Requirement 2(Its a different from above requiement):
How do i show search module on top navigation?
Please suggest me some help for this.
Regards
Some how I created restAPI for this requirement. Now I need help to implement in FTL
Step 1.
Created following restAPI to consume the users from specific role:
/restapi/vc/roles/name/psnow/users
Step 2:
Save the user ids into some list and iterate them one by one to fetch the most latest post from them,
API to be used is as follows:
/restapi/vc/users/id/576931/posts/latest
Regards