Menu
akurai-tasks
publicLatest change c5be5e616090ae3f9ae037e3702c07f72dc783f3 - chore: establish AkurAI Tasks planning baseline by Ólafur Búi Ólafsson
# Declarative data model — the single source of truth. # The auto-API, validation, and semantic-search embeddings all derive from this # file. Add a collection and its REST routes appear immediately at # /api/collections/<name>/records with no handwritten endpoint code. # # Field types: text | int | float | bool # required = true → must be present on create # embed = true → (text only) auto-embedded for semantic ?search # # Routes mounted for each collection: # GET /api/collections → manifest of all collections # GET /api/collections/<name>/records → list (newest first) # GET /api/collections/<name>/records?search=<q>[&limit=N] # POST /api/collections/<name>/records → create (JSON body) # GET /api/collections/<name>/records/<id> → fetch one # PATCH /api/collections/<name>/records/<id> → partial update # DELETE /api/collections/<name>/records/<id> → delete # # Semantic search turns on when AKURAI_EMBED_URL points at an OpenAI-compatible # embeddings endpoint (plain HTTP — no TLS); otherwise ?search is substring. [[collection]] name = "posts" [[collection.field]] name = "title" type = "text" required = true [[collection.field]] name = "body" type = "text" embed = true # auto-embedded for semantic search (?search=...)