{
    "openapi": "3.0.0",
    "info": {
        "title": "十万为什么 - API文档",
        "version": "1.0.0",
        "description": "十万个为什么查询接口，包含分类（typeid）有：1人体奥秘、2天文地理、3军事与交通、4生物王国、5数理化之谜、6信息与科技、7历史的长河、8文化与艺术、9国家与体育、10营养与健康、11青少儿。没传任何参数的情况下，默认随机返回。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/tenwhy\/index": {
            "get": {
                "summary": "十万为什么查询",
                "tags": [
                    "十万为什么"
                ],
                "description": "默认随机返回，支持翻页、关键词搜索",
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "description": "API密钥",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "API密钥"
                        }
                    },
                    {
                        "name": "num",
                        "in": "query",
                        "description": "返回数量，范围1-10",
                        "required": false,
                        "schema": {
                            "type": "int",
                            "example": 1,
                            "description": "返回数量，范围1-10"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "翻页",
                        "required": false,
                        "schema": {
                            "type": "int",
                            "example": 1,
                            "description": "翻页"
                        }
                    },
                    {
                        "name": "word",
                        "in": "query",
                        "description": "搜索内容标题",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "男子",
                            "description": "搜索内容标题"
                        }
                    },
                    {
                        "name": "typeid",
                        "in": "query",
                        "description": "指定类型",
                        "required": false,
                        "schema": {
                            "type": "int",
                            "example": 1,
                            "description": "指定类型"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "title": {
                                            "type": "string",
                                            "example": "为什么女子的肌肉没有男子的肌肉发达",
                                            "description": "标题"
                                        },
                                        "typeid": {
                                            "type": "int",
                                            "example": 1,
                                            "description": "类型，请参考上面的说明"
                                        },
                                        "content": {
                                            "type": "string",
                                            "example": "动物在长期的进化过程......",
                                            "description": "内容"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "title": "为什么女子的肌肉没有男子的肌肉发达",
                                                "typeid": 1,
                                                "content": "动物在长期的进化过程，雄性与雌性地身体结构因分工的不同发生了差异。雄性者要猎取食物，抵抗入侵者，要在竞争中生存，就必须身强力壮。自然选择的结果，肌肉发达、肌骼粗壮的保存了下来，身体衰弱者被淘汰灭亡。雌性怀孕生育，哺乳后代，其乳房发达，体态丰满，皮肤细腻，骨盆比雄性宽大，但骨骼与肌肉的发育相对比雄性弱些。动物雌、雄性的这些构造特点亦表现在人类身上。形态与功能是统一的。经常锻炼身体，通过健美操的训练，女子的肌肉亦可练得很粗壮。反之，男性发达的肌肉若不去锻炼，亦会萎缩松软。但不管怎样锻炼，女性的解剖结构与男性的差异，仍然存在。女性肌肉的质与量相对比男性弱，而脂肪组织相对比男性多。"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "十万为什么查询",
                "tags": [
                    "十万为什么"
                ],
                "description": "默认随机返回，支持翻页、关键词搜索",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    },
                                    "num": {
                                        "type": "int",
                                        "example": 1,
                                        "description": "返回数量，范围1-10"
                                    },
                                    "page": {
                                        "type": "int",
                                        "example": 1,
                                        "description": "翻页"
                                    },
                                    "word": {
                                        "type": "string",
                                        "example": "男子",
                                        "description": "搜索内容标题"
                                    },
                                    "typeid": {
                                        "type": "int",
                                        "example": 1,
                                        "description": "指定类型"
                                    }
                                },
                                "required": [
                                    "key"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "title": {
                                            "type": "string",
                                            "example": "为什么女子的肌肉没有男子的肌肉发达",
                                            "description": "标题"
                                        },
                                        "typeid": {
                                            "type": "int",
                                            "example": 1,
                                            "description": "类型，请参考上面的说明"
                                        },
                                        "content": {
                                            "type": "string",
                                            "example": "动物在长期的进化过程......",
                                            "description": "内容"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "title": "为什么女子的肌肉没有男子的肌肉发达",
                                                "typeid": 1,
                                                "content": "动物在长期的进化过程，雄性与雌性地身体结构因分工的不同发生了差异。雄性者要猎取食物，抵抗入侵者，要在竞争中生存，就必须身强力壮。自然选择的结果，肌肉发达、肌骼粗壮的保存了下来，身体衰弱者被淘汰灭亡。雌性怀孕生育，哺乳后代，其乳房发达，体态丰满，皮肤细腻，骨盆比雄性宽大，但骨骼与肌肉的发育相对比雄性弱些。动物雌、雄性的这些构造特点亦表现在人类身上。形态与功能是统一的。经常锻炼身体，通过健美操的训练，女子的肌肉亦可练得很粗壮。反之，男性发达的肌肉若不去锻炼，亦会萎缩松软。但不管怎样锻炼，女性的解剖结构与男性的差异，仍然存在。女性肌肉的质与量相对比男性弱，而脂肪组织相对比男性多。"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}