Discussion forum is library and can be attached to any application. Before integrating we have to verify following things
Application should maintain cache.
Discussion forum uid have to be stored in cache.
Uid need to attach for all discussion forum apis as a query param link ?_uid=${discussionForum_uid}.
Add discussion for a context
We can attach discussion forum for any context like Groups/Courses/Batchs/Textbooks…etc.
Before attaching discussion forum we have to create one parent category and for context have one parent category. So that we can have all group context under one parent similarly for course, textbook.
You can see below image. Discussion forum for Groups is a parent category and all group related discussion forums are under that category.
You can see “+“ icon at right side bottom, click on that, It will open a popup. Enter Category name and click on Save. It will create a category “Covid 19 Guidelines”
Step:3
Click on Discussion forum for groups, You will category ID in url bar. Use that category id as a PID.
And update the form api by replacing the PID in payload.
{
"category": {
"name": "General Discussion", // Name of the category
"pid": "30", // parent category id, under this category we are creating new categories
"description": "", // category description: Optional
"context": [
{
"type": "group", // type as a group
"identifier": "bc190919-f9a4-4e8a-a48b-2bba9c0b827f" // group Id
}
]
}
}
n the above response we have newCid that is the category id which is created for the group context that we pass in the request. So whet ever the discussions happened in the group are present in the discussion forum category.