Structured response bodyBody structurat al răspunsului
application/json
Structured response bodyBody structurat al răspunsului
Complete response schemaSchema completă a răspunsului
{
"type": "object",
"additionalProperties": false,
"required": [
"versions"
],
"properties": {
"versions": {
"type": "array",
"maxItems": 100,
"items": {
"$ref": "#/components/schemas/CanonicalDefinitionVersion",
"type": "object",
"additionalProperties": false,
"required": [
"id",
"number",
"content_hash",
"source_revision",
"status",
"created_by",
"correlation_id",
"created_at"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"family_id": {
"type": "string",
"format": "uuid"
},
"definition_id": {
"type": "string",
"format": "uuid"
},
"number": {
"type": "integer",
"minimum": 1
},
"content_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"contract_version_id": {
"type": "string",
"format": "uuid"
},
"contract_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"source_format": {
"$ref": "#/components/schemas/TransformSourceFormat",
"type": "string",
"enum": [
"yaml",
"json"
]
},
"language": {
"type": "string",
"const": "declarative-v1"
},
"source_revision": {
"type": "integer",
"minimum": 1
},
"status": {
"type": "string",
"enum": [
"versioned",
"published"
]
},
"created_by": {
"type": "string",
"format": "uuid"
},
"correlation_id": {
"type": "string",
"minLength": 1
},
"created_at": {
"$ref": "#/components/schemas/CanonicalTimestamp",
"type": "string",
"format": "date-time",
"description": "UTC timestamp serialized with RFC3339Nano precision."
},
"published_at": {
"$ref": "#/components/schemas/CanonicalTimestamp",
"type": "string",
"format": "date-time",
"description": "UTC timestamp serialized with RFC3339Nano precision."
},
"definition": {
"$ref": "#/components/schemas/IngestionModelDefinition",
"type": "object",
"additionalProperties": false,
"required": [
"schema",
"nodes"
],
"properties": {
"schema": {
"type": "string",
"const": "docula-ingestion-model-v1"
},
"nodes": {
"type": "array",
"maxItems": 100,
"items": {
"$ref": "#/components/schemas/IngestionModelDefinitionNode",
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"name",
"slug",
"transformer_slug"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"transformation",
"document_generation"
]
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"slug": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"parent_address": {
"type": "string"
},
"transformer_slug": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"template_slug": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
}
}
}
}
}
}
}
}
}
}
}{
"versions": [
{
"id": "11111111-1111-4111-8111-000000000001",
"number": 1,
"content_hash": "0000000000000000000000000000000000000000000000000000000000000000",
"source_revision": 1,
"status": "versioned",
"created_by": "11111111-1111-4111-8111-000000000001",
"correlation_id": "11111111-1111-4111-8111-000000000001",
"created_at": "2026-08-01T10:00:00Z",
"language": "declarative-v1"
}
]
}