Files
Stephen Zhouandautofix-ci[bot] 226110d611 feat(web): set up @dify/openapi-content-mapper foundations (#44627)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-10-26 05:06:34 +00: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']