Add API endpoint for table component

This commit is contained in:
Max 2024-01-10 09:56:34 +08:00
parent 8e5109d3fd
commit 2453479fe3

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",