# API文档未跟上 tag 路由的最新更改

**URL:** https://meta.discourse.org/t/the-api-doc-is-not-up-to-date-with-the-latest-changes-in-the-tag-route/169414
**Category:** Development
**Tags:** rest-api
**Created:** [2020年十一月6日 10:28 UTC](https://meta.discourse.org/t/the-api-doc-is-not-up-to-date-with-the-latest-changes-in-the-tag-route/169414 "2020-11-06T10:28:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![syl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/syl/32/98883_2.png) [@syl](https://meta.discourse.org/u/syl)
#### Post date: [2020年十一月6日 10:28 UTC](https://meta.discourse.org/t/the-api-doc-is-not-up-to-date-with-the-latest-changes-in-the-tag-route/169414/1 "2020-11-06T10:28:14Z")

</div>

在 [此页面](https://docs.discourse.org/#tag/Tags/paths/~1tags~1%7Btag%7D/get) 上，我认为两处出现的 “tags” 应替换为 “tag”。

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/4/b403d22bee7091d9c8ad38f8cbdfae94f055f8b6.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2020年十一月6日 18:20 UTC](https://meta.discourse.org/t/the-api-doc-is-not-up-to-date-with-the-latest-changes-in-the-tag-route/169414/2 "2020-11-06T18:20:13Z")

</div>

好的，抄送 @blake，这个由你来处理可以吗？

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [2020年十一月10日 03:59 UTC](https://meta.discourse.org/t/the-api-doc-is-not-up-to-date-with-the-latest-changes-in-the-tag-route/169414/5 "2020-11-10T03:59:57Z")

</div>

啊，没错，旧的 `tags` 路由最近已更改

> <https://github.com/discourse/discourse/commit/3c51647872b4118c5f6139c375fd8e4079bc7252>
>
> \* DEV: Remove client-side legacy tag and category routes
> 
> \* DEV: Remove server…-side legacy tag routes
> 
> \* DEV: Refactor ListController#set\_category
> 
> \* FIX: Remove reference to discovery.parentCategory
> 
> \* FIX: Refactor TagsController#set\_category\_from\_params
> 
> \* FIX: Build correct canonical URL for tags and categories
> 
> \* DEV: Fix deprecation notice in Ruby 2.7
> 
> \* DEV: Replace use of removed legacy tag route
> 
> \* DEV: Add deprecation notices for old routes and controllers

我已更新了 API 文档。

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [2020年十一月10日 04:00 UTC](https://meta.discourse.org/t/the-api-doc-is-not-up-to-date-with-the-latest-changes-in-the-tag-route/169414/6 "2020-11-10T04:00:34Z")

</div>


