# 从修订历史记录中提取或引用内容

**URL:** https://meta.discourse.org/t/pull-or-quote-content-from-within-the-revision-history/285477
**Category:** Development
**Tags:** rest-api
**Created:** [2023年十一月14日 20:24 UTC](https://meta.discourse.org/t/pull-or-quote-content-from-within-the-revision-history/285477 "2023-11-14T20:24:59Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2023年十一月14日 20:36 UTC](https://meta.discourse.org/t/pull-or-quote-content-from-within-the-revision-history/285477/2 "2023-11-14T20:36:12Z")

</div>

以下是可供您使用的可用端点：

- `/posts/<post_id>/revisions/latest.json` \[1\]
- `/posts/<post_id>/revisions/<revision_id>.json`

这应该会有所帮助！ 🙂  
一份可以帮助您确定所用 API 的指南可能对您也有用：

> [@Reverse engineer the Discourse API](https://meta.discourse.org/t/reverse-engineer-the-discourse-api/20576):
>
> Discourse is backed by a complete JSON api. Anything you can do on the site you can also do using the JSON api. Many of the endpoints are properly documented in the [discourse\_api](https://github.com/discourse/discourse_api) gem, however some endpoints lack documentation. 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: Open Chrome dev tools, switch to the Network tab, select XHR filter: Perform the op…

* * *

1.

---

_[View the full topic](https://meta.discourse.org/t/pull-or-quote-content-from-within-the-revision-history/285477)._
