OkayAPI Docs


API Path: /api/App/Common_Faker/AllInOne

API Description: 多合一 可以一次性组合模拟产生多种数据,功能更为强大。

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
needsArraySeperated with ,Optaionaddress,barcode,color需要模拟的数据类型,多个数据类型用英文逗号分割。支持以下数据类型:
  • Address:地址数据,字段有state,stateAbbr,city,postcode,address,latitude,longitude
  • Barcode:条形码数据,字段有ean13,ean8,isbn13,isbn10
  • Color:颜色数据,字段有hexcolor,rgbcolor,rgbColorAsArray,rgbCssColor,safeColorName,colorName
  • Company:公司数据,字段有catchPhrase,company,companySuffix
  • Datetime:时间数据,字段有unixTime,iso8601,date,time,year,month,dayOfMonth,amPm
  • Dev:开发数据,字段有md5,sha1,sha256
  • Image:图片数据,字段有imageUrl
  • Internet:网络数据,字段有email,userName,password,slug,ipv4,localIpv4,ipv6,macAddress
  • Person:用户数据,字段有name,lastName,firstName,firstNameMale,firstNameFemale
  • Phonenumber:电话数据,字段有phoneNumber
  • Useragent:用户代理数据,字段有userAgent,chrome,firefox,safari,opera,internetExplorer
  • Uuid:UUID数据,字段有uuid
totalIntOptaion3MIN: 1需要模拟的数据条目数量
is_return_as_objectBooleanOptaiontrue每一组模拟数据是否以对象格式返回,否则以数组格式返回,可以根据需要选择是否需要合并在一起

API Debug

KEYREQUIREDVALUE
app_key *Required
needs Option
total Option
is_return_as_object Option

API Response

KEYTypeDescription
itemsArray模拟数据,具体字段根据需要模拟的数据类型而定

HTTP Response Code

HTTP Status CodeDescription
Http Status = 200Success
Http Status = 400表示客户端参数错误
Http Status = 404表示接口服务不存在
Http Status = 500表示服务端内部错误