1 Star 0 Fork 0

henry/drogon_test1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test.http 902 Bytes
一键复制 编辑 原始数据 按行查看 历史
henry_pc 提交于 2024-03-23 06:46 . add 2 modify
### METHOD_ADD test
### 宏会在路径映射中自动把名字空间和类名作为路径的前缀
eg:
http://192.168.10.108:8080/test/v1/demo1/token?userId=henry&passwd=123
### HTTP Client
post http://192.168.10.108:8080/ HTTP/1.1
Content-Type: application/json
{
"name": "John Doe"
}
### login ...要特别注意这里的路径,是带有前缀的
POST http://192.168.10.108:8080/test/v1/demo1/token?userId=henry&passwd=123 HTTP/1.1
content-type: application/json
{
"name": "sample",
"time": "Wed, 21 Oct 2015 18:27:50 GMT"
}
### funa
POST http://192.168.10.108:8080/test/v1/demo1/funa HTTP/1.1
content-type: application/json
{
"name": "sample",
"time": "Wed, 21 Oct 2015 18:27:50 GMT"
}
### funB
POST http://192.168.10.108:8080/test/v1/demo1/funb HTTP/1.1
content-type: application/json
{
"name": "sample",
"time": "Wed, 21 Oct 2015 18:27:50 GMT"
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/henryheliang/drogon_demo1.git
git@gitee.com:henryheliang/drogon_demo1.git
henryheliang
drogon_demo1
drogon_test1
master

搜索帮助