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)
      • 身份验证
      • 服务器
      • 同步您的规范
        • HTTP JSON 端点
        • Webhooks
        • 多部分表单上传
        • 服务器发送事件
      • 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端点

HTTP JSON 端点

使用 application/json 内容类型记录 HTTP JSON API

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

同步您的 OpenAPI 规范

下一个

Webhooks

OpenAPI 中的端点定义在 paths 键下。以下是定义单个端点的示例:

openapi.yml
1paths:
2 /pets:
3 post:
4 summary: Create a new pet
5 description: Creates a new pet with the provided information
6 requestBody:
7 required: true
8 content:
9 application/json:
10 schema:
11 $ref: '#/components/schemas/Pet'
12 responses:
13 '200':
14 description: User created successfully
15 content:
16 application/json:
17 schema:
18 $ref: '#/components/schemas/Pet'

示例

您可以通过使用 examples 键来提供请求和响应的示例。

openapi.yml
1paths:
2 /pets:
3 post:
4 summary: Create a new pet
5 description: Creates a new pet with the provided information
6 requestBody:
7 required: true
8 content:
9 application/json:
10 schema:
11 $ref: '#/components/schemas/Pet'
12 examples:
13 PetExample:
14 summary: This is an example of a Pet
15 value:
16 name: Markley
17 id: 44
18 responses:
19 '200':
20 description: A Pet object
21 content:
22 application/json:
23 schema:
24 $ref: '#/components/schemas/Pet'
25 examples:
26 PetExample:
27 summary: This is an example of a Pet
28 value:
29 name: Markley
30 id: 44