Title: WP API SwaggerUI
Author: agussuroyo
Published: <strong>2019 年 7 月 29 日</strong>
Last modified: 2022 年 7 月 10 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/wp-api-swaggerui/assets/icon-256-256.png?rev=2129970)

# WP API SwaggerUI

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

[下载](https://downloads.wordpress.org/plugin/wp-api-swaggerui.1.2.0.zip)

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

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

## 描述

SwaggerUI used to make WordPress REST API endpoint have a interactive UI, so we 
can check our API endpoint directly from the website it self

Feature:

 * Support for GET, POST, PUT, PATCH and DELETE request method
 * Support for Auth Basic authorization method
 * Choose which namespace API that will be used on the SwaggerUI

## 屏幕截图

 * [[
 * SwaggerUI Interface
 * [[
 * Options to choose namespace Rest API

## 安装

This plugin can be installed directly from your site.

 1. Log in and navigate to Plugins > Add New.
 2. Type “WP API SwaggerUI” into the Search and hit Enter.
 3. Locate the WP API SwaggerUI plugin in the list of search results and click Install
    Now.
 4. Once installed, click the Activate link.

## 评价

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

### 󠀁[NOT Working with WP 6](https://wordpress.org/support/topic/not-working-with-wp-6/)󠁿

 [luisgcastillo40s](https://profiles.wordpress.org/luisgcastillo40s/) 2023 年 1 
月 3 日

Not working with wp 6.

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

### 󠀁[Any updates](https://wordpress.org/support/topic/any-updates-26/)󠁿

 [lisaiceland](https://profiles.wordpress.org/lisaiceland/) 2022 年 7 月 3 日

Hi. Any updates? It’s not working fully with wp6 and messes if I add js widgets 
like an ADA accessability widegt.

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

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

 [paulouechi](https://profiles.wordpress.org/paulouechi/) 2021 年 4 月 30 日

Great Job, thank you for collaboration!

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

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

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

All work on 5.5.1

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

### 󠀁[Awesome Plugin](https://wordpress.org/support/topic/awesome-plugin-5398/)󠁿

 [Tareq Hasan](https://profiles.wordpress.org/tareq1988/) 2020 年 9 月 24 日

Awesome plugin and very good execution. When you’ve multiple active plugins that
you need to manage and publish documentation about the API, that’s a perfect way
to automate the boring task. Kudos.

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

### 󠀁[That’s exactly what I wanted!](https://wordpress.org/support/topic/thats-exactly-what-i-wanted/)󠁿

 [kazunao](https://profiles.wordpress.org/kazunao/) 2020 年 6 月 1 日

I was looking for a tool to automatically create documentation from the REST API
definition. It’s exactly this!

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

## 贡献者及开发者

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

贡献者

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

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.2.0

 * Update doc
 * Force object type to string
 * Node modules update

#### 1.1.2

 * Update regex for parameter detection

#### 1.1.1

 * Put back missing header element

#### 1.1.0

 * Use swagger-ui npm version
 * Auto tags on endpoint

#### 1.0.9

 * Fix readme typo

#### 1.0.8

 * Restore custom port support

#### 1.0.7

 * Support `produces` and `consumes` directly via register_rest_route 3rd parameter

#### 1.0.6

 * Change site_url to home_url

#### 1.0.5

 * Support summary and desription on each endpoint api

#### 1.0.4

 * make WooCommerce REST API Key works on Swagger Docs Auth

#### 1.0.3

 * change template_include priority
 * change dtermine_current_user priority

#### 1.0.2

 * Ensure REDIRECT_HTTP_AUTHORIZATION is not empty

#### 1.0.1

 * Auto add params from path

#### 1.0

 * Initial release

## 额外信息

 *  版本 **1.1.2**
 *  最后更新：**4 年前**
 *  活跃安装数量 **2,000+**
 *  WordPress 版本 ** 4.7 或更高版本 **
 *  已测试的最高版本为 **5.9.13**
 *  PHP 版本 ** 5.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-api-swaggerui/)
 * 标签
 * [wp-rest-api](https://cn.wordpress.org/plugins/tags/wp-rest-api/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-api-swaggerui/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

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

## 支持

有话要说吗？是否需要帮助？

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.me/agussuroyo)