117 lines
2.7 KiB
JSON
117 lines
2.7 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "uapi_cache",
|
|
"title": "uapi定义缓存",
|
|
"primary": [
|
|
"id"
|
|
],
|
|
"classification": "cache"
|
|
}
|
|
],
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"type": "str",
|
|
"nullable": false,
|
|
"default": "",
|
|
"comment": "主键",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "upappid",
|
|
"type": "str",
|
|
"nullable": false,
|
|
"default": "",
|
|
"comment": "上游应用ID",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "apiname",
|
|
"type": "str",
|
|
"nullable": false,
|
|
"default": "",
|
|
"comment": "API名称",
|
|
"length": 128
|
|
},
|
|
{
|
|
"name": "method",
|
|
"type": "str",
|
|
"nullable": true,
|
|
"default": "POST",
|
|
"comment": "HTTP方法",
|
|
"length": 16
|
|
},
|
|
{
|
|
"name": "endpoint",
|
|
"type": "str",
|
|
"nullable": true,
|
|
"default": "",
|
|
"comment": "API端点",
|
|
"length": 512
|
|
},
|
|
{
|
|
"name": "auth_type",
|
|
"type": "str",
|
|
"nullable": true,
|
|
"default": "bearer",
|
|
"comment": "认证类型",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "rate_limit",
|
|
"type": "int",
|
|
"nullable": true,
|
|
"default": null,
|
|
"comment": "速率限制(次/分钟)"
|
|
},
|
|
{
|
|
"name": "description",
|
|
"type": "text",
|
|
"nullable": true,
|
|
"default": null,
|
|
"comment": "API描述"
|
|
},
|
|
{
|
|
"name": "status",
|
|
"type": "str",
|
|
"nullable": false,
|
|
"default": "active",
|
|
"comment": "状态",
|
|
"length": 16
|
|
},
|
|
{
|
|
"name": "sync_version",
|
|
"type": "str",
|
|
"nullable": true,
|
|
"default": "",
|
|
"comment": "同步版本号",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "cached_at",
|
|
"type": "datetime",
|
|
"nullable": false,
|
|
"default": "CURRENT_TIMESTAMP",
|
|
"comment": "缓存写入时间"
|
|
}
|
|
],
|
|
"idxfields": [
|
|
{
|
|
"name": "idx_upappid_apiname",
|
|
"fields": [
|
|
"upappid",
|
|
"apiname"
|
|
],
|
|
"unique": true
|
|
},
|
|
{
|
|
"name": "idx_status",
|
|
"fields": [
|
|
"status"
|
|
],
|
|
"unique": false
|
|
}
|
|
],
|
|
"codes": []
|
|
} |