- url: 127.0.0.1:5000/api/
- header: user
- 请求方式 get 测试接口 返回
{
"name": "蔡徐坤"
}
- 注册接口 使用post传递
- 请求方式 post
- body 内容
{ "name": "", "email": "", "password": "", }
// 头像默认 https://cdn.luogu.com.cn/upload/usericon/1.png
- 登录接口
- 请求方式 post
- body 内容
{ "email": "用户邮箱", "password": "用户密码" }
- 获取用户信息
- 请求方式 get
{
"userData": {
"uid": 10000000,
"avatar": "https://cdn.luogu.com.cn/upload/usericon/1.png",
"user_name": "ybh一号",
"user_sign": null,
"email": "[email protected]",
"password": "$2a$10$S/nqzvsxupgaH43azUK60.jOxUaaa1jwmrxnOMRTcXu5CUV/23QZ6",
"follows": 0,
"follow_shops": 0,
"fans": 0,
"shop_id": 1000000
}
}
- header: shop
- 请求方式 post
- body
{ "id": "", "name": "" }
测试接口 返回
{
"shop": {
"shop_fans": "0",
"shop_id": "1000000",
"shop_name": "YBB小店",
"shop_sign": "will come shinning through",
"uid": "10000000"
}
}
- header: commodities
- 请求方式get
- 返回首页商品列表
- 添加历史记录