內容簡介
選擇您的網站數據以透過 WordPress API 提供,
並選擇要以哪種格式提供。
功能
自定義 API URL:可以在外掛設定中更改 my-api 和 name1:http://mywordpress.com/my-api/name1
為每個 API 端點單獨設置最小權限權限
自定義 HTTP 標頭
使用來自您網站的 MySQL 數據的任何數據:文章/頁面、自訂文章、評論、設置、用戶、站點選項、文章元數據、草稿、活動以及更多
將任何本地文件轉換為 API (CSV、JSON、XML...等等)
從第三方 API 獲取任何數據,並將其轉換為您自己的 API
使用內置的快取系統提高 API 速度
以任何格式輸出 API,包括但不限於 JSON、XML、RSS/ATOM、YAML 和 HTML。
通過使用簡單的模板語言,全面控制 API 輸出。
兩個專用模板:成功的 API 調用和 API 失敗的模板(例如驗證錯誤)
智能模板編輯器,具有代碼高亮和全屏模式
這是一個免費的附加功能
Twig Anything WordPress 插件。
外掛標籤
開發者團隊
原文外掛簡介
Choose which of your site’s data to make available via WordPress API
and in which format.
Features
Customize API URLs: http://mywordpress.com/my-api/name1 – change my-api and name1 in the plugin settings
Set minimal capability permission individually for every API endpoint
Customize HTTP headers
Use any data from your sites’s MySQL database: posts/pages, custom posts, comments, settings, users, site options, post metadata, users, drafts, activity and much more
Turn any local file into an API (CSV, JSON, XML, you name it)
Fetch any data from 3rd party APIs and turn into your own API
Boost API speed with the caching system out of the box
Output API in any format, including, but not limited to, JSON, XML, RSS/ATOM, YAML and HTML.
Get full control over the API output by using a simple template language.
Two dedicated templates: 1) for successful API calls and 2) for API failures (e.g. authentication error)
Intelligent template editor with code highlighting and full screen mode
This is a free add-on to the
Twig Anything WordPress plugin.
