[WordPress] 外掛分享: Document Generator for OpenAPI

前言介紹

  • 這款 WordPress 外掛「Document Generator for OpenAPI」是 2021-09-20 上架。
  • 目前有 60 個安裝啟用數。
  • 上一次更新是 2023-07-04,距離現在已有 670 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 5.7 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.0 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

schneiderundschuetz |

外掛標籤

api | openapi | swagger | rest-api | generator |

內容簡介

這款外掛會讀取指定 WordPress REST API 命名空間的模式定義,並將其轉換為 OpenAPI 文件。這個產生器本身
是透過 WordPress REST API 的命名空間 document-generator-for-openapi/v1 來公開的。

要生成文件,只需呼叫 /wp-json/document-generator-for-openapi/v1/document?namespace=\,即可取得對應的 OpenAPI 文件。

限制

需要注意的是,目前此產生器可讓匿名使用者存取,因為 WordPress 模式端點也是公開的。
目前還沒有 UI 進行配置
目前只實現了 OpenAPI 規格的 3.1.0 版本。不過,Swagger 工具 3.0.0 可能也可以使用。
需要改進使用 hook 進行擴充的可靠性

原文外掛簡介

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

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Document Generator for OpenAPI」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.2 | 1.1.0 | trunk |

延伸相關外掛(你可能也想知道)

  • WP OpenAPI 》WP OpenAPI 是一個 WordPress 外掛,它為你的 WordPress REST API 產生符合 OpenAPI 3.1.0 標準的文件。, 它有兩個主要功能。, , 在 /wp-json-openapi 位置輸...。
  • Writegen – ChatGPT AI Content Generator plugin 》總結:ChatGPT AI 內容生成器外掛是您在 WordPress 網站上輕鬆製作精彩內容的首選工具!使用 OpenAI 的 GPT-3 語言模型,這款外掛讓內容創作輕鬆無負擔。其使...。

文章
Filter
Apply Filters
Mastodon