Replies: 2 comments 2 replies
-
Hi @joffinjoy
|
Beta Was this translation helpful? Give feedback.
-
Hello @joffinjoy
We can use the API
{
|
Beta Was this translation helpful? Give feedback.
-
Hi @joffinjoy
|
Beta Was this translation helpful? Give feedback.
-
Hello @joffinjoy
We can use the API
{
|
Beta Was this translation helpful? Give feedback.
-
With regard to: https://github.com/orgs/Sunbird-inQuiry/discussions/8#discussioncomment-3160667
We want to leverage discussion forum APIs for a review comment functionality (for questionSets) in Sunbird coKreat BB. As such we have few queries regarding the same.
As mentioned in the above linked comment, Hierarchy in discussion forum is suggested to be category -> forum -> topic -> posts, but in the Sunbird Lern Discussion Forum Features/Core Capabilities page (https://lern.sunbird.org/learn/product-and-developer-guide/discussion-forum/features-core-capabilities) the exact hierarchy isn't shown, as in, the forum is missing from the image posted. So we are confused about the exact hierarchy and how each layer interact with each other. The page hints at the idea of having multiple categories and multiple discussions under forums. So wouldn't the forum be at the top of the hierarchy?
Next one is regarding the users in discussion forums. The above linked comment do mention users and privileges. But can a user create a post without having to create an account in nodeBB? Meaning, can we pass the simple userId along with the post creation APIs and they are stored without any nodeBB-specific context.
What we have found is that in-order for a user to be created in nodeBB, we have to first use the creation API which takes in the username/email and password etc (Which leverages nodeBB write-API). But in our use-case, we can't do this since the discussion APIs are abstracted away from the user. The user shouldn't have to signup anywhere (That too for a second time) just to just add reviewer and creator comments. How do we tackle this requirement?
And at what layer do we add users? Category or Forums or Topics? And can user make a post without being added to any of the above layers first?
Third question is regarding the custom tags. Can we fetch posts/categories/topics etc by the user created custom tags that are attached with them? This wasn't clear from the existing discussion APIs mentioned at https://lern.sunbird.org/learn/product-and-developer-guide/discussion-forum/api-documentation . And at what all layers can we attach tags?
The Sunbird Lern Discussion Forum Features/Core Capabilities page mentions replies to a post. And https://lern.sunbird.org/learn/product-and-developer-guide/discussion-forum/api-documentation/post-apis shows that both post creation and reply to post creation have the same endpoints and HTTP method. So are the replies just posts with mandatory toPid (Id of the parent post I presume)? And can this extend to any number of levels? (Post -> Reply -> Reply To Reply -> Reply... etc)
cc: @aks30 @vijiurs, @kiranharidas187 @aishwaryashikshalokam, @priyanka-TL, @VISHNUDAS-tunerlabs, @Shakthieshwari, @Prateek-slokam, @MeghnaSL, @githubpiyush @pradeepkumarcm96
Beta Was this translation helpful? Give feedback.
All reactions