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

 

posted @ 2023-02-15 19:46  delphi中间件  阅读(137)  评论(0编辑  收藏  举报