Minhaj
(Minhaj Shakeel)
10 يوليو 2020، 11:06ص
1
أرغب في استعلام tag_groups وتعيين أحد العلامات منها للموضوع الذي أنشئه باستخدام واجهة برمجة تطبيقات Discourse. لم أستطع العثور على ذلك في وثائق الواجهة، هل يمكن لأحد أن يوجهني؟
osioke
(Osioke Itseuwa)
10 يوليو 2020، 11:08ص
2
إذا لم تتمكن من العثور عليه في وثائق واجهة برمجة التطبيقات، فستحتاج إلى هندسة واجهة برمجة التطبيقات بشكل عكسي، راجع هنا:
Discourse is backed by a complete JSON api. Anything you can do on the site you can also do using the JSON api.
The API is documented at docs.discourse.org . You can also use the discourse_api Ruby gem as a client library. However, not every endpoint is documented.
To determine how to do something with the JSON API here are some steps you can follow.
Example: recategorize a topic.
Go to a topic and start editing a category:
[image]
Open Chrome dev tools, switch to the Network tab, select …
3 إعجابات