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 格式查看|
此页面是否有帮助?
在仪表板中编辑
上一个

分页

下一个

模式名称

x-fern-retries 扩展仅在 Python SDK 中受支持。

x-fern-retries 扩展在您的 OpenAPI 规范中为每个端点配置重试行为,覆盖 SDK 用户配置的任何重试设置。使用它可以为非幂等操作(如支付处理或订单创建)禁用重试。

要为特定端点禁用重试,请设置 disabled: true。

openapi.yml
1paths:
2 /plants/{plantId}:
3 get:
4 x-fern-retries:
5 disabled: true
6 operationId: get_plant
7 parameters:
8 - name: plantId
9 in: path
10 required: true
11 schema:
12 type: string
13 /plants:
14 post:
15 x-fern-retries:
16 disabled: true
17 operationId: create_plant
18 requestBody:
19 required: true
20 content:
21 application/json:
22 schema:
23 type: object
24 properties:
25 name:
26 type: string
27 species:
28 type: string
29 responses:
30 '201':
31 description: Plant created successfully

当在端点级别禁用重试时,生成的 SDK 不会重试对该端点的失败请求,无论 SDK 用户的自定义配置如何。