Skip to content

接口描述 ​

批量节点业务列表

请求路径 ​

GET /v1/customers

请求参数 ​

名称类型位置必须描述
Authorizationstringheader是鉴权 token
externalNamestringform否业务对外名称
openIdintform否业务openId
nodeTypestringform否节点类型,不传则默认为node
  • node:NiuLink业务
  • smallBox:麻雀云业务

返回值 ​

名称类型描述
items[]Customer业务数据

Customer ​

名称类型描述
externalNamestring业务对外名称
openIdint业务 openId
createAtint业务创建时间戳,单位:毫秒
externalDescriptionstring业务对外描述
serveRequirementstring业务上机文档要求
callInDescriptionstring业务招募文档简介

请求示例 ​

http://niulinkcloud-example/v1/customers?externalName=业务T&openId=1

返回值示例 ​

json
正常请求:
  http code 200
{
  "items": [
    {
      "externalName": "业务T",
      "openId": 1,
      "createAt": 1590000000000,
      "externalDescription": "业务描述",
      "serveRequirement": "上机文档要求",
      "callInDescription": "招募文档简介"
    }
  ],
  "count":1
}

异常请求:
  http code 4xx/5xx
{
  "code": 4000001,
  "desc": ""
}

错误码列表 ​

错误码描述
401鉴权失败

如接口返回错误码未列举,可在错误码总览中查找