Resources added to oc-catalog + proto search

This commit is contained in:
mr
2024-07-26 14:39:57 +02:00
parent 053c1ddf31
commit 0fbe14686a
13 changed files with 579 additions and 16 deletions

View File

@@ -49,7 +49,18 @@ func (o *DataController) GetAll() {
}
// @Title Get
// @Description find workflow by id
// @Description find data by key word
// @Param search path string true "the search you want to get"
// @Success 200 {data} models.data
// @router /:search [get]
func (o *DataController) Search() {
search := o.Ctx.Input.Param(":search")
o.Data["json"] = oclib.Search(search, oclib.LibDataEnum(oclib.DATA_RESOURCE))
o.ServeJSON()
}
// @Title Get
// @Description find data by id
// @Param id path string true "the id you want to get"
// @Success 200 {data} models.data
// @router /:id [get]