Documentation Index
Fetch the complete documentation index at: https://omer-914cc1c6.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
如果你的用户通过 SDK 而非直接发起网络请求来与 API 交互,你可以使用 x-codeSamples 扩展将代码示例添加到 OpenAPI 文档中,并在 OpenAPI 页面上展示。
此属性可添加到任意请求方法,并具有以下结构。
下面是一个植物追踪应用的代码示例,包含 Bash 命令行界面(CLI)工具和 JavaScript SDK。
paths:
/plants:
get:
# ...
x-codeSamples:
- lang: bash
label: 列出所有未浇水的植物
source: |
planter list -u
- lang: javascript
label: 列出所有未浇水的植物
source: |
const planter = require('planter');
planter.list({ unwatered: true });
- lang: bash
label: 列出所有盆栽植物
source: |
planter list -p
- lang: javascript
label: 列出所有盆栽植物
source: |
const planter = require('planter');
planter.list({ potted: true });