chore: initial commit of ai site platform

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
whm
2026-07-31 10:31:17 +08:00
commit 4ca82fb58a
203 changed files with 45745 additions and 0 deletions

38
platform/platform.api Normal file
View File

@@ -0,0 +1,38 @@
syntax = "v1"
info (
title: "platform"
desc: "AppBlueprint publish + dynamic CRUD skeleton"
author: "aijianzhan"
version: "v1"
)
@server (
prefix: /api/v1
)
service platform {
@handler IssueToken
post /auth/token
@handler PublishApp
post /apps/:slug/publish
@handler GetBlueprint
get /apps/:slug/blueprint
@handler ListRows
get /apps/:slug/:resource
@handler CreateRow
post /apps/:slug/:resource
@handler GetRow
get /apps/:slug/:resource/:id
@handler UpdateRow
patch /apps/:slug/:resource/:id
@handler DeleteRow
delete /apps/:slug/:resource/:id
}