For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
预约演示登录免费开始
  • 概览
    • 什么是 API 定义?
    • 项目结构
      • 概览
      • 覆盖层(Overlays)
      • 覆盖(Overrides)
      • 身份验证
      • 服务器
      • 同步您的规范
        • 概览
        • API 版本
        • 受众
        • 可用性
        • 基础路径
        • 默认值
        • 枚举描述、名称和可用性
        • API Explorer 控制
        • 全局请求头
        • 忽略元素
        • SDK 变量
        • SDK 方法名称
        • 参数名称
        • 属性名称
        • 幂等性
        • 分页
        • 重试行为
        • Schema 名称
        • 服务器名称和 URL 模板化
        • 模式名称
        • 服务器名称和 URL 模板化
      • OpenAPI generators.yml 参考
Checking status...
SOC2Soc 2 Type II
© 2026 Fern • Birch Solutions, Inc., a Postman company

Documentation

SDKsDocsAsk FernCLI Reference

API Definitions

OpenAPIAsyncAPIOpenRPCgRPC

Resources

BlogSupportPricing

Company

Brand KitPrivacy PolicyTerms of Service
LogoLogo
预约演示登录免费开始
在本页
  • 配置选项
OpenAPI扩展

分页

||以 Markdown 格式查看|
此页面是否有帮助?
在仪表板中编辑
上一个

幂等性

下一个

重试行为

企业功能

此功能仅适用于企业计划。如需开始使用,请联系 support@buildwithfern.com。

x-fern-pagination 扩展为 OpenAPI 规范中的列表端点配置自动分页。SDK 和 CLI 用户无需手动管理页面令牌即可获得自动分页功能。

要配置分页:

  1. 使用 x-fern-pagination 扩展注释所需的分页端点
  2. 指定分页方案(offset、cursor、next_uri 或 next_path)
  3. 使用点访问记法指定 results 的位置
1paths:
2 /plants:
3 get:
4 operationId: list_plants
5 x-fern-pagination:
6 offset: $request.page_number
7 results: $response.results
8 parameters:
9 - name: page_number
10 in: query
11 schema:
12 type: integer
13 responses:
14 '200':
15 description: List of plants
16 content:
17 application/json:
18 schema:
19 type: object
20 properties:
21 results:
22 type: array
23 items:
24 $ref: '#/components/schemas/Plant'

配置选项

x-fern-pagination 扩展支持以下属性:

PropertyDescription
offsetPath to the offset parameter in the request (e.g., $request.page)
cursorPath to the cursor parameter in the request (e.g., $request.cursor)
next_cursorPath to the next cursor value in the response (required for cursor pagination)
next_uriPath to the next page’s URL in the response (e.g., $response.next_page_url)
next_pathPath to the relative path for the next page in the response (e.g., $response.next_page_path)
resultsPath to the results array in the response (e.g., $response.data)
stepPath to the page size parameter, ensures offset increments correctly
has-next-pagePath to a boolean indicator for additional pages

查找 results 的位置

如果结果嵌套在响应对象中,请使用点访问记法指定路径。例如,如果结果位于 my_nested_object.inner_list 中,则 results 路径为 $response.my_nested_object.inner_list。

1MyResponseObject:
2 type: object
3 properties:
4 my_nested_object:
5 type: object
6 properties:
7 inner_list:
8 type: array
9 items:
10 $ref: '#/components/schemas/Plant'