Skip to content
OFD Editor
Developer docs

Workstation HTTP integration

Connect authorized stores and use conditional requests to avoid overwriting another user's work.

Connect existing services

handleOFDHttpRequest accepts a standard Fetch Request, mounted at /ofd by default. Provide the current caller's template library, draft store and optional queue. The host owns authentication, tenant isolation, persistence and auditing. Browser adapters such as createOFDHttpDraftStore can point at the same base URL.

recipes/workstation.tsts

Download the workstation OpenAPI JSON. The contract's 127.0.0.1:8998/ofd server is the repository's synthetic local service. Use your deployment's own address. The public static demo offers local document operations.

Generate an OFD from a versioned template

StepRequestResult
Select a templateGET /ofd/templatesChoose the id and revision of a visible entry
Inspect fieldsGET /ofd/templates/{id}/fieldsScalar fields, detail groups and a v3 example
Review inputPOST /ofd/templates/{id}/preflightCompare the submitted data with the target fields
Generate the filePOST /ofd/templates/{id}/draft201 and application/ofd bytes
Register a business draftPUT /ofd/drafts/{id}?name=report.ofdPersist OFD bytes and receive a business revision

Send the same strong If-Match on the template fields, preflight and generation requests. For revision 1 the header is If-Match: "1". Use Content-Type: application/json for fill data and application/ofd for storing file bytes. First registration uses If-None-Match: *. Subsequent writes use the strong ETag obtained when opening that draft.

Update a saved draft

Read GET /ofd/drafts/{id} and use its revision with POST /ofd/drafts/{id}/preflight and POST /ofd/drafts/{id}/fill. A missing required precondition returns 428. A stale revision returns 412. Reload and review against the latest edition before confirming. Bulk operations use batch-preflight and batch-drafts and return results per item. One fill-data contract

OFD Editor · QuireKitGuides and developer interfaces for the QuireKit OFD Editor.