Minhaj
(Minhaj Shakeel)
10. Juli 2020 um 11:06
1
Ich möchte tag_groups abfragen und eines der Tags daraus dem Thema zuweisen, das ich über die Discourse-API erstelle. Ich kann dies in der API-Dokumentation nicht finden. Kann mir jemand weiterhelfen?
osioke
(Osioke Itseuwa)
10. Juli 2020 um 11:08
2
Wenn Sie es in der API-Dokumentation nicht finden können, müssen Sie die API reverse-engineern. Weitere Informationen finden Sie hier:
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 „Gefällt mir“