{
    "openapi": "3.0.0",
    "info": {
        "title": "扩展名查询 - API文档",
        "version": "1.0.0",
        "description": "收集数千种常用文件系统扩展名，本接口支持查询扩展名的含义及说明。由于扩展名是可以由开发者或用户随便自定义的，因此此处查询的事较为通用的含义解释。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/targa\/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": "apk",
                            "description": "扩展名，文件后缀名"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "notes": {
                                            "type": "string",
                                            "example": "Android应用程序包文件格式...",
                                            "description": "含义说明"
                                        },
                                        "targa": {
                                            "type": "string",
                                            "example": "apk",
                                            "description": "扩展名，即文件后缀"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "notes": "Android应用程序包（Android application package），Android操作系统使用的一种应用程序包文件格式",
                                        "targa": "apk"
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "查询文件扩展名信息",
                "tags": [
                    "扩展名查询"
                ],
                "description": "通过后缀名查询文件扩展名信息",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    },
                                    "word": {
                                        "type": "string",
                                        "example": "apk",
                                        "description": "扩展名，文件后缀名"
                                    }
                                },
                                "required": [
                                    "key",
                                    "word"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "notes": {
                                            "type": "string",
                                            "example": "Android应用程序包文件格式...",
                                            "description": "含义说明"
                                        },
                                        "targa": {
                                            "type": "string",
                                            "example": "apk",
                                            "description": "扩展名，即文件后缀"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "notes": "Android应用程序包（Android application package），Android操作系统使用的一种应用程序包文件格式",
                                        "targa": "apk"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}