LnkdIN Wrapped 2023

LnkdIN Wrapped 2023 · GPT-Aktionen

Image Wrap API

Generiert Bilder mit Text

  • POST /wrap.phpwrapText
Ursprüngliches API-Schema
{
  "openapi": "3.0.1",
  "info": {
    "title": "Image Wrap API",
    "description": "Generiert Bilder mit Text",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://borisniehaus.de/linkwrap2023"
    }
  ],
  "paths": {
    "/wrap.php": {
      "post": {
        "operationId": "wrapText",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string"
                  }
                },
                "required": [
                  "text"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Bild-URL",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "imageUrl": {
                      "type": "string",
                      "format": "url"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          }
        }
      }
    }
  },
  "components": {
    "responses": {
      "BadRequest": {
        "description": "Ungültiger Eingabeparameter",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        }
      }
    }
  }
}