跳到主要内容

Pet

OpenAPI Specification

openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths: {}
components:
schemas:
Tag:
type: object
properties:
id:
type: integer
format: int64
minimum: 1
description: 标签ID编号
name:
type: string
description: 标签名称
xml:
name: Tag
x-apifox-orders:
- id
- name
x-apifox-folder: ''
Category:
type: object
properties:
id:
type: integer
format: int64
minimum: 1
description: 分组ID编号
name:
type: string
description: 分组名称
xml:
name: Category
x-apifox-orders:
- id
- name
x-apifox-folder: ''
Pet:
required:
- name
- photoUrls
- id
- category
- tags
- status
type: object
properties:
id:
type: integer
format: int64
minimum: 1
description: 宠物ID编号
category:
$ref: '#/components/schemas/Category'
description: 分组
name:
type: string
description: 名称
examples:
- doggie
photoUrls:
type: array
items:
type: string
description: 照片URL
tags:
type: array
items:
$ref: '#/components/schemas/Tag'
description: 标签
status:
type: string
description: 宠物销售状态
enum:
- available
- pending
- sold
x-apifox-orders:
- id
- category
- name
- photoUrls
- tags
- status
x-apifox-folder: ''
securitySchemes: {}
servers:
- url: '{{base_url}}'
description: 测试环境
- url: https://newapi.eronmind.com
description: 正式环境
security: []