Minhaj
(Minhaj Shakeel)
10.Июль.2020 11:06:39
1
Я хочу запросить tag_groups и назначить один из тегов из них теме, которую я создаю с помощью API Discourse. Я не могу найти это в документации по API, не могли бы вы мне подсказать.
osioke
(Osioke Itseuwa)
10.Июль.2020 11:08:11
2
Если вы не можете найти это в документации к API, вам придется провести реверс-инжиниринг API. Подробнее здесь:
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 …