JSON Patch audit on every mutation
Every change to an entity writes an audit entry in the same MongoDB transaction, with an RFC 6902 patch, the actor and a timestamp. Retrievable per entity via the timeline route.
Understand the audit history →Ticketing, CRM, contracts, assets, knowledge base, LMS – every mutation with JSON Patch audit, tenant isolation and stable UUIDv7 IDs. Authentication via opaque sessions, relationship-based authorization.
# 1) Sign in (opaque session)
curl -X POST https://os.codemeta.de/api/auth/sign-in/email \
-H "Content-Type: application/json" \
-c cookies.txt \
-d '{"email":"alice@example.com","password":"…"}'
# 2) Tenant context via header
curl https://os.codemeta.de/api/v1/tickets \
-H "X-Tenant-Id: 0192f2c0-8d1c-7a3b-9e4f-d3e7f1a2b5c8" \
-b cookies.txtAuthentication, tenant context, your first request.
X-Tenant-Id, cross-tenant access, SpiceDB relationships.
A JSON Patch trail for every change, retrievable per entity.
Two-step model: functional permissions plus data scopes.
Signed events per tenant, lifecycle guarantees, retries.
All endpoints with schemas, examples and error format.
One consistent API across all modules – with the same semantics for versions, audit, deletion and error format.
Every change to an entity writes an audit entry in the same MongoDB transaction, with an RFC 6902 patch, the actor and a timestamp. Retrievable per entity via the timeline route.
Understand the audit history →Errors follow Problem Details for HTTP APIs: type, title, status, detail – plus an optional errors[] list for validation. No mix of plain text and JSON.
All entity IDs are UUIDv7. They are globally unique, chronologically monotonic and can be paginated stably in lists without an extra field. Never ObjectIds, never auto-increment.
Sequence numbers vs. IDs →End to end from sign-in to the response, without an SDK.
Timeline route, filters, cursor pagination.
Verify the HMAC signature, prevent replays.
The version field, resolving 409s, retry strategy.
deletedAt + deletedBy, no hard delete.
OpenAPI 3.1 as the single source of truth.