Title: WP OpenAPI
Author: moon0326
Published: <strong>2022 年 7 月 27 日</strong>
Last modified: 2026 年 6 月 4 日

---

搜索插件

![](https://s.w.org/plugins/geopattern-icon/wp-openapi.svg)

# WP OpenAPI

 作者：[moon0326](https://profiles.wordpress.org/moon0326/)

[下载](https://downloads.wordpress.org/plugin/wp-openapi.1.0.29.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-openapi/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-openapi/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/wp-openapi/#developers)

 [支持](https://wordpress.org/support/plugin/wp-openapi/)

## 描述

WP OpenAPI is a WordPress plugin that generates OpenAPI 3.1.0 compatible documentation
for your WordPress REST APIs.

It has two main features.

 * Outputs OpenAPI 3.1.0 spec at /wp-json-openapi
 * Provides OpenAPI viewer using Stoplight’s awesome Elements viewer

You can also export your documentation as a single HTML to host it in a server easily.

See more details at https://github.com/moon0326/wp-openapi

## 屏幕截图

[⌊Main screen⌉⌊Main screen⌉[

Main screen

[⌊Try It enabled⌉⌊Try It enabled⌉[

Try It enabled

[⌊Callback discovery enabled⌉⌊Callback discovery enabled⌉[

Callback discovery enabled

## 评价

![](https://secure.gravatar.com/avatar/b7dff3c2fb7241559d4f77a46b4e17af38f4536098dc3b80619dfa8de548ecc0?
s=60&d=retro&r=g)

### 󠀁[Great support](https://wordpress.org/support/topic/great-support-6568/)󠁿

 [veerap](https://profiles.wordpress.org/veerap/) 2026 年 3 月 19 日

Works and is easy to extend. Great support!

![](https://secure.gravatar.com/avatar/d3fb15c07b93f798365d94bbfe6b33d755a9b375da5b11756499e5ab2d2271bf?
s=60&d=retro&r=g)

### 󠀁[Very Useful](https://wordpress.org/support/topic/very-useful-3707/)󠁿

 [tcox14](https://profiles.wordpress.org/tcox14/) 2026 年 1 月 24 日

Entity groupings would be nice to have but this did the trick to be able to easily
browse available resources and import into an HTTP client. Thanks!

![](https://secure.gravatar.com/avatar/bf0412133529c352b7a8d21d69dbcbcf5b475001d9ce4ec1dff6a290fbd6b039?
s=60&d=retro&r=g)

### 󠀁[Works as expected](https://wordpress.org/support/topic/works-as-expected-935/)󠁿

 [braican](https://profiles.wordpress.org/braican/) 2025 年 9 月 30 日

Works as expected for our use case and was a great way to easily establish schemas
for our API customizations and extensions.

![](https://secure.gravatar.com/avatar/e06bef88a7acc36f2375fbe59e8740c7603fddea1a8286438ab0745ec49607d3?
s=60&d=retro&r=g)

### 󠀁[Generates invalid schema](https://wordpress.org/support/topic/generates-invalid-schema/)󠁿

 [cbd4coins](https://profiles.wordpress.org/cbd4coins/) 2025 年 8 月 23 日

When you try to generate types it doesn’t work. The schema it creates is invalid

![](https://secure.gravatar.com/avatar/e6c072c8a80ab41eca0c87c81108e5a7bf722418b5166fc12fbab20347623a03?
s=60&d=retro&r=g)

### 󠀁[Great Work](https://wordpress.org/support/topic/great-work-1155/)󠁿

 [Stiofan](https://profiles.wordpress.org/stiofansisland/) 2025 年 6 月 18 日

Very useful, we are using this in our docs sites, we have added some filters to 
correct some stuff and then just load the file vis the API url. Thanks for this!

 [ 阅读所有5条评价 ](https://wordpress.org/support/plugin/wp-openapi/reviews/)

## 贡献者及开发者

「WP OpenAPI」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ moon0326 ](https://profiles.wordpress.org/moon0326/)

[帮助将「WP OpenAPI」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-openapi)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-openapi/)，查看[SVN仓库](https://plugins.svn.wordpress.org/wp-openapi/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/wp-openapi/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-openapi/)。

## 额外信息

 *  版本 **1.0.29**
 *  最后更新：**5 天前**
 *  活跃安装数量 **400+**
 *  WordPress 版本 ** 5.8 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  PHP 版本 ** 7.1 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-openapi/)
 * 标签
 * [api](https://cn.wordpress.org/plugins/tags/api/)[documentation](https://cn.wordpress.org/plugins/tags/documentation/)
   [openapi](https://cn.wordpress.org/plugins/tags/openapi/)[rest-api](https://cn.wordpress.org/plugins/tags/rest-api/)
   [swagger](https://cn.wordpress.org/plugins/tags/swagger/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-openapi/advanced/)

## 评级

 4 星（最高 5 星）。

 *  [  3 条 5 星评价     ](https://wordpress.org/support/plugin/wp-openapi/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/wp-openapi/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/wp-openapi/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/wp-openapi/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/wp-openapi/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-openapi/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-openapi/reviews/)

## 贡献者

 *   [ moon0326 ](https://profiles.wordpress.org/moon0326/)

## 支持

最近两个月解决的问题：

     总计 1，已解决 0

 [查看支持论坛](https://wordpress.org/support/plugin/wp-openapi/)