{
  "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": {
    "/3405-1": {
      "x-pointCode": 1,
      "x-mode": "mapping",
      "x-read-timeout": 15,
      "x-connect-timeout": 15,
      "post": {
        "summary": "分割图片",
        "description": "按比例分割图片，将结果粘贴预览：  https://tools.biu.link/page/image-view/",
        "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"
                            },
                            "original_size": {
                              "type": "string",
                              "description": "原图大小"
                            },
                            "cell_size": {
                              "type": "string",
                              "description": "分割图大小"
                            },
                            "file_list": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "description": "分割后的图片"
                            }
                          },
                          "description": "业务返回体"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "3405_1_POST",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "img_url": {
                    "type": "string",
                    "description": "需要分割的图片"
                  },
                  "rows": {
                    "type": "string",
                    "description": "按比例分割的行数"
                  },
                  "cols": {
                    "type": "string",
                    "description": "按比例分割的列数"
                  }
                },
                "required": [
                  "img_url",
                  "rows",
                  "cols"
                ]
              }
            }
          }
        }
      }
    }
  },
  "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/3405?tab=book"
  },
  "x-apiCode": "3405",
  "x-is-own": false,
  "x-is-op": false
}