{
    "openapi": "3.0.0",
    "info": {
        "title": "古今地名 - API文档",
        "version": "1.0.0",
        "description": "经过历史长河的岁月变迁，古代风雅的地名现在在何处？又或者演变成现在哪些城市，本接口可以查询部分历史地名的现在称谓，不定期补充欢迎查漏反馈。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/gjdm\/index": {
            "get": {
                "summary": "古今地名",
                "tags": [
                    "古今地名"
                ],
                "description": "古今地名查询，适合知识类场景",
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "description": "API密钥",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "API密钥"
                        }
                    },
                    {
                        "name": "word",
                        "in": "query",
                        "description": "古代地名",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "example": "安西",
                            "description": "古代地名"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "area": {
                                            "type": "string",
                                            "example": "安西",
                                            "description": "古名"
                                        },
                                        "introduce": {
                                            "type": "string",
                                            "example": "①元曾以京兆府为安西府，旋改路...",
                                            "description": "介绍"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "area": "安西",
                                        "introduce": "①元曾以京兆府为安西府，旋改路，又改奉元路，治咸宁、长安（今西安）。②清雍正时，在布隆吉镇置安西厅，移至今安西县地。后为府，继又改州。民国为安西县。"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "古今地名",
                "tags": [
                    "古今地名"
                ],
                "description": "古今地名查询，适合知识类场景",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    },
                                    "word": {
                                        "type": "string",
                                        "example": "安西",
                                        "description": "古代地名"
                                    }
                                },
                                "required": [
                                    "key",
                                    "word"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "area": {
                                            "type": "string",
                                            "example": "安西",
                                            "description": "古名"
                                        },
                                        "introduce": {
                                            "type": "string",
                                            "example": "①元曾以京兆府为安西府，旋改路...",
                                            "description": "介绍"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "area": "安西",
                                        "introduce": "①元曾以京兆府为安西府，旋改路，又改奉元路，治咸宁、长安（今西安）。②清雍正时，在布隆吉镇置安西厅，移至今安西县地。后为府，继又改州。民国为安西县。"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}