restful接口规范

create 新增 post /usr 传递请求参数 body参数 axios data

read 读取 get /user 读取用户列表 /user/123 去取用户的某一条数据

update 更新 put/patch /user/123 更新用户的某一条数据 put属于完整更新 patch属于增量更新

delete 删除 /user/123 删除id为123的数据

posted @ 2022-09-12 17:07  ajaXJson  阅读(90)  评论(0编辑  收藏  举报