Developer Portal

DNA OS

Registry-Driven ERP Platform — Architecture, Business Rules, Registry, and API in one place

Version
2.0
Architecture
Event-Centric
Modules
369
Commands
63
Workflows
3
Drivers
11
Observer
Ready
Learnเรียนรู้โครงสร้างระบบ
Buildเริ่มพัฒนาบน DNA OS
Testทดลองเรียก API จริง

Architecture Pipeline

Input
Input Gateway
รับ Event ทุกรูปแบบ (LINE, HTTP, Webhook)
Interpret
AI Interpreter
แปลภาษาธรรมชาติ → command
Validate
Business Rules
Dispatcher + ตรวจ registry + กฎ
Calculate
Business Engine
คำนวณ logic ราคา / หนี้ / timeline
Execute
Execution Layer
เขียน DB + LINE + external services
ทุก command ผ่าน Validate (Business Rules / Dispatcher) — Shadow Command ถูกปฏิเสธเสมอ

Quick Start — External AI

1
โหลดโครงสร้างระบบ
GET /observer.json
หรือวาง /observer ใน AI chat
2
โหลด Tool Spec
GET /api/v1/spec
ได้รายการ function ทั้งหมดในรูปแบบ OpenAI
3
สร้าง Token
→ /admin/api-tokens
token ผูกกับ email — ต้อง login admin ก่อน
4
เรียก Command
POST /api/v1/query
X-DNA-Token: <token>

{ "command": "debt.list" }

แต่ละบทบาทเริ่มต้นอย่างไร

UI Designer
  1. 1.เปิด /examples — ดูว่าแต่ละหน้าจอต้องใช้ command อะไร
  2. 2.เปิด /api/v1/spec — รู้ format ของข้อมูล
  3. 3.ออกแบบ UI ตาม data structure จาก spec
Developer
  1. 1.เปิด /observer.json — เข้าใจโครงสร้างทั้งระบบ
  2. 2.โหลด System Knowledge ที่ต้องการ
  3. 3.เรียก POST /api/v1/query ด้วย token
External AI
  1. 1.GET /observer.json → follow _links
  2. 2.GET /api/v1/spec → load all tools
  3. 3.POST /api/v1/query → execute read commands