看了一堆的 Restful 的介绍 还是没太理解
对于我目前项目中的 请求地址
/user/add 用户新增
/user/delete 用户删除
/user/pageQuery 用户列表拆线呢
/user/detail 用户详情
全是 post 请求,这种算是 Restful 风格嘛
我查了下相关介绍
GET /products : will return the list of all products
POST /products : will add a product to the collection
GET /products/4 : will retrieve product #4
PATCH/PUT /products/4 : will update product #4
大概是请求地址相同 然后是根据 GET POST PUT 这种做交互的才是 Restful 么