yapi_import_data
Import API data from Swagger, HAR, Postman, or JSON into your YAPI project. Specify the data type, JSON content, and project ID to sync interfaces.
Instructions
服务端数据导入,支持导入 Swagger、HAR、Postman 等格式的接口数据到 YAPI 项目
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | 导入的数据内容(JSON 字符串) | |
| type | Yes | 导入数据类型 | |
| merge | No | 数据同步模式:normal(普通), good(智能), merge(合并)。默认为 normal | |
| project_id | Yes | 目标项目 ID |