[WordPress] 外掛分享: GlotCore REST API

首頁外掛目錄 › GlotCore REST API
WordPress 外掛 GlotCore REST API 的封面圖片
全新外掛
安裝啟用
尚無評分
51 天前
最後更新
問題解決
WordPress 4.9+ PHP 7.4+ v0.1 上架:2026-01-20

內容簡介

總結:GlotCore REST API 透過公開 REST API 擴展了 GlotPress,讓開發者可以將 GlotPress 整合到外部系統中,自動化工作流程,並在 GlotPress 翻譯平台上建立自定應用程式。

問題與答案:
1. GlotCore REST API 主要提供了哪些可用端點?
- /gp/v0.1 – 基礎端點
- /gp/v0.1/formats – 獲取可用的文件格式
- /gp/v0.1/glossaries – 检索和創建詞彙表
- /gp/v0.1/glossaries/{id} – 檢索、更新或刪除特定詞彙表
- /gp/v0.1/glossaries/{id}/entries – 檢索和創建詞彙條目
- /gp/v0.1/glossaries/{id}/entries/{entry_id} – 检索、更新或刪除特定詞彙條目
- /gp/v0.1/languages – 檢索可用語言
- /gp/v0.1/originals – 檢索原始字符串
- /gp/v0.1/originals/{id} – 檢索和刪除特定原始字符串
- /gp/v0.1/projects – 檢索並創建項目
- /gp/v0.1/projects/{id} – 檢索、更新或刪除特定項目
- /gp/v0.1/projects/{id}/permissions – 檢索並創建項目權限
- /gp/v0.1/projects/{id}/permissions/{permission_id} – 檢索和刪除特定權限
- /gp/v0.1/profile/me – 檢索驗證用戶信息
- /gp/v0.1/profile/{id} – 檢索特定用戶信息
- /gp/v0.1/translations – 檢索和創建翻譯
- /gp/v0.1/translations/{id} – 檢索、更新或刪除特定翻譯
- /gp/v0.1/translation-sets – 检索和創建翻譯集
- /gp/v0.1/translation-sets/{id} – 检索、更新或刪除特定翻譯集

2. 安裝後,如何進行 GlotCore REST API 的配置?
- 安裝完成後,GlotCore REST API 即可立即使用。
- 您可以使用像 Postman 這樣的工具來探索 API。
- 插件已包含 Postman 收集和環境文件。
- 請注意,某些端點需要進行身份驗證。
- 建議用於測試的身份驗證方法是使用 WordPress 應用程式密碼的基本身份驗證。

外掛標籤

開發者團隊

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

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

原文外掛簡介

GlotCore REST API extends GlotPress by exposing a REST API, allowing developers to integrate GlotPress with external systems, automate workflows, and build custom applications on top of the GlotPress translation platform.
Experimental Notice
This plugin is currently in an experimental stage.
API endpoints and features may change between releases.
Version 0.1 is a foundational release intended for early adopters and developers.
Versions between 0.1 and 1.0 do not guarantee backward compatibility.
Available Endpoints
The plugin introduces REST API endpoints for interacting with GlotPress data:

/gp/v0.1 – Base endpoint
/gp/v0.1/formats – Retrieve available file formats
/gp/v0.1/glossaries – Retrieve and create glossaries
/gp/v0.1/glossaries/{id} – Retrieve, update, or delete a specific glossary
/gp/v0.1/glossaries/{id}/entries – Retrieve and create glossary entries
/gp/v0.1/glossaries/{id}/entries/{entry_id} – Retrieve, update, or delete a specific glossary entry
/gp/v0.1/languages – Retrieve available languages
/gp/v0.1/originals – Retrieve original strings
/gp/v0.1/originals/{id} – Retrieve and delete a specific original string
/gp/v0.1/projects – Retrieve and create projects
/gp/v0.1/projects/{id} – Retrieve, update, or delete a specific project
/gp/v0.1/projects/{id}/permissions – Retrieve and create project permissions
/gp/v0.1/projects/{id}/permissions/{permission_id} – Retrieve and delete a specific permission
/gp/v0.1/profile/me – Retrieve the authenticated user profile
/gp/v0.1/profile/{id} – Retrieve a specific user profile
/gp/v0.1/translations – Retrieve and create translations
/gp/v0.1/translations/{id} – Retrieve, update, or delete a specific translation
/gp/v0.1/translation-sets – Retrieve and create translation sets
/gp/v0.1/translation-sets/{id} – Retrieve, update, or delete a specific translation set

Configuration
After installation, GlotCore REST API is ready to use.
To explore the API, you may use tools like Postman.
Postman collection and environment files are included with the plugin.
Please note that some endpoints require authentication.
Suggested authentication method for testing is using Basic Authentication with WordPress Application Passwords.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon