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
标签:body,演示,ip,CRUD,rest,method,http,restful,port From: https://www.cnblogs.com/hnxxcxg/p/17124455.html