{
    "openapi": "3.0.0",
    "info": {
        "title": "汽车OBD查询 - API文档",
        "version": "1.0.0",
        "description": "车载自诊断系统OBD故障码查询，返回适用车型、中英文含义、故障范围和描述等信息。"
    },
    "servers": [
        {
            "url": "https:\/\/apis.tianapi.com"
        }
    ],
    "paths": {
        "\/obdcode\/index": {
            "get": {
                "summary": "查询汽车OBD信息",
                "tags": [
                    "汽车OBD查询"
                ],
                "description": "",
                "parameters": [
                    {
                        "name": "key",
                        "in": "query",
                        "description": "API密钥",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "description": "API密钥"
                        }
                    },
                    {
                        "name": "code",
                        "in": "query",
                        "description": "OBD故障代码",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "example": "P267B",
                            "description": "OBD故障代码"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "code": {
                                            "type": "string",
                                            "example": "P267B",
                                            "description": "故障代码"
                                        },
                                        "descr": {
                                            "type": "string",
                                            "example": "可变气门正时系统中，摇臂是连接凸轮轴...",
                                            "description": "故障描述"
                                        },
                                        "ennote": {
                                            "type": "string",
                                            "example": "B Rocker Arm Actuator Position Sensor...",
                                            "description": "含义（英文）"
                                        },
                                        "zhnote": {
                                            "type": "string",
                                            "example": "B摇臂执行器位置传感器电路范围\/性能 （第2排）",
                                            "description": "含义（中文）"
                                        },
                                        "carmodel": {
                                            "type": "string",
                                            "example": "该OBD故障码适用于所有汽车制造商",
                                            "description": "适用车型"
                                        },
                                        "category": {
                                            "type": "string",
                                            "example": "计算机或辅助输出",
                                            "description": "故障范围类型"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "code": "P267B",
                                                "descr": "可变气门正时系统中，摇臂是连接凸轮轴和气门的一个装置。电子控制模块可以通过改变到摇臂执行器的机油压力的方式来调整凸轮轴的角度，以确保气门在最佳时间打开和关闭。从而优化发动机在所有转速范围内的效率和功率。",
                                                "ennote": "B Rocker Arm Actuator Position Sensor Circuit Range\/Performance (Bank 2)",
                                                "zhnote": "B摇臂执行器位置传感器电路范围\/性能 （第2排）",
                                                "carmodel": "该OBD故障码适用于所有汽车制造商",
                                                "category": "计算机或辅助输出"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "查询汽车OBD信息",
                "tags": [
                    "汽车OBD查询"
                ],
                "description": "",
                "requestBody": {
                    "content": {
                        "application\/x-www-form-urlencoded": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "key": {
                                        "type": "string",
                                        "description": "API密钥"
                                    },
                                    "code": {
                                        "type": "string",
                                        "example": "P267B",
                                        "description": "OBD故障代码"
                                    }
                                },
                                "required": [
                                    "key",
                                    "code"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "成功响应",
                        "content": {
                            "application\/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "code": {
                                            "type": "string",
                                            "example": "P267B",
                                            "description": "故障代码"
                                        },
                                        "descr": {
                                            "type": "string",
                                            "example": "可变气门正时系统中，摇臂是连接凸轮轴...",
                                            "description": "故障描述"
                                        },
                                        "ennote": {
                                            "type": "string",
                                            "example": "B Rocker Arm Actuator Position Sensor...",
                                            "description": "含义（英文）"
                                        },
                                        "zhnote": {
                                            "type": "string",
                                            "example": "B摇臂执行器位置传感器电路范围\/性能 （第2排）",
                                            "description": "含义（中文）"
                                        },
                                        "carmodel": {
                                            "type": "string",
                                            "example": "该OBD故障码适用于所有汽车制造商",
                                            "description": "适用车型"
                                        },
                                        "category": {
                                            "type": "string",
                                            "example": "计算机或辅助输出",
                                            "description": "故障范围类型"
                                        }
                                    }
                                },
                                "example": {
                                    "msg": "success",
                                    "code": 200,
                                    "result": {
                                        "list": [
                                            {
                                                "code": "P267B",
                                                "descr": "可变气门正时系统中，摇臂是连接凸轮轴和气门的一个装置。电子控制模块可以通过改变到摇臂执行器的机油压力的方式来调整凸轮轴的角度，以确保气门在最佳时间打开和关闭。从而优化发动机在所有转速范围内的效率和功率。",
                                                "ennote": "B Rocker Arm Actuator Position Sensor Circuit Range\/Performance (Bank 2)",
                                                "zhnote": "B摇臂执行器位置传感器电路范围\/性能 （第2排）",
                                                "carmodel": "该OBD故障码适用于所有汽车制造商",
                                                "category": "计算机或辅助输出"
                                            }
                                        ]
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}