Files
gsfdc/demo-dify/dify/packages/openapi-content-mapper/examples/petstore/pets.openapi.yaml
T
wuzilongandCursor 6519682885 chore: 纳入本地 Dify 1.19.0 源码及品牌与免登改动
演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-18 13:59:25 +08:00

99 lines
2.2 KiB
YAML

openapi: 3.1.0
info:
title: Petstore inference demo
version: 1.0.0
paths:
/pets:
get:
operationId: listPets
parameters:
- name: limit
in: query
schema:
type: integer
- name: status
in: query
schema:
type: string
enum: [available, adopted]
responses:
'200':
description: Pets
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Pet'
post:
operationId: createPet
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [name]
properties:
name:
type: string
status:
type: string
enum: [available, adopted]
responses:
'201':
description: Created
content:
application/json:
schema:
$ref: '#/components/schemas/Pet'
/pets/{petId}:
parameters:
- $ref: '#/components/parameters/PetId'
get:
operationId: getPet
responses:
'200':
description: Found
content:
application/json:
schema:
$ref: '#/components/schemas/Pet'
'404':
description: Missing
content:
application/json:
schema:
type: object
required: [message]
properties:
message:
type: string
delete:
operationId: deletePet
responses:
'204':
description: Deleted
components:
parameters:
PetId:
name: petId
in: path
required: true
schema:
type: integer
schemas:
Pet:
type: object
required: [id, name, status]
properties:
id:
type: integer
name:
type: string
status:
type: string
enum: [available, adopted]
nickname:
type: [string, 'null']