jeffstieler/rest-console-embed
最新稳定版本:0.1.0
Composer 安装命令:
composer require jeffstieler/rest-console-embed
包简介
Shortcode embed of the WPCOM Rest Console
README 文档
README
WordPress shortcode plugin providing an embeddable console for exploring REST APIs in your content.
Based on Automattic's WordPress.com Console.
Using the shortcode
[rest-console api_root="http://path/to/api" auth="none" width="100%" height="500px"]
api_root- Root URL of the target API.
auth- "none", "oauth", or "proxy". Using values other than "none" is an exercise left to the reader. ;)
width- Width of the containing div, defaults to
100%.
- Width of the containing div, defaults to
height- Height of the containing div, defaults to
500px.
- Height of the containing div, defaults to
API Compatibility
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
/versionsendpoint to provide metadata about the API's different versions - Expose a
/helpendpoint to provide metadata about the API's endpoints- See
https://public-api.wordpress.com/rest/v1.1/help(make sure to request withAccept: application/jsonheader)
- See
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL
- 更新时间: 2015-05-03