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 @   delphi中间件  阅读(169)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek “源神”启动!「GitHub 热点速览」
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· 我与微信审核的“相爱相杀”看个人小程序副业
· C# 集成 DeepSeek 模型实现 AI 私有化(本地部署与 API 调用教程)
· spring官宣接入deepseek,真的太香了~
历史上的今天:
2022-02-15 咏南PASCAL中间件
2019-02-15 delphi services允许跨域访问
2017-02-15 咏南BS开发框架
点击右上角即可分享
微信分享提示