首页 > 其他分享 >restful CRUD演示

restful CRUD演示

时间:2023-02-15 19:55:57浏览次数:48  
标签:body 演示 ip CRUD rest method http restful port

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

相关文章