{
    "openapi": "3.0.0",
    "info": {
        "title": "军事新闻 - API文档",
        "version": "1.0.0",
        "description": "国外及国际军情军事新闻动态，了解国防建设、世界各国军备武器等内容。新闻类接口功能扩展，混合全频道数据使用<a href=\"\/apiview\/87\" target=\"_blank\">综合新闻<\/a>接口、按频道分类输出使用<a href=\"\/apiview\/51\" target=\"_blank\">分类新闻<\/a>接口。本接口仅限用于内部数据分析和机器学习，不得用于终端展示。（MCP 服务由 分类新闻 接口统一提供）"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/military\/index": {
            "get": {
                "summary": "查询新闻列表",
                "tags": [
                    "军事新闻"
                ],
                "description": "默认返回10条最新资讯支持翻页和关键词搜索",
                "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": 10,
                            "description": "返回数量"
                        }
                    },
                    {
                        "name": "form",
                        "in": "query",
                        "description": "兼容历史问题，建议传1",
                        "required": false,
                        "schema": {
                            "type": "int",
                            "example": 0,
                            "description": "兼容历史问题，建议传1"
                        }
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "翻页",
                        "required": false,
                        "schema": {
                            "type": "int",
                            "example": 1,
                            "description": "翻页"
                        }
                    },
                    {
                        "name": "rand",
                        "in": "query",
                        "description": "随机获取",
                        "required": false,
                        "schema": {
                            "type": "int",
                            "example": 1,
                            "description": "随机获取"
                        }
                    },
                    {
                        "name": "word",
                        "in": "query",
                        "description": "检索关键词",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "天行数据",
                            "description": "检索关键词"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "example": "62ac899e8fcf654a74479b4239b4651f",
                                            "description": "新闻唯一ID"
                                        },
                                        "url": {
                                            "type": "string",
                                            "example": "https:\/\/www.tianapi.com\/article\/154",
                                            "description": "文章地址"
                                        },
                                        "ctime": {
                                            "type": "Date",
                                            "example": "2015-07-17",
                                            "description": "发布时间"
                                        },
                                        "title": {
                                            "type": "string",
                                            "example": "文章的标题",
                                            "description": "文章标题"
                                        },
                                        "allnum": {
                                            "type": "int",
                                            "example": 625,
                                            "description": "结果数"
                                        },
                                        "picUrl": {
                                            "type": "string",
                                            "example": "https:\/\/www.tianapi.com\/static\/img\/logo.png",
                                            "description": "封面图片"
                                        },
                                        "source": {
                                            "type": "string",
                                            "example": "文章来源",
                                            "description": "文章来源"
                                        },
                                        "curpage": {
                                            "type": "int",
                                            "example": 1,
                                            "description": "当前页"
                                        },
                                        "description": {
                                            "type": "string",
                                            "example": "文章的描述",
                                            "description": "文章描述"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "id": "38db4fab13cdc13350a637ed460209f2",
                                                "url": "http:\/\/news.china.com.cn\/2021-02\/04\/content_77183470.htm",
                                                "ctime": "2021-02-04 08:50",
                                                "title": "好男儿当兵去，66年来这个村的青年参军热情始终不减",
                                                "picUrl": "",
                                                "source": "中国军事",
                                                "description": "在万福村，适龄青年无论工作还是上学、无论是否在乡，达到年龄都会主动报名应征，这已经成为万福村一条不成文的规矩。先烈们的崇高精神感召着万福村人，万福村人也用爱国卫国的实际行动告慰着英灵，为巩固国防长城作出自己的贡献，书写着爱国拥军的光荣篇章。"
                                            },
                                            {
                                                "id": "57f53e79714dd201421aacba416b63f3",
                                                "url": "http:\/\/news.china.com.cn\/2021-02\/04\/content_77186617.htm",
                                                "ctime": "2021-02-04 08:51",
                                                "title": "第81集团军某旅邀请多军种典型主讲强军课堂",
                                                "picUrl": "",
                                                "source": "中国军事",
                                                "description": "”据该旅领导介绍，他们邀请火箭军等多军种典型授课，通过举办典型事迹报告会等，激发官兵扎根岗位、锤炼本领的精神动力。隆冬时节，该旅将部队拉至某地域展开冬季武器装备效能检验，创下多个重难点课目训练新纪录。"
                                            },
                                            {
                                                "id": "e89a81bf0911b43ef0d21f5ae0378658",
                                                "url": "http:\/\/news.china.com.cn\/2021-02\/04\/content_77186663.htm",
                                                "ctime": "2021-02-04 08:51",
                                                "title": "2021年全军院校招生文化统考复习参考教材公开发行",
                                                "picUrl": "",
                                                "source": "中国军事",
                                                "description": "徐小刚、特约记者吴旭报道：记者近日从军委训练管理部获悉，军队招生主管部门日前分批完成2021年全军院校招生文化科目统考复习参考教材审核，首批6本高中毕业生（含同等学力）士兵复习参考教材已由国防工业出版社公开出版发行。"
                                            }
                                        ],
                                        "allnum": 500,
                                        "curpage": 1
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "查询新闻列表",
                "tags": [
                    "军事新闻"
                ],
                "description": "默认返回10条最新资讯支持翻页和关键词搜索",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    },
                                    "num": {
                                        "type": "int",
                                        "example": 10,
                                        "description": "返回数量"
                                    },
                                    "form": {
                                        "type": "int",
                                        "example": 0,
                                        "description": "兼容历史问题，建议传1"
                                    },
                                    "page": {
                                        "type": "int",
                                        "example": 1,
                                        "description": "翻页"
                                    },
                                    "rand": {
                                        "type": "int",
                                        "example": 1,
                                        "description": "随机获取"
                                    },
                                    "word": {
                                        "type": "string",
                                        "example": "天行数据",
                                        "description": "检索关键词"
                                    }
                                },
                                "required": [
                                    "key",
                                    "num"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "example": "62ac899e8fcf654a74479b4239b4651f",
                                            "description": "新闻唯一ID"
                                        },
                                        "url": {
                                            "type": "string",
                                            "example": "https:\/\/www.tianapi.com\/article\/154",
                                            "description": "文章地址"
                                        },
                                        "ctime": {
                                            "type": "Date",
                                            "example": "2015-07-17",
                                            "description": "发布时间"
                                        },
                                        "title": {
                                            "type": "string",
                                            "example": "文章的标题",
                                            "description": "文章标题"
                                        },
                                        "allnum": {
                                            "type": "int",
                                            "example": 625,
                                            "description": "结果数"
                                        },
                                        "picUrl": {
                                            "type": "string",
                                            "example": "https:\/\/www.tianapi.com\/static\/img\/logo.png",
                                            "description": "封面图片"
                                        },
                                        "source": {
                                            "type": "string",
                                            "example": "文章来源",
                                            "description": "文章来源"
                                        },
                                        "curpage": {
                                            "type": "int",
                                            "example": 1,
                                            "description": "当前页"
                                        },
                                        "description": {
                                            "type": "string",
                                            "example": "文章的描述",
                                            "description": "文章描述"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "id": "38db4fab13cdc13350a637ed460209f2",
                                                "url": "http:\/\/news.china.com.cn\/2021-02\/04\/content_77183470.htm",
                                                "ctime": "2021-02-04 08:50",
                                                "title": "好男儿当兵去，66年来这个村的青年参军热情始终不减",
                                                "picUrl": "",
                                                "source": "中国军事",
                                                "description": "在万福村，适龄青年无论工作还是上学、无论是否在乡，达到年龄都会主动报名应征，这已经成为万福村一条不成文的规矩。先烈们的崇高精神感召着万福村人，万福村人也用爱国卫国的实际行动告慰着英灵，为巩固国防长城作出自己的贡献，书写着爱国拥军的光荣篇章。"
                                            },
                                            {
                                                "id": "57f53e79714dd201421aacba416b63f3",
                                                "url": "http:\/\/news.china.com.cn\/2021-02\/04\/content_77186617.htm",
                                                "ctime": "2021-02-04 08:51",
                                                "title": "第81集团军某旅邀请多军种典型主讲强军课堂",
                                                "picUrl": "",
                                                "source": "中国军事",
                                                "description": "”据该旅领导介绍，他们邀请火箭军等多军种典型授课，通过举办典型事迹报告会等，激发官兵扎根岗位、锤炼本领的精神动力。隆冬时节，该旅将部队拉至某地域展开冬季武器装备效能检验，创下多个重难点课目训练新纪录。"
                                            },
                                            {
                                                "id": "e89a81bf0911b43ef0d21f5ae0378658",
                                                "url": "http:\/\/news.china.com.cn\/2021-02\/04\/content_77186663.htm",
                                                "ctime": "2021-02-04 08:51",
                                                "title": "2021年全军院校招生文化统考复习参考教材公开发行",
                                                "picUrl": "",
                                                "source": "中国军事",
                                                "description": "徐小刚、特约记者吴旭报道：记者近日从军委训练管理部获悉，军队招生主管部门日前分批完成2021年全军院校招生文化科目统考复习参考教材审核，首批6本高中毕业生（含同等学力）士兵复习参考教材已由国防工业出版社公开出版发行。"
                                            }
                                        ],
                                        "allnum": 500,
                                        "curpage": 1
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}