Discourse API 是什么?

我想了解 Discourse API。什么是 Discourse API?有人能给我解释一下吗?我的网站上是否有 Discourse API?
链接:Ders.co

1 个赞

Discourse API 用于在后台的 Ruby on Rails Discourse 应用程序与前端 Discourse JavaScript 之间传递数据。所有 Discourse 站点均可使用该 API。

您网站上 API 的一个简单示例是访问以下 URL:https://ders.co/latest.json。它会显示用于生成您站点最新主题列表的 JSON 数据。您可以通过向 https://ders.co/latest.json 发出 GET 请求,在另一个站点上使用这些数据。您可以利用该请求返回的数据,在另一个站点上重建最新主题列表。

有关 Discourse API 的详细信息,请参阅以下主题:

您还可以在此处找到有关 Discourse API 的详细信息:https://docs.discourse.org/。

3 个赞

非常感谢 @simon,我现在已经检查过了。这个社区将帮助我改进我的网站。

3 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.