Merge pull request #548 from trheyi/main

Add API endpoint for table component
This commit is contained in:
Max 2024-01-10 10:45:48 +08:00 committed by GitHub
commit 882a64f6cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -156,6 +156,18 @@ func exportAPI() error {
}
http.Paths = append(http.Paths, path)
// POST /api/__yao/table/:id/component/:xpath/:method -> Default process: yao.table.Component $param.id $param.xpath $param.method :query
path = api.Path{
Label: "Component",
Description: "Component",
Path: "/:id/component/:xpath/:method",
Method: "POST",
Process: "yao.table.Component",
In: []interface{}{"$param.id", "$param.xpath", "$param.method", ":payload"},
Out: api.Out{Status: 200, Type: "application/json"},
}
http.Paths = append(http.Paths, path)
// POST /api/__yao/table/:id/upload/:xpath/:method -> Default process: yao.table.Upload $param.id $param.xpath $param.method $file.file
path = api.Path{
Label: "Upload",