20 lines
971 B
JSON
20 lines
971 B
JSON
{
|
|
"openapi": "3.1.0",
|
|
"info": {"title": "YoVision evidence reference API", "version": "1.0.0"},
|
|
"paths": {
|
|
"/v1/evidence/{evidence_id}": {
|
|
"get": {
|
|
"summary": "Resolve current metadata for a logical evidence reference",
|
|
"parameters": [
|
|
{"name": "evidence_id", "in": "path", "required": true, "schema": {"type": "string"}}
|
|
],
|
|
"responses": {
|
|
"200": {"description": "Current metadata, including pending, processing, success or failed states", "content": {"application/json": {"schema": {"$ref": "./evidence-reference.schema.json"}}}},
|
|
"404": {"description": "Unknown logical reference", "content": {"application/problem+json": {"schema": {"$ref": "../../events/v1/problem.schema.json"}}}},
|
|
"410": {"description": "Evidence expired; event remains valid", "content": {"application/problem+json": {"schema": {"$ref": "../../events/v1/problem.schema.json"}}}}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|