{
  "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": {
    "/950-1": {
      "x-pointCode": 1,
      "x-mode": "mapping",
      "x-read-timeout": 30,
      "x-connect-timeout": 30,
      "post": {
        "summary": "藏头诗生成",
        "description": "效果示例：\n输入：易源数据\n输出： \n\"易俗去猛虎，源潜度世客。数年功不成，据吉逾诗序。\",\n\"易得还易失，源桃不余欺。数极不知危，据鞍空矍铄。\",\n\"易觉春光老，源远历千岑。数点彩霞重，据此自千秋。\"",
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/ShowapiResEnvelope"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "showapi_res_body": {
                          "type": "object",
                          "properties": {
                            "list": {
                              "type": "string",
                              "description": "生成的多组诗句"
                            },
                            "ret_code": {
                              "type": "string",
                              "description": "0表示成功,其他值表示接口请求失败"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "950_1_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "num": {
                    "type": "string",
                    "description": "五言 num=5  七言num=7"
                  },
                  "type": {
                    "type": "string",
                    "description": "type=1 藏头<br/>\ntype=2 藏尾<br/>\ntype=3 藏中<br/>\ntype=4 递增<br/>\ntype=5 递减<br/>"
                  },
                  "yayuntype": {
                    "type": "string",
                    "description": "yayuntype=1 双句一压<br/>\nyayuntype=2 双句押韵<br/>\nyayuntype=3 一三四押<br/>\n"
                  },
                  "key": {
                    "type": "string",
                    "description": "藏头诗中要包括的句子，最多八个字。"
                  }
                },
                "required": [
                  "num",
                  "type",
                  "yayuntype",
                  "key"
                ]
              }
            }
          }
        }
      }
    }
  },
  "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/950?tab=book"
  },
  "x-apiCode": "950",
  "x-is-own": false,
  "x-is-op": true
}