Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Anchor
_Toc341972521
_Toc341972521
Attributes

Attribute

type

values

default

mandate

comment

name

string

 

 

true

 

description

string

 

 

false

 

holders

collection

 

 

false

 


Anchor
_Toc341972522
_Toc341972522
/imageRepository /create

Wiki Markup
+Examples:+
Method:/imageRepository/create
Parameters: 
\{
 "attrs":
\[
 "name":xxx,
 "description":zzz
\]
\}
Response: 
\{
 "error":0,
"result":\{"id":1\}
\}
\\

Anchor
_Toc341972523
_Toc341972523
/imageRepository /get

Wiki Markup
Method:/site /get
Parameters: 
\{
 "match":
\[
 \["id", "=", 2\],
\],
 "return":\["*"\],
\}
Response: 
\{
 "error":0,
"result":
\{
 "name":"xxx",
 "description":"zzz"
\}
\}

Anchor
_Toc341972524
_Toc341972524
/imageRepository /set

Method:/site /set
Parameters:
{
"id":1,
"attrs":{"name":"xyz"}
}
Response:
{
"error":0
}

Anchor
_Toc341972525
_Toc341972525
/imageRepository /delete

Method:/site /delete
Parameters:
{
"id":1
}
Response:
{
"error":0
}

Anchor
_Toc341972526
_Toc341972526
/imageRepository /search

Wiki Markup
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",
\}
\]
\}
\}
\\
\\