Home > Backend Development > PHP Tutorial > 什么是restful api

什么是restful api

WBOY
Release: 2016-06-06 20:22:27
Original
1492 people have browsed it

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

回复内容:

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

REST 是一种架构思想

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

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

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template