{
    "openapi": "3.0.0",
    "info": {
        "title": "每日简报 - API文档",
        "version": "1.0.0",
        "description": "查询每日新闻简报，返回热点新闻发生时间、标题和简介等。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/bulletin\/index": {
            "get": {
                "summary": "简报列表查询",
                "tags": [
                    "每日简报"
                ],
                "description": "查询每日热点新闻简报列表",
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "description": "API密钥",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "API密钥"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "mtime": {
                                            "type": "string",
                                            "example": "2019-09-09",
                                            "description": "新闻时间"
                                        },
                                        "title": {
                                            "type": "string",
                                            "example": "深圳一车主汽车停上绿化带3小时被罚3230元",
                                            "description": "新闻标题"
                                        },
                                        "digest": {
                                            "type": "string",
                                            "example": "近日，深圳一车主将车在公共绿化带上停了3个小时......",
                                            "description": "简报内容"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "mtime": "2019-09-09",
                                                "title": "深圳一车主汽车停上绿化带3小时被罚3230元",
                                                "digest": "近日，深圳一车主将车在公共绿化带上停了3个小时。根据当地规定，经执法人员测量，按照每平方米五百元，对涉事车主开具了一张3230元的罚单。"
                                            },
                                            {
                                                "mtime": "2019-09-09",
                                                "title": "深圳拟出新规：开车时玩手机将罚300元，11月实施",
                                                "digest": "深圳新规：驾驶过程中，有手动操作移动电话、移动电子设备或者有其他妨碍安全驾驶行为的，处300元罚款。该新规将于11月1日起施行。"
                                            },
                                            {
                                                "mtime": "2019-09-09",
                                                "title": "香港小姐冠军出炉，长相撞脸李嘉欣实至名归，却被上届港姐抢镜",
                                                "digest": "2019年香港小姐比赛结果出炉：黄嘉雯夺得冠军，王菲、古佩玲分别成为此次香港小姐的亚军、季军。"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "简报列表查询",
                "tags": [
                    "每日简报"
                ],
                "description": "查询每日热点新闻简报列表",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    }
                                },
                                "required": [
                                    "key"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "mtime": {
                                            "type": "string",
                                            "example": "2019-09-09",
                                            "description": "新闻时间"
                                        },
                                        "title": {
                                            "type": "string",
                                            "example": "深圳一车主汽车停上绿化带3小时被罚3230元",
                                            "description": "新闻标题"
                                        },
                                        "digest": {
                                            "type": "string",
                                            "example": "近日，深圳一车主将车在公共绿化带上停了3个小时......",
                                            "description": "简报内容"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "mtime": "2019-09-09",
                                                "title": "深圳一车主汽车停上绿化带3小时被罚3230元",
                                                "digest": "近日，深圳一车主将车在公共绿化带上停了3个小时。根据当地规定，经执法人员测量，按照每平方米五百元，对涉事车主开具了一张3230元的罚单。"
                                            },
                                            {
                                                "mtime": "2019-09-09",
                                                "title": "深圳拟出新规：开车时玩手机将罚300元，11月实施",
                                                "digest": "深圳新规：驾驶过程中，有手动操作移动电话、移动电子设备或者有其他妨碍安全驾驶行为的，处300元罚款。该新规将于11月1日起施行。"
                                            },
                                            {
                                                "mtime": "2019-09-09",
                                                "title": "香港小姐冠军出炉，长相撞脸李嘉欣实至名归，却被上届港姐抢镜",
                                                "digest": "2019年香港小姐比赛结果出炉：黄嘉雯夺得冠军，王菲、古佩玲分别成为此次香港小姐的亚军、季军。"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}