You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
994 B
40 lines
994 B
#一带一路手机接口文档说明
|
|
|
|
## 接口规范介绍
|
|
本接口规范对一带路手机客户端接口操作,相关参数、响应和错误码定义,所有提交及返回接收的变量均使用小写。 目前支持REST APP。
|
|
## 公共参数
|
|
参数 | 类型 | 必填 | 描述
|
|
--- | --- | --- | ---
|
|
token | string | 是 | 认证(除登录、刷新接口外)
|
|
version | string | 是 | 接口版本,固定: 1.0
|
|
|
|
## 错误码
|
|
错误码 | 描述
|
|
--- | ---
|
|
20001 | 用户不存在
|
|
20002 | 无效的 token
|
|
|
|
## 接口
|
|
### 登录接口
|
|
#### 请求地址 :
|
|
- http://www.ebr1.com/api.php?login
|
|
#### 调用方式:
|
|
- HTTP post
|
|
#### 接口描述:
|
|
- 用户登录成功后返回 Token 与 RefreshToken
|
|
#### 请求参数:
|
|
字段名称 | 类型 | 必填 | 描述
|
|
---|---|---|---
|
|
username | string | 是 | 用户名
|
|
password | string | 是 | 用户密码
|
|
#### 返回示例
|
|
```
|
|
{
|
|
'code':'10000';
|
|
'data':{
|
|
'token':'sdfsfsddf';
|
|
'refresh_token':'sdfsfsdfsf'
|
|
}
|
|
}
|
|
|
|
``` |