Structured response bodyBody structurat al răspunsului
application/json
Structured response bodyBody structurat al răspunsului
Complete response schemaSchema completă a răspunsului
{
"$ref": "#/components/schemas/Template",
"type": "object",
"additionalProperties": false,
"required": [
"id",
"slug",
"name",
"description",
"created_by",
"created_at",
"updated_at",
"versions"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"slug": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"created_by": {
"type": "string",
"format": "uuid"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"draft": {
"$ref": "#/components/schemas/TemplateDraftState",
"type": "object",
"additionalProperties": false,
"required": [
"revision",
"original_filename",
"media_type",
"byte_size",
"content_hash",
"bindings",
"updated_by",
"verified_at"
],
"properties": {
"revision": {
"type": "integer",
"minimum": 1
},
"original_filename": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"media_type": {
"type": "string",
"const": "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
},
"byte_size": {
"type": "integer",
"minimum": 1,
"maximum": 10485760
},
"content_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"bindings": {
"type": "array",
"maxItems": 256,
"uniqueItems": true,
"items": {
"type": "string",
"pattern": "^/",
"maxLength": 256
}
},
"updated_by": {
"type": "string",
"format": "uuid"
},
"verified_at": {
"type": "string",
"format": "date-time"
}
}
},
"versions": {
"type": "array",
"maxItems": 100,
"items": {
"$ref": "#/components/schemas/TemplateVersion",
"type": "object",
"additionalProperties": false,
"required": [
"id",
"template_id",
"number",
"original_filename",
"media_type",
"byte_size",
"content_hash",
"bindings",
"created_by",
"correlation_id",
"created_at",
"status"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"template_id": {
"type": "string",
"format": "uuid"
},
"number": {
"type": "integer",
"minimum": 1
},
"original_filename": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"media_type": {
"type": "string",
"const": "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
},
"byte_size": {
"type": "integer",
"minimum": 1,
"maximum": 10485760
},
"content_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"bindings": {
"type": "array",
"maxItems": 256,
"uniqueItems": true,
"items": {
"type": "string",
"pattern": "^/",
"maxLength": 256
}
},
"created_by": {
"type": "string",
"format": "uuid"
},
"correlation_id": {
"type": "string",
"minLength": 1
},
"created_at": {
"type": "string",
"format": "date-time"
},
"source_revision": {
"type": "integer",
"minimum": 1
},
"status": {
"type": "string",
"enum": [
"versioned",
"published"
]
},
"published_at": {
"type": "string",
"format": "date-time"
}
}
}
}
}
}{
"id": "11111111-1111-4111-8111-000000000001",
"slug": "synthetic-example",
"name": "synthetic-example",
"description": "synthetic-example",
"created_by": "11111111-1111-4111-8111-000000000001",
"created_at": "2026-08-01T10:00:00Z",
"updated_at": "2026-08-01T10:00:00Z",
"versions": [
{
"id": "11111111-1111-4111-8111-000000000001",
"template_id": "11111111-1111-4111-8111-000000000001",
"number": 1,
"original_filename": "synthetic-template.docx",
"media_type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"byte_size": 1,
"content_hash": "0000000000000000000000000000000000000000000000000000000000000000",
"bindings": [
"/synthetic"
],
"created_by": "11111111-1111-4111-8111-000000000001",
"correlation_id": "11111111-1111-4111-8111-000000000001",
"created_at": "2026-08-01T10:00:00Z",
"status": "versioned"
}
]
}