Introduction to Fresns Client Channel Default Parameter Configuration
In the channel configuration settings, there is an option for "Default Parameters", which are configured in Query format (i.e., URL path parameters). If no configuration is set, the API defaults to a rule that typically outputs content in descending order based on the creation time.
Admin Panel -> Clients -> Channels
The official community's Moments theme template is configured as follows:
Discover -> Hot Hashtags
- Utilizes the "Hashtag List"
- Parameters:
orderType=post&orderDirection=desc
- This means the topics are arranged in descending order by the number of posts.
- API endpoint: https://docs.fresns.com/clients/api/hashtag/list.html
Discover -> Hot Users
- Utilizes the "User List"
- Parameters:
orderType=post&orderDirection=desc
- This indicates sorting users in descending order by their number of posts.
- API endpoint: https://docs.fresns.com/clients/api/user/list.html
Discover -> Digest Posts
- Utilizes the "Post List"
- Parameters:
allDigest=1&orderDirection=desc
- Represents all featured posts, sorted in descending order by time.
- API endpoint: https://docs.fresns.com/clients/api/post/list.html
Discover -> Hot Comments
- Utilizes the "Comment List"
- Parameters:
createDate=month&orderType=like&orderDirection=desc
- Indicates comments made this month, sorted in descending order by likes.
- API endpoint: https://docs.fresns.com/clients/api/comment/list.html
Sidebar
- Hot: Uses the "Post List Page"
- Recommend: Links to the "User Home Page"
Client Parameter Passing Description
- No client parameters accepted: Whatever default parameters you configure will be displayed, and users cannot modify them through URL parameters, such as displaying only ten items.
- Accept client paging parameters only: Users can only paginate; they cannot modify the result rules through path parameters.
- Accept all parameters: Based on your default parameters, users can also change the result rules by passing parameters in the URL, such as viewing a user list sorted by the number of followers in descending order.
https://discuss.fresns.org/post/NTBRTFwa