Rest
文章平均质量分 79
hanruikai
aaa
展开
-
When should we use PUT and when should we use POST?
When should we use PUT and when should we use POST?The HTTP methods POST and PUT aren't the HTTP equivalent of the CRUD's create and update. They both serve a different purpose. It's quite possi转载 2015-01-20 14:01:41 · 805 阅读 · 0 评论 -
Rest实践之POST+json总结
1. 目的开发rest 请求创建service, 利用post 请求,并且携带message body,JSON格式,包括service的配置信息,从而实现service添加2. 关键要点利用 post请求传输json数据并返还json格式结果3. 关键代码 @POST @Path("/service/deploy") @Consumes(MediaType原创 2015-01-23 10:05:49 · 30241 阅读 · 1 评论