1 Star 0 Fork 0

幻塔de总裁/springcloud1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
api.http 1.87 KB
一键复制 编辑 原始数据 按行查看 历史
1487884767@qq.com 提交于 2021-12-23 18:55 . sp09-config new
POST http://localhost:6001/actuator/bus-refresh
Content-Type: application/json
### 测试config总线
GET http://localhost:6001/actuator/bus-refresh
Accept: application/json
### 测试config总线
GET http://localhost:3001/order-service/asdaf212radsf
Accept: application/json
### 获取订单 最长链路,可用于测试 zipkin
GET http://localhost:3001/order-service/
Accept: application/json
### 添加订单
GET http://localhost:3001/user-service/8/score?score=1000
Accept: application/json
### 增加积分
GET http://localhost:3001/user-service/555
Accept: application/json
# ### 测试代码: ab -n 20000 -c 50 http://localhost:3001/user-service/555
### 获取用户
POST http://localhost:3001/item-service/decreaseNumber
Content-Type: application/json
[{"id": 1,"name": "abc","number": 23},{"id": 2,"name": "def","number": 11}]
###
GET http://localhost:3001/item-service/5?token=12345
Accept: application/json
# 转发调用这个路径:http://localhost:8001/5
### 测试代码: ab -n 10000 -c 50 http://localhost:3001/item-service/5?token=12345
GET http://localhost:3002/item-service/5?token=12345
Accept: application/json
### 测试3002服务器
GET http://localhost:8101/555
Accept: application/json
### 这里调用的是sp04-orderController中的路径,orderController再远程调用itemController中的方法
#POST http://localhost:8001/decreaseNumber
#Content-Type: application/json
#
#[{"id": 1,"name": "abc","number": 23},{"id": 2,"name": "def","number": 11}]
#### 减少库存
GET http://localhost:8001/5
Accept: application/json
#### 获得订单
GET http://eureka1:2001
Accept: application/json
### 测试服务器能否连通
# 仪表盘网址 http://localhost:4001/hystrix
# turbine 仪表盘填写的监控网址 http://localhost:5001/turbine.stream
GET http://localhost:6001/item-service/dev
Accept: application/json
### 测试config中心连接
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/inandout/springcloud1.git
git@gitee.com:inandout/springcloud1.git
inandout
springcloud1
springcloud1
master

搜索帮助