{
  "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": {
    "/1700-3": {
      "x-pointCode": 3,
      "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": "number",
                              "description": "接口调用是否成功,0为成功,其他为失败"
                            },
                            "remark": {
                              "type": "string",
                              "description": "提示信息"
                            },
                            "classify": {
                              "type": "string",
                              "description": "分类"
                            },
                            "classifyId": {
                              "type": "string",
                              "description": "分类id"
                            },
                            "content": {
                              "type": "string",
                              "description": "内容"
                            },
                            "id": {
                              "type": "string",
                              "description": "故事id"
                            },
                            "title": {
                              "type": "string",
                              "description": "故事名称"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "1700_3_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "故事id"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          }
        }
      }
    },
    "/1700-2": {
      "x-pointCode": 2,
      "x-mode": "mapping",
      "x-read-timeout": 5,
      "x-connect-timeout": 5,
      "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": "number",
                              "description": "接口调用是否成功,0为成功,其他为失败"
                            },
                            "remark": {
                              "type": "string",
                              "description": "提示信息"
                            },
                            "allNum": {
                              "type": "number",
                              "description": "总数"
                            },
                            "allPages": {
                              "type": "number",
                              "description": "总页数"
                            },
                            "currentPage": {
                              "type": "number",
                              "description": "当前页"
                            },
                            "maxResult": {
                              "type": "number",
                              "description": "最大返回值"
                            },
                            "contentlist": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "title": {
                                    "type": "string",
                                    "description": "故事名"
                                  },
                                  "classifyId": {
                                    "type": "string",
                                    "description": "分类Id"
                                  },
                                  "id": {
                                    "type": "string",
                                    "description": "故事id"
                                  }
                                }
                              }
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "1700_2_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "classifyId": {
                    "type": "string",
                    "description": "分类Id"
                  },
                  "page": {
                    "type": "string",
                    "description": "页码"
                  },
                  "keyword": {
                    "type": "string",
                    "description": "标题关键字"
                  }
                },
                "required": [
                  "classifyId",
                  "keyword"
                ]
              }
            }
          }
        }
      }
    },
    "/1700-1": {
      "x-pointCode": 1,
      "x-mode": "mapping",
      "x-read-timeout": 5,
      "x-connect-timeout": 5,
      "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": "number",
                              "description": "接口调用是否成功,0为成功,其他为失败"
                            },
                            "remark": {
                              "type": "string",
                              "description": "提示信息"
                            },
                            "storylist": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "classify": {
                                    "type": "string",
                                    "description": "分类名称"
                                  },
                                  "classifyId": {
                                    "type": "string",
                                    "description": "分类Id"
                                  }
                                }
                              },
                              "description": "列表信息"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "1700_1_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/apis/1700?tab=book"
  },
  "x-apiCode": "1700",
  "x-is-own": false,
  "x-is-op": false
}