{
    "openapi": "3.0.0",
    "info": {
        "title": "星座运势 - API文档",
        "version": "1.0.0",
        "description": "查询十二星座每日运势，支持幸运色，工作指数，爱情指数。幸运色等等。年月日缺省时，默认为当天运势。\n十二星座英文名：aries 白羊座, taurus 金牛座, gemini 双子座, cancer 巨蟹座, leo 狮子座, virgo 处女座, libra 天秤座, scorpio 天蝎座, sagittarius 射手座, capricorn 摩羯座, aquarius 水瓶座, pisces 双鱼座。\n"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/star\/index": {
            "get": {
                "summary": "星座运势查询",
                "tags": [
                    "星座运势"
                ],
                "description": "",
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "description": "API密钥",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "API密钥"
                        }
                    },
                    {
                        "name": "date",
                        "in": "query",
                        "description": "日期",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2020-10-12",
                            "description": "日期"
                        }
                    },
                    {
                        "name": "astro",
                        "in": "query",
                        "description": "星座中文或英文名",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "example": "taurus",
                            "description": "星座中文或英文名"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "type": {
                                            "type": "string",
                                            "example": "今日概述",
                                            "description": "类型"
                                        },
                                        "content": {
                                            "type": "string",
                                            "example": "今天朋友里面有些计较算计的人，沟通不顺利。部分人可能会比较想宅家躺吃...",
                                            "description": "内容"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "type": "综合指数",
                                                "content": "80%"
                                            },
                                            {
                                                "type": "爱情指数",
                                                "content": "80%"
                                            },
                                            {
                                                "type": "工作指数",
                                                "content": "80%"
                                            },
                                            {
                                                "type": "财运指数",
                                                "content": "70%"
                                            },
                                            {
                                                "type": "健康指数",
                                                "content": "80%"
                                            },
                                            {
                                                "type": "幸运颜色",
                                                "content": "金色"
                                            },
                                            {
                                                "type": "幸运数字",
                                                "content": "9"
                                            },
                                            {
                                                "type": "贵人星座",
                                                "content": "处女座"
                                            },
                                            {
                                                "type": "今日概述",
                                                "content": "今天朋友里面有些计较算计的人，沟通不顺利。部分人可能会比较想宅家躺吃..."
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "星座运势查询",
                "tags": [
                    "星座运势"
                ],
                "description": "",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    },
                                    "date": {
                                        "type": "string",
                                        "example": "2020-10-12",
                                        "description": "日期"
                                    },
                                    "astro": {
                                        "type": "string",
                                        "example": "taurus",
                                        "description": "星座中文或英文名"
                                    }
                                },
                                "required": [
                                    "key",
                                    "astro"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "type": {
                                            "type": "string",
                                            "example": "今日概述",
                                            "description": "类型"
                                        },
                                        "content": {
                                            "type": "string",
                                            "example": "今天朋友里面有些计较算计的人，沟通不顺利。部分人可能会比较想宅家躺吃...",
                                            "description": "内容"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "type": "综合指数",
                                                "content": "80%"
                                            },
                                            {
                                                "type": "爱情指数",
                                                "content": "80%"
                                            },
                                            {
                                                "type": "工作指数",
                                                "content": "80%"
                                            },
                                            {
                                                "type": "财运指数",
                                                "content": "70%"
                                            },
                                            {
                                                "type": "健康指数",
                                                "content": "80%"
                                            },
                                            {
                                                "type": "幸运颜色",
                                                "content": "金色"
                                            },
                                            {
                                                "type": "幸运数字",
                                                "content": "9"
                                            },
                                            {
                                                "type": "贵人星座",
                                                "content": "处女座"
                                            },
                                            {
                                                "type": "今日概述",
                                                "content": "今天朋友里面有些计较算计的人，沟通不顺利。部分人可能会比较想宅家躺吃..."
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}