{
  "openapi": "3.0.3",
  "info": {
    "title": "健康知识",
    "description": "每天更新，提供最实用的健康小知识、健康保健知识、男性健康、女性健康、老年人健康、亚健康如何调理等日常生活健康大全，学会健康养生之道，享受健康快乐生活！",
    "termsOfService": "https://www.showapi.com/helpcenter/view#/4019/2",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://route.showapi.com"
    }
  ],
  "paths": {
    "/90-88": {
      "x-pointCode": 88,
      "x-mode": "mapping",
      "x-read-timeout": 15,
      "x-connect-timeout": 15,
      "post": {
        "summary": "查看单条知识详情",
        "description": "健康知识的接入点是一个专为用户提供详细健康信息的服务接口。用户可以通过这个接口查看特定的健康知识详情，包括但不限于疾病预防、健康生活方式、营养建议、运动指南等方面的内容。",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "ret_code": {
                              "type": "string"
                            },
                            "remark": {
                              "type": "string"
                            },
                            "item": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "description": "知识文章id"
                                },
                                "content": {
                                  "type": "string",
                                  "description": "知识文章内容"
                                },
                                "title": {
                                  "type": "string",
                                  "description": "标题"
                                },
                                "keywords": {
                                  "type": "string",
                                  "description": "关键词"
                                },
                                "stitle": {
                                  "type": "string",
                                  "description": "副标题"
                                },
                                "img": {
                                  "type": "string",
                                  "description": "图片（无）"
                                },
                                "tname": {
                                  "type": "string",
                                  "description": "分类名称"
                                },
                                "media_name": {
                                  "type": "string",
                                  "description": "媒体人"
                                },
                                "tid": {
                                  "type": "string",
                                  "description": "分类"
                                },
                                "ctime": {
                                  "type": "string",
                                  "description": "发布时间"
                                },
                                "intro": {
                                  "type": "string",
                                  "description": "简介"
                                }
                              }
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "90_88_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "知识id"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        }
      }
    },
    "/90-87": {
      "x-pointCode": 87,
      "x-mode": "mapping",
      "x-read-timeout": 15,
      "x-connect-timeout": 15,
      "post": {
        "summary": "搜索知识",
        "description": "输入想查看的健康关键词信息，即可查看其知识简介、内容标题、分类名、创建时间和知识链接等内容。",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "ret_code": {
                              "type": "string",
                              "description": "成功标志 0为成功  其它失败"
                            },
                            "remark": {
                              "type": "string",
                              "description": "调用描述"
                            },
                            "pagebean": {
                              "type": "object",
                              "properties": {
                                "allPages": {
                                  "type": "number",
                                  "description": "页面数"
                                },
                                "contentlist": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "description": "知识文章id"
                                      },
                                      "title": {
                                        "type": "string",
                                        "description": "标题"
                                      },
                                      "keywords": {
                                        "type": "string",
                                        "description": "关键词"
                                      },
                                      "tname": {
                                        "type": "string",
                                        "description": "分类名称"
                                      },
                                      "media_name": {
                                        "type": "string",
                                        "description": "媒体人"
                                      },
                                      "tid": {
                                        "type": "string",
                                        "description": "分类id"
                                      },
                                      "wapurl": {
                                        "type": "string",
                                        "description": "知识文章原链接地址"
                                      },
                                      "ctime": {
                                        "type": "string",
                                        "description": "发布时间"
                                      },
                                      "intro": {
                                        "type": "string",
                                        "description": "简介"
                                      },
                                      "url": {
                                        "type": "string",
                                        "description": "知识文章原链接地址"
                                      }
                                    }
                                  }
                                },
                                "currentPage": {
                                  "type": "number",
                                  "description": "当前页"
                                },
                                "allNum": {
                                  "type": "number",
                                  "description": "总条数"
                                },
                                "maxResult": {
                                  "type": "number",
                                  "description": "每页最大数"
                                }
                              }
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "90_87_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "tid": {
                    "type": "string",
                    "description": "类目id"
                  },
                  "key": {
                    "type": "string",
                    "description": "搜索的关键词"
                  },
                  "page": {
                    "type": "string",
                    "description": "请求页数，每页最大返回20条"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/90-86": {
      "x-pointCode": 86,
      "x-mode": "mapping",
      "x-read-timeout": 5,
      "x-connect-timeout": 5,
      "post": {
        "summary": "分类列表",
        "description": "获取健康知识的分类ID和分类名称",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "ret_code": {
                              "type": "string",
                              "description": "接口调用是否成功,0为成功,其他为失败"
                            },
                            "list": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "number",
                                    "description": "分类id"
                                  },
                                  "name": {
                                    "type": "string",
                                    "description": "分类名称"
                                  }
                                }
                              }
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "90_86_POST",
        "parameters": []
      }
    }
  },
  "components": {
    "securitySchemes": {
      "AppKeyAuth": {
        "type": "apiKey",
        "in": "query",
        "name": "appKey",
        "description": "从 ShowAPI 控制台获取的 appKey，管理地址：https://www.showapi.com/console#/myApp"
      }
    },
    "schemas": {
      "ShowapiResEnvelope": {
        "type": "object",
        "description": "ShowAPI 统一返回包裹（业务数据位于 showapi_res_body）",
        "properties": {
          "showapi_res_code": {
            "type": "integer",
            "description": "API 返回的状态码"
          },
          "showapi_res_error": {
            "type": "string",
            "description": "API 返回的错误信息"
          },
          "showapi_res_id": {
            "type": "string",
            "description": "API 请求的唯一标识"
          },
          "showapi_fee_num": {
            "type": "integer",
            "description": "API 调用计费次数"
          }
        }
      }
    }
  },
  "security": [
    {
      "AppKeyAuth": []
    }
  ],
  "externalDocs": {
    "url": "https://www.showapi.com/apiGateway/view/90?tab=book"
  },
  "x-apiCode": "90",
  "x-is-own": false,
  "x-is-op": true
}