OkayAPI Docs


API Path: /api/App/Table/GetOneDataByOneField

API Description: R Get one record data by one filed.

1
API Traffic
HTTP/HTTPS
Protocol
GET/POST
Method
UTF-8
Charset
JSON
Response

API Debug   


API Params

ParameterTypeRequiredDefaultNoteDescription
HTTP_APPKEYStringRequiredMIN: 32Common Put Your APPKEY
model_nameStringRequiredYour table Model Name
field_nameStringRequired需要匹配的表单字段名称
field_valueStringRequired需要查找和对比的字段值
selectArraySeperated with ,Optaion需要返回的字段,默认返回全部字段,多个字段用英文逗号分割,如:select=id,uuid

API Debug

KEYREQUIREDVALUE
app_key *Required
model_name *Required
field_name *Required
field_value *Required
select Option

API Response

KEYTypeDescription
err_codeInt状态操作码,0成功;1开发类错误,修改失败(表单不存在或字段类型不是数值类型);2应用层规则拦截,拦截后可以小白开放平台查看日记,3数据不存在或已删除
err_msgString错误提示信息,err_code非0时参考此提示信息
dataObject查找到的数据,如果未找到则为null。其中,id字段固定返回。

HTTP Response Code

HTTP Status CodeDescription
Http Status = 200Success
Http Status = 400Illegal-Params
Http Status = 401Illegal-Token
Http Status = 402IP-Banned
Http Status = 404API-NOT-Exsits
Http Status = 406Illegal-APPKEY
Http Status = 407APPKEY-Expired-Out
Http Status = 408APPKEY-Busy
Http Status = 409Illegal-Sign
Http Status = 413API-Traffic-NOT-Enough
Http Status = 415API-LOCKED
Http Status = 500Internal-Server-Error