doujiyuan0211 2019-07-09 01:34
浏览 410

WordPress REST API和WP JSON API有什么不同?

I'm trying to code the user authentication feature for my app using API. I'm confused between WordPress REST API and WordPress JSON API? Based on the Q&A here, it says I need WordPress JSON API. If my WP already has REST API, do I still need this JSON API?

  • 写回答

1条回答

  • dongqing6755 2019-07-09 01:48
    关注

    Yes, they appear to be different. The Wordpress REST API appears to be built into, and come with a Wordpress Installation. I tested on my site, and was able to access the api for posts via a browser GET to /wp-json/wp/v2/posts. This is just an example. I would imagine the other option you mentioned is a plugin that does something similar but the format of the requests look entirely different. I would stick with the first solution that comes out of the box.

    评论

报告相同问题?

悬赏问题

  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记