api给app、spa或者后台某些需要ajxa的功能使用的
看到有的人使用index?c=reg&xxx=xxx
有的使用
/user/getList
/user/get_list
/user/get-list
/user.getList
还有一种是/userGetList 这种推荐吗?
然后剩下的是REST方式
/user/1 get post put path
/user
但是我发现国外那些什么网盘 twiiter github用rest多,国内基本很少,而且好像也不适合?
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号