{
  "post": {
    "tags": ["Gangsheet"],
    "summary": "Generate gangsheet output",
    "description": "Generates gangsheet output for a design order. This is an asynchronous operation that processes in the background.",
    "requestBody": {
      "required": true,
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "designOrderId": {
                "type": "integer",
                "description": "Design order ID",
                "example": 12345
              },
              "baseUrl": {
                "type": "string",
                "description": "Base URL for the application",
                "pattern": "^https?://.*",
                "example": "http://localhost.magento-task.com"
              },
              "designData": {
                "type": "string",
                "description": "Optional design data as JSON string",
                "example": "{\"designId\": 28, \"orderId\": 14}"
              }
            },
            "required": ["designOrderId", "baseUrl"]
          }
        }
      }
    },
    "responses": {
      "200": {
        "summary": "Successful Operation.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "example": "Gangsheet Output generation in process for Design order ID : 12345"
                }
              }
            }
          }
        }
      },
      "400": {
        "summary": "Bad Request.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "example": "Bad Request."
                }
              }
            }
          }
        }
      },
      "500": {
        "summary": "Internal Server Error.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "example": "Internal Server Error."
                }
              }
            }
          }
        }
      }
    }
  }
}
