Title: Document Generator for OpenAPI
Author: Schneider &amp; Schütz GmbH
Published: <strong>2021 年 9 月 21 日</strong>
Last modified: 2023 年 7 月 4 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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

# Document Generator for OpenAPI

 由 [Schneider & Schütz GmbH](https://profiles.wordpress.org/schneiderundschuetz/)
開發

[下載](https://downloads.wordpress.org/plugin/document-generator-for-openapi.1.1.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/document-generator-for-openapi/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/document-generator-for-openapi/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/document-generator-for-openapi/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/document-generator-for-openapi/#developers)

 [技術支援](https://wordpress.org/support/plugin/document-generator-for-openapi/)

## 外掛說明

This plugin reads the schema definition of a given WordPress REST Api namespace 
and transforms it to a
 OpenAPI document. The generator itself is exposed via the
WordPress REST Api with the namespace document-generator-for-openapi/v1.

There is also a built in WP-CLI Command.

### Limitations

 * Beware that currently the generator is exposeed to anonymous users since the 
   WordPress schema endpoint is also publicly
    available. Use it at your own risk
   or disable the plugin after use.
 * No UI for configuration yet
 * Currently only version 3.1.0 of the OpenAPI specification is implemented. Swagger
   tools for 3.0.0 might work though.
 * Extensibility with hooks needs to be improved

## 安裝方式

 1. Install plugin via WordPress Plugin repository or by manually copying files
 2. Activate the plugin
 3. Access the REST Api of the generator by calling /wp-json/document-generator-for-
    openapi/v1/document?namespace=\<NAMESPACE> and your OpenAPI document will be returned.
 4. Or use the integrated WP-CLI command wp openapi-generator export-file

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Document Generator for OpenAPI〉的開發相關工作。

參與者

 *   [ Schneider & Schütz GmbH ](https://profiles.wordpress.org/schneiderundschuetz/)

[將〈Document Generator for OpenAPI〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/document-generator-for-openapi)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/document-generator-for-openapi/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/document-generator-for-openapi/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/document-generator-for-openapi/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/document-generator-for-openapi/)。

## 變更記錄

#### 1.1.0

 * Added WP-CLI command to export OpenAPI document via CLI (Thanks to @vnmedeiros–
   Vinícius Nunes Medeiros)

#### 1.0.2

 * Added missing files for WordPress plugin repository

#### 1.0.1

 * Changed name of plugin from openapi-generator to document-generator-for-openapi

#### 1.0.0

 * Initial release

## 中繼資料

 *  版本 **1.1.0**
 *  最後更新 **3 年前**
 *  啟用安裝數 **40+**
 *  WordPress 版本需求 ** 5.7 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.2.13**
 *  PHP 版本需求 ** 7.0 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/document-generator-for-openapi/)
 * 標籤:
 * [api](https://tw.wordpress.org/plugins/tags/api/)[generator](https://tw.wordpress.org/plugins/tags/generator/)
   [openapi](https://tw.wordpress.org/plugins/tags/openapi/)[rest-api](https://tw.wordpress.org/plugins/tags/rest-api/)
   [swagger](https://tw.wordpress.org/plugins/tags/swagger/)
 *  [進階檢視](https://tw.wordpress.org/plugins/document-generator-for-openapi/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/document-generator-for-openapi/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/document-generator-for-openapi/reviews/)

## 參與者

 *   [ Schneider & Schütz GmbH ](https://profiles.wordpress.org/schneiderundschuetz/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/document-generator-for-openapi/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://www.schneiderundschuetz.com/)