AkurAI Build
Menu

Public repository / f1f33c69567a554b6ce011822661d3289c1e9c77

AkurAI-Framework / site/backend/collections.toml

Latest change 4cc6de08579edc5b304241d20812604cee60ee8f - site: add demo posts collection so the live auto-API is hittable (/api/collections/posts) by Ólafur Búi Ólafsson

# Live demo collection for the framework's own site.
# Declaring a collection here is all it takes — the server mounts a full REST API
# at /api/collections/posts/records (list, create, read, update, delete + ?search).
# See /docs/auto-api. (This is a public demo endpoint, mirroring the /guestbook.)

[[collection]]
name = "posts"

  [[collection.field]]
  name = "title"
  type = "text"
  required = true

  [[collection.field]]
  name = "body"
  type = "text"
  embed = true        # marked for semantic search when an embeddings endpoint is set