Add API endpoint for table component
This commit is contained in:
parent
8e5109d3fd
commit
2453479fe3
1 changed files with 12 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue