Rest 风格的接口

Rest 风格的接口
1). 通过请求路径来决定对哪个资源进行操作 ;
http://localhost:9011/brand
http://localhost:9011/brand

2). 通过请求方式(GET , POST , PUT , DELETE)来决定对这个资源采用何种(增删改查)操作 ;
GET http://localhost:9011/brand -----> 查询操作
POST http://localhost:9011/brand -----> 新增操作

PUT		修改
DELETE	删除
发布了92 篇原创文章 · 获赞 3 · 访问量 2807

猜你喜欢

转载自blog.csdn.net/weixin_44993313/article/details/104253964