[WordPress] 外掛分享: REST Console Embed

首頁外掛目錄 › REST Console Embed
10+
安裝啟用
尚無評分
3970 天前
最後更新
問題解決
WordPress 3.0+ v0.1.1 上架:2015-05-04

內容簡介

嵌入一個控制台來探索 REST API 的內容。

以 Automattic 的 WordPress.com Console 為基礎。

要使控制台正常工作,目標 API 需要:
* 回應包含版本的請求,指定在 URL 中(例如 /api/v1/endpoint)
* 公開一個 /versions 終端以提供有關 API 不同版本的元數據
* 回應範例如下
* 公開一個 /help 終端以提供有關 API 終端的元數據
* 回應範例如下

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「REST Console Embed」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Embed a console for exploring REST APIs in your content.
Based on Automattic’s WordPress.com Console.
For the console to work properly, the target API will need to:
* respond to versioned requests, specified in the URL (e.g. /api/v1/endpoint)
* expose a /versions endpoint to provide metadata about the API\’s different versions
* response example here
* expose a /help endpoint to provide metadata about the API’s endpoints
* response example here

延伸相關外掛

文章
Filter
Mastodon