{
  "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": "string",
                              "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": "string",
                              "description": "接口调用是否成功,0为成功,其他为失败"
                            },
                            "remark": {
                              "type": "string",
                              "description": "提示信息"
                            },
                            "allNum": {
                              "type": "string",
                              "description": "总数"
                            },
                            "allPages": {
                              "type": "string",
                              "description": "总页数"
                            },
                            "currentPage": {
                              "type": "string",
                              "description": "当前页"
                            },
                            "maxResult": {
                              "type": "string",
                              "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": "string",
                              "description": "接口调用是否成功,0为成功,其他为失败"
                            },
                            "remark": {
                              "type": "string",
                              "description": "提示信息"
                            },
                            "classify": {
                              "type": "string",
                              "description": "分类名称"
                            },
                            "classifyId": {
                              "type": "string",
                              "description": "分类Id"
                            }
                          },
                          "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/apiGateway/view/1700?tab=book"
  },
  "x-apiCode": "1700",
  "x-is-own": true,
  "x-is-op": true
}