Wordpress Restful API调查

2016-11-15  本文已影响0人  seafruit

详情请访问:
https://developer.wordpress.com/docs/api/

获取所有(自己添加的)posts的restful API:

https://public-api.wordpress.com/rest/v1.1/sites/$site/posts

获取某个(自己添加的)posts的restful API:

https://public-api.wordpress.com/rest/v1.1/sites/$site/posts/$post_ID

获取页面所有categories的 restful API:

https://public-api.wordpress.com/rest/v1.1/sites/$site/categories

获取页面所有tags的 restful API:

https://public-api.wordpress.com/rest/v1.1/sites/$site/tags

测试:

使用curl
使用postman

推荐使用postman,直观,清楚,信息足。

上一篇 下一篇

猜你喜欢

热点阅读