Home  >  Q&A  >  body text

php - 什么是restful api

restful api是什么东西,做什么用的。和restful url有什么区别?比如下面的url:
http://gd.10086.cn/4g/tc/
http://gd.10086.cn/?4g=tc

天蓬老师天蓬老师2721 days ago477

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-10 16:31:31

    REST 是一种架构思想

    https://en.m.wikipedia.org/wiki/Representational_State_Transfer

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-10 16:31:31

    restful API就是用http的四种请求方式直接对应数据库的四种请求,比如用get对应select,post对应insert,put对应update,delete对应delete,这样后台程序员就不需要干什么事了,前台js程序员可以直接用这四种http方法操作数据库,实现了前后台分离。

    reply
    0
  • Cancelreply