trustgraph/specs/api/components/schemas/loading/DocumentLoadRequest.yaml
cybermaggedon fce43ae035
REST API OpenAPI spec (#612)
* OpenAPI spec in specs/api.  Checked lint with redoc.
2026-01-15 11:04:37 +00:00

32 lines
761 B
YAML

type: object
description: |
Document load request - load binary document (PDF, etc.) into processing pipeline.
Fire-and-forget operation (no response).
required:
- data
properties:
data:
type: string
description: Document data (base64 encoded)
format: byte
example: JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PC9UeXBlL...
id:
type: string
description: Document identifier
example: doc-456
user:
type: string
description: User identifier
default: trustgraph
example: alice
collection:
type: string
description: Collection for document
default: default
example: research
metadata:
type: array
description: Document metadata as RDF triples
items:
$ref: '../../common/Triple.yaml'