OkayAPI Docs
API Params
Parameter | Type | Required | Default | Note | Description |
---|---|---|---|---|---|
HTTP_APPKEY | String | Required | MIN: 32 | Common Put Your APPKEY | |
model_suffix | String | Optaion | 数据库表名后缀拼接,默认为空,例如传递model_suffix=1,只能传递数字或字母 | ||
select | String | Optaion | * | SQL语句的SELECT部分,多个字段用英文逗号分割,如:select=id,uuid | |
where | String | Required | _id > 0 | 查询条件,不能为空,必须为有效和SQL查询条件 | |
order | ArrayJSON Format | Optaion | ["\u552f\u4e00Id ASC"] | SQL语句的ORDER部分,JSON格式。具体格式为:[第一组排序,第二组排序,……],可以单个或组合排序。 每一组排序格式为:"字段名 + 空格 + ASC|DESC",其中:
例2:组合排序,order=["id DESC", "add_time ASC"],表示id DESC, add_time ASC,即先按ID从大到小,再按创建时间倒序排序。 特别地,RAND表示随机排序,请慎用。 | |
page | Int | Optaion | 1 | MIN: 1 | 第几页 |
perpage | Int | Optaion | 10 | MIN: 1;MAX: 10000 | 分页数量 |
API Debug
KEY | REQUIRED | VALUE |
---|---|---|
app_key | *Required | |
model_suffix | Option | |
select | Option | |
where | *Required | |
order | Option | |
page | Option | |
perpage | Option |
API Response
KEY | Type | Description |
---|---|---|
haiwellsizhoumfp | Array | 符合条件的haiwellsizhoumfp的表数据 |
projects | Array | 项目信息表数据 |
HTTP Response Code
HTTP Status Code | Description |
---|---|
Http Status = 200 | Success |
Http Status = 400 | 表示客户端参数错误 |
Http Status = 404 | 表示接口服务不存在 |
Http Status = 500 | 表示服务端内部错误 |