chore: initial commit of ai site platform
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
38
platform/platform.api
Normal file
38
platform/platform.api
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user