# 获取我实例所有API端点的编程方式？

**URL:** <https://meta.discourse.org/t/programmatic-way-to-get-all-api-endpoints-for-my-instance/362648>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [2025年四月19日 23:59 UTC](https://meta.discourse.org/t/programmatic-way-to-get-all-api-endpoints-for-my-instance/362648 "2025-04-19T23:59:49Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jordan-violet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jordan-violet/32/281428_2.png) [@jordan-violet](https://meta.discourse.org/u/jordan-violet)\
**Post date:** [2025年四月21日 04:40 UTC](https://meta.discourse.org/t/programmatic-way-to-get-all-api-endpoints-for-my-instance/362648/4 "2025-04-21T04:40:02Z")

</div>

Simon，感谢您的回复！我熟悉 [docs.discourse.org](http://docs.discourse.org)（有趣的是，它并非官方文档，而是 API 规范）。

我也熟悉使用浏览器控制台捕获请求以及浏览 routes.rb 文件。

正如您所能想象的——上述两种方法都非常繁琐，而且不太用户友好。对于我们这些希望快速构建深度集成的人来说——尤其是当我们的公司有其他团队或第三方供应商想要集成时……告诉他们做上述事情，回应非常糟糕。

虽然我了解 Discourse 功能的灵活性，但开发或集成该平台至少可以说是一场艰苦的战斗。作为最后的努力，我希望可能有一种以编程方式聚合公共 API 的方法。

---

_[View the full topic](https://meta.discourse.org/t/programmatic-way-to-get-all-api-endpoints-for-my-instance/362648)._
