restful CRUD演示
restful CRUD演示
1)查询
method: GET
url: http//:ip:port/rest/tunit{资源名}
body: no
2)新增
method: POST
url: http://ip:port/rest/tunit
body:
{ "tunits": [ { "unitid": "1", "unitname": "insert" } ] }
3)修改
method: PUT
url: http://ip:port/rest/tunit
body:
{ "tunits": [ { "unitid": "1", "unitname": "update" } ] }
4)删除
method: DELETE
url: http://ip:port/rest/tunit/unitid='1'
body: no
本文来自博客园,作者:{咏南中间件},转载请注明原文链接:https://www.cnblogs.com/hnxxcxg/p/17124455.html