{
  "post": {
    "tags": ["Dieline"],
    "summary": "Generate dieline",
    "description": "Generates a dieline based on provided drawing, parameters, and material.If Production is set to true and drawing is provided, it generates dielines for both front and rear sides.",
    "security": [{ "Dieline-Domain": [] }, { "Dieline-Authentication": [] }, { "Dieline-Session-Token": [] }],
    "requestBody": {
      "required": true,
      "content": {
        "application/json": {
          "schema": {
            "$ref": "../../components/schemas/GenerateDielineRequest.json#/GenerateDielineRequest"
          }
        }
      }
    },
    "responses": {
      "200": {
        "description": "Dieline generated successfully",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": { "type": "string" },
                "data": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "mapID": { "type": "string", "example": "production-Front" },
                      "resourceUuid": { "type": "string", "example": "2548a18a-166b-40db-8763-9f67a39d0e8c" },
                      "downloadUrl": {
                        "type": "string",
                        "example": "https://developer.engview.com/resource-service/api/v1/resource/2548a18a-166b-40db-8763-9f67a39d0e8c"
                      }
                    },
                    "required": ["mapID", "resourceUuid", "downloadUrl"]
                  }
                }
              },
              "required": ["message", "data"]
            },
            "examples": {
              "success": {
                "value": {
                  "message": "Dieline generated successfully. Download using the links below.",
                  "data": [
                    {
                      "mapID": "production-Rear",
                      "resourceUuid": "d0a71a88-8e05-48b7-b489-ad1e67f4526e",
                      "downloadUrl": "https://developer.engview.com/resource-service/api/v1/resource/d0a71a88-8e05-48b7-b489-ad1e67f4526e"
                    },
                    {
                      "mapID": "production-Front",
                      "resourceUuid": "2548a18a-166b-40db-8763-9f67a39d0e8c",
                      "downloadUrl": "https://developer.engview.com/resource-service/api/v1/resource/2548a18a-166b-40db-8763-9f67a39d0e8c"
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "500": { "description": "Internal Server error" }
    }
  }
}
