Attributes
Attribute |
type |
values |
default |
mandate |
comment |
name |
string |
|
|
true |
|
description |
string |
|
|
false |
|
holders |
collection |
|
|
false |
|
/imageRepository /create
Examples:
Method:/imageRepository/create
Parameters:
{
"attrs":
[
"name":xxx,
"description":zzz
]
}
Response:
{
"error":0,
"result":{"id":1}
}
/imageRepository /get
Method:/site /get
Parameters:
{
"match":
[
["id", "=", 2],
],
"return":["*"],
}
Response:
{
"error":0,
"result":
{
"name":"xxx",
"description":"zzz"
}
}
/imageRepository /set
Method:/site /set
Parameters:
{
"id":1,
"attrs":{"name":"xyz"}
}
Response:
{
"error":0
}
/imageRepository /delete
Method:/site /delete
Parameters:
{
"id":1
}
Response:
{
"error":0
}
/imageRepository /search
Method:/site /search
Parameters:
{
"match":
[
"name", "=", "some name"
],
"return":["name", "id"],
}
Response:
{
"error":0,
"result":
{
total:2,
rows:
[
{
"name":"xxx",
"id":1234,
},
{
"name":"xxx",
"id":"1235",
}
]
}
}