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 定义?
    • 项目结构
      • 概览
      • 身份验证
      • 类型
        • 概览
        • HTTP JSON 端点
        • 多部分表单上传
        • 字节
        • 服务器发送事件
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
预约演示登录免费开始
在本页
  • 示例
Fern 定义端点

HTTP JSON 端点

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

Fern Definition 中的端点

下一个

多部分文件上传

端点在 Fern 中定义在 endpoints 键下。以下是定义单个 REST 端点的示例:

users.yml
1service:
2 base-path: /users
3 auth: false
4 endpoints:
5 createUser:
6 path: /create
7 method: POST
8 request:
9 body:
10 properties:
11 userName: string

示例

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

1service:
2 base-path: /users
3 auth: false
4 endpoints:
5 getUser:
6 path: /{userId}
7 path-parameters:
8 userId: string
9 method: GET
10 response: User
11 examples:
12 - path-parameters:
13 userId: alice-user-id
14 response:
15 body:
16 userId: alice-user-id
17 name: Alice