{
    "openapi": "3.0.0",
    "info": {
        "title": "宠物大全 - API文档",
        "version": "1.0.0",
        "description": "包含猫咪、犬类、爬行动物、小动物、水族类等宠物的生活习性、喂养方法、价格、祖籍、体态特点和图片等信息。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/pet\/index": {
            "get": {
                "summary": "宠物信息查询",
                "tags": [
                    "宠物大全"
                ],
                "description": "根据宠物品种查询宠物详细习性和喂养等相关信息",
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "description": "API密钥",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "API密钥"
                        }
                    },
                    {
                        "name": "num",
                        "in": "query",
                        "description": "每页返回数量",
                        "required": true,
                        "schema": {
                            "type": "int",
                            "example": 5,
                            "description": "每页返回数量"
                        }
                    },
                    {
                        "name": "name",
                        "in": "query",
                        "description": "宠物名称",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "哈士奇",
                            "description": "宠物名称"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "翻页",
                        "required": true,
                        "schema": {
                            "type": "int",
                            "example": 1,
                            "description": "翻页"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "description": "宠物类型，0猫科、1犬类、2爬行类、3小宠物类、4水族类",
                        "required": false,
                        "schema": {
                            "type": "int",
                            "example": 1,
                            "description": "宠物类型，0猫科、1犬类、2爬行类、3小宠物类、4水族类"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "url": {
                                            "type": "string",
                                            "description": "详细来源"
                                        },
                                        "desc": {
                                            "type": "string",
                                            "example": "西伯利亚",
                                            "description": "描述"
                                        },
                                        "life": {
                                            "type": "string",
                                            "example": "9-15年",
                                            "description": "寿命"
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "哈士奇",
                                            "description": "宠物名字"
                                        },
                                        "price": {
                                            "type": "string",
                                            "example": "2000-4000元",
                                            "description": "价格"
                                        },
                                        "nation": {
                                            "type": "string",
                                            "example": "俄罗斯",
                                            "description": "祖籍"
                                        },
                                        "engName": {
                                            "type": "string",
                                            "example": "SiberianHuskiy",
                                            "description": "宠物英文名"
                                        },
                                        "feature": {
                                            "type": "string",
                                            "example": "西伯利亚雪橇犬是一种原始的古老犬种......",
                                            "description": "体态特征"
                                        },
                                        "pettype": {
                                            "type": "int",
                                            "example": 1,
                                            "description": "宠物类型，0猫科、1犬类、2爬行类、3小宠物类、4水族类"
                                        },
                                        "coverURL": {
                                            "type": "string",
                                            "example": "http:\/\/img.tianapi.com\/\/251123.png",
                                            "description": "图片"
                                        },
                                        "characters": {
                                            "type": "string",
                                            "example": "聪明机灵、极度热情、神经质",
                                            "description": "性格特点"
                                        },
                                        "feedPoints": {
                                            "type": "string",
                                            "example": "哈士奇有着敏感的肠胃......",
                                            "description": "喂养注意"
                                        },
                                        "careKnowledge": {
                                            "type": "string",
                                            "example": "哈士奇虽然看着一副冷漠无情的样子......",
                                            "description": "照顾须知"
                                        },
                                        "easyOfDisease": {
                                            "type": "string",
                                            "example": "肠胃疾病",
                                            "description": "易患病"
                                        },
                                        "characterFeature": {
                                            "type": "string",
                                            "example": "哈士奇的外表英俊潇洒......",
                                            "description": "特点"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "desc": "　　西伯利亚",
                                                "life": "9-15年",
                                                "name": "哈士奇",
                                                "price": "2000-4000元",
                                                "nation": "俄罗斯",
                                                "engName": "SiberianHuskiy",
                                                "feature": "　　西伯利亚雪橇犬是一种原始的古老犬种，因它的独特嘶哑的叫声被称之为当今的哈士奇。很早前哈士奇是最原始的交通工具专门拉雪橇的，并用这种狗猎取和饲养驯鹿，或者繁殖这种狗，然后带出他们居住的冻土地，换取温饱。典型狼性犬。",
                                                "pettype": 1,
                                                "coverURL": "http:\/\/img.tianapi.com\/\/251123.png",
                                                "characters": "聪明机灵、极度热情、神经质",
                                                "feedPoints": "哈士奇有着敏感的肠胃，因此在饮食上需要主人多加重视，",
                                                "careKnowledge": "　　哈士奇虽然看着一副冷漠无情的样子，事实上，哈士奇对人很友好、温柔、热情的。喜欢与人交往是哈士奇的典型性格。通常不表现出护卫犬强烈的领地占有欲，不对陌生人过多的怀疑，也不会攻击其他犬类。因此有很多人喜欢哈士奇。他对主人非常忠诚，一条忠诚的小狗有一个健康的身体是非常重要的。",
                                                "easyOfDisease": "肠胃疾病",
                                                "characterFeature": "　　哈士奇的外表英俊潇洒，精致的五官和丰富的肢体语言充满了奇特的表现，无需复杂的交谈，就能轻易了解他的喜怒哀乐。哈士奇时常会有点神经质。"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "宠物信息查询",
                "tags": [
                    "宠物大全"
                ],
                "description": "根据宠物品种查询宠物详细习性和喂养等相关信息",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    },
                                    "num": {
                                        "type": "int",
                                        "example": 5,
                                        "description": "每页返回数量"
                                    },
                                    "name": {
                                        "type": "string",
                                        "example": "哈士奇",
                                        "description": "宠物名称"
                                    },
                                    "page": {
                                        "type": "int",
                                        "example": 1,
                                        "description": "翻页"
                                    },
                                    "type": {
                                        "type": "int",
                                        "example": 1,
                                        "description": "宠物类型，0猫科、1犬类、2爬行类、3小宠物类、4水族类"
                                    }
                                },
                                "required": [
                                    "key",
                                    "num",
                                    "page"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "url": {
                                            "type": "string",
                                            "description": "详细来源"
                                        },
                                        "desc": {
                                            "type": "string",
                                            "example": "西伯利亚",
                                            "description": "描述"
                                        },
                                        "life": {
                                            "type": "string",
                                            "example": "9-15年",
                                            "description": "寿命"
                                        },
                                        "name": {
                                            "type": "string",
                                            "example": "哈士奇",
                                            "description": "宠物名字"
                                        },
                                        "price": {
                                            "type": "string",
                                            "example": "2000-4000元",
                                            "description": "价格"
                                        },
                                        "nation": {
                                            "type": "string",
                                            "example": "俄罗斯",
                                            "description": "祖籍"
                                        },
                                        "engName": {
                                            "type": "string",
                                            "example": "SiberianHuskiy",
                                            "description": "宠物英文名"
                                        },
                                        "feature": {
                                            "type": "string",
                                            "example": "西伯利亚雪橇犬是一种原始的古老犬种......",
                                            "description": "体态特征"
                                        },
                                        "pettype": {
                                            "type": "int",
                                            "example": 1,
                                            "description": "宠物类型，0猫科、1犬类、2爬行类、3小宠物类、4水族类"
                                        },
                                        "coverURL": {
                                            "type": "string",
                                            "example": "http:\/\/img.tianapi.com\/\/251123.png",
                                            "description": "图片"
                                        },
                                        "characters": {
                                            "type": "string",
                                            "example": "聪明机灵、极度热情、神经质",
                                            "description": "性格特点"
                                        },
                                        "feedPoints": {
                                            "type": "string",
                                            "example": "哈士奇有着敏感的肠胃......",
                                            "description": "喂养注意"
                                        },
                                        "careKnowledge": {
                                            "type": "string",
                                            "example": "哈士奇虽然看着一副冷漠无情的样子......",
                                            "description": "照顾须知"
                                        },
                                        "easyOfDisease": {
                                            "type": "string",
                                            "example": "肠胃疾病",
                                            "description": "易患病"
                                        },
                                        "characterFeature": {
                                            "type": "string",
                                            "example": "哈士奇的外表英俊潇洒......",
                                            "description": "特点"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "desc": "　　西伯利亚",
                                                "life": "9-15年",
                                                "name": "哈士奇",
                                                "price": "2000-4000元",
                                                "nation": "俄罗斯",
                                                "engName": "SiberianHuskiy",
                                                "feature": "　　西伯利亚雪橇犬是一种原始的古老犬种，因它的独特嘶哑的叫声被称之为当今的哈士奇。很早前哈士奇是最原始的交通工具专门拉雪橇的，并用这种狗猎取和饲养驯鹿，或者繁殖这种狗，然后带出他们居住的冻土地，换取温饱。典型狼性犬。",
                                                "pettype": 1,
                                                "coverURL": "http:\/\/img.tianapi.com\/\/251123.png",
                                                "characters": "聪明机灵、极度热情、神经质",
                                                "feedPoints": "哈士奇有着敏感的肠胃，因此在饮食上需要主人多加重视，",
                                                "careKnowledge": "　　哈士奇虽然看着一副冷漠无情的样子，事实上，哈士奇对人很友好、温柔、热情的。喜欢与人交往是哈士奇的典型性格。通常不表现出护卫犬强烈的领地占有欲，不对陌生人过多的怀疑，也不会攻击其他犬类。因此有很多人喜欢哈士奇。他对主人非常忠诚，一条忠诚的小狗有一个健康的身体是非常重要的。",
                                                "easyOfDisease": "肠胃疾病",
                                                "characterFeature": "　　哈士奇的外表英俊潇洒，精致的五官和丰富的肢体语言充满了奇特的表现，无需复杂的交谈，就能轻易了解他的喜怒哀乐。哈士奇时常会有点神经质。"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}