159 lines
3.6 KiB
JSON
159 lines
3.6 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "uapi",
|
|
"title": "API接口",
|
|
"primary": [
|
|
"id"
|
|
],
|
|
"catelog": "entity"
|
|
}
|
|
],
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"title": "id",
|
|
"type": "str",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "name",
|
|
"title": "api名称",
|
|
"type": "str",
|
|
"length": 200
|
|
},
|
|
{
|
|
"name": "title",
|
|
"title": "API标题",
|
|
"type": "str",
|
|
"length": 100
|
|
},
|
|
{
|
|
"name": "apisetid",
|
|
"title": "API集id",
|
|
"type": "str",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "description",
|
|
"title": "接口描述",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "need_auth",
|
|
"title": "需要鉴权",
|
|
"type": "str",
|
|
"length": 1,
|
|
"default": "0"
|
|
},
|
|
{
|
|
"name": "stream",
|
|
"title": "流式输出",
|
|
"type": "str",
|
|
"length": 20
|
|
},
|
|
{
|
|
"name": "path",
|
|
"title": "path",
|
|
"type": "str",
|
|
"length": 4000
|
|
},
|
|
{
|
|
"name": "httpmethod",
|
|
"title": "http方法",
|
|
"type": "str",
|
|
"length": 20,
|
|
"nullable": "yes",
|
|
"default": "GET"
|
|
},
|
|
{
|
|
"name": "chunk_match",
|
|
"title": "流式匹配串",
|
|
"type": "str",
|
|
"length": 100
|
|
},
|
|
{
|
|
"name": "headers",
|
|
"title": "headers模版",
|
|
"type": "text",
|
|
"nullable": "yes"
|
|
},
|
|
{
|
|
"name": "params",
|
|
"title": "参数模版",
|
|
"type": "text",
|
|
"nullable": "yes"
|
|
},
|
|
{
|
|
"name": "data",
|
|
"title": "数据模版",
|
|
"type": "text",
|
|
"nullable": "yes"
|
|
},
|
|
{
|
|
"name": "response",
|
|
"title": "响应模版",
|
|
"type": "text",
|
|
"nullable": "yes"
|
|
},
|
|
{
|
|
"name": "ioid",
|
|
"title": "输入输出id",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "yes"
|
|
},
|
|
{
|
|
"name": "callbackurl",
|
|
"title": "回调url",
|
|
"type": "str",
|
|
"length": 1000,
|
|
"nullable": "yes"
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "idx1",
|
|
"idxtype": "unique",
|
|
"idxfields": [
|
|
"apisetid",
|
|
"name"
|
|
]
|
|
}
|
|
],
|
|
"codes": [
|
|
{
|
|
"field": "httpmethod",
|
|
"table": "appcodes_kv",
|
|
"valuefield": "k",
|
|
"textfield": "v",
|
|
"cond": "parentid='httpmethod'"
|
|
},
|
|
{
|
|
"field": "apisetid",
|
|
"table": "uapiset",
|
|
"valuefield": "id",
|
|
"textfield": "name"
|
|
},
|
|
{
|
|
"field": "need_auth",
|
|
"table": "appcodes_kv",
|
|
"valuefield": "k",
|
|
"textfield": "v",
|
|
"cond": "parentid='yesno'"
|
|
},
|
|
{
|
|
"field": "stream",
|
|
"table": "appcodes_kv",
|
|
"valuefield": "k",
|
|
"textfield": "v",
|
|
"cond": "parentid='resp_mode'"
|
|
},
|
|
{
|
|
"field": "ioid",
|
|
"table": "uapiio",
|
|
"valuefield": "id",
|
|
"textfield": "name"
|
|
}
|
|
]
|
|
} |