Path: /app-center/api/apps/extension/update
Method: POST
接口描述:
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 |
Body
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
category | string | 非必须 | 类型: utils: 工具类 bridge: 桥接源 | 枚举: utils,bridge 枚举备注: 类型: utils: 工具类 bridge: 桥接源 | |
type | string | 非必须 | 分类: npm 二方包 function 函数 | 枚举: npm,function | |
name | string | 非必须 | 名称 | ||
app | string | 非必须 | 从属应用id | ||
content | object | 非必须 | 工具类内容 对象 | ||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
id | number | 必须 |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | 工具类详情信息 | ||
├─ id | number | 非必须 | |||
├─ name | string | 非必须 | 名称 | ||
├─ type | string | 非必须 | 类型 | ||
├─ content | object | 非必须 | 内容 | ||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ app | number | 非必须 | 关联appId | ||
├─ category | string | 非必须 | 分类 | ||
├─ created_at | string | 非必须 | 创建时间 | ||
├─ updated_at | string | 非必须 | 更新时间 | ||
locale | string | 非必须 |
Path: /app-center/api/apps/extension/create
Method: POST
接口描述:
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 |
Body
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
category | string | 必须 | utils 工具类 bridge 桥接源 | 枚举: utils,bridge 枚举备注: utils 工具类 bridge 桥接源 | |
type | string | 必须 | npm 二方包 function 函数 | 枚举: npm,function | |
name | string | 必须 | 名称 | ||
app | number | 必须 | 所属应用id | ||
content | object | 必须 | |||
├─ type | string | 必须 | |||
├─ value | string | 必须 |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ id | number | 非必须 | |||
├─ name | string | 非必须 | 名称 | ||
├─ type | string | 非必须 | 类型 | ||
├─ content | object | 非必须 | 内容 | ||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ app | number | 非必须 | 关联appId | ||
├─ category | string | 非必须 | 分类 | ||
├─ created_at | string | 非必须 | 创建时间 | ||
├─ updated_at | string | 非必须 | 更新时间 | ||
locale | string | 非必须 |
Path: /app-center/api/apps/extension/delete
Method: GET
接口描述:
删除时校验此 工具类是否从属于这个应用
Query
参数名称 | 是否必须 | 示例 | 备注 |
---|---|---|---|
id | 是 | 333 | 工具类id |
app | 是 | 12 | 所属应用id |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object | 非必须 | |||
├─ id | number | 非必须 | |||
├─ name | string | 非必须 | 名称 | ||
├─ type | string | 非必须 | 类型 | ||
├─ content | object | 非必须 | 内容 | ||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ app | number | 非必须 | 关联appId | ||
├─ category | string | 非必须 | 分类 | ||
├─ created_at | string | 非必须 | 创建时间 | ||
├─ updated_at | string | 非必须 | 更新时间 | ||
locale | string | 非必须 |
Path: /app-center/api/apps/extension/list
Method: GET
接口描述:
Query
参数名称 | 是否必须 | 示例 | 备注 |
---|---|---|---|
app | 否 | 12 | 应用id |
category | 否 | utils | 两种取值:utils 工具类 bridge 桥接源 |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
data | object [] | 非必须 | item 类型: object | ||
├─ id | number | 非必须 | |||
├─ name | string | 非必须 | 名称 | ||
├─ type | string | 非必须 | 类型 | 枚举: npm,function | |
├─ content | object | 非必须 | 内容 | ||
├─ type | string | 非必须 | |||
├─ value | string | 非必须 | |||
├─ app | number | 非必须 | 关联appId | ||
├─ category | string | 非必须 | 分类 | 枚举: utils,bridge | |
├─ created_at | string | 非必须 | 创建时间 | ||
├─ updated_at | string | 非必须 | 更新时间 | ||
locale | string | 非必须 |