2026-09-14 09:57:12 +07:00

50 lines
1.3 KiB
JSON

{
"api_major_version": "v1",
"contract_pack_version": "0.1.0",
"endpoint_path": "/v1/scoring-runs/{run_id}",
"error_schema_file": "error-response.schema.json",
"headers": {
"authorization": "Bearer <service-token>",
"tenant_id": "X-Tenant-Id"
},
"http_responses": {
"200": {
"description": "Scoring run metadata and current status",
"schema_file": "scoring-run-response.schema.json"
},
"401": {
"description": "Invalid or missing Bearer service token",
"schema_file": "error-response.schema.json"
},
"403": {
"description": "Caller not authorized for tenant",
"schema_file": "error-response.schema.json"
},
"404": {
"description": "Scoring run not found for tenant",
"schema_file": "error-response.schema.json"
},
"422": {
"description": "Validation error for missing/invalid required headers or path parameters",
"schema_file": "error-response.schema.json"
}
},
"method": "GET",
"path_params": {
"run_id": {
"description": "Unique scoring run identifier",
"max_length": 36,
"min_length": 1,
"type": "string"
}
},
"reserved_statuses": [],
"response_schema_file": "scoring-run-response.schema.json",
"supported_statuses": [
"pending",
"running",
"completed",
"failed"
]
}