API 定义
导入和配置您的 API 规范
从 Fern Definition 导出到 OpenAPI
为了防止锁定在 Fern Definition 格式中,您可以随时使用 fern export 命令将您的 API 定义导出为 OpenAPI 3.1。
fern export
如果您在 fern/apis/ 文件夹中定义了多个 API,请使用 --api 指定要导出的 API。
fern/apis/
--api
$fern export path/to/openapi.yml$fern export path/to/openapi.json$$# 指定要导出的 API$fern export --api public-api path/to/openapi.yml