Attributes

Attribute

type

values

default

mandate

comment

image

object

 

 

true

 

signature

string

 

 

true

 

description

string

 

 

false

 

user

object

 

 

true

 

applications

collection

 

 

true

 


/siteStamp /create

Examples:

  1. create a sitestamp with existing image

Method:/siteStamp/create
Parameters:
{
"attrs":
[
"applications":[ {id:appid1}, id{appid2} ]
"image.id":imageId,
"site.id":siteId,
"user.id":userId,
"signature":"my site stamp"
]
}
Response:
{
"error":0,
"result":{"id":1}
}

  1. create a sitestamp with giving image

Method:/siteStamp /create
Parameters:
{
"attrs":
[
"applications":[ {id:appid1}, id{appid2} ]
"image":{"data":data},
"site.id":siteId,
"user.id":userId,
"signature":"my site stamp"
]
}
Response:
{
"error":0,
"result":{"id":2}
}

/siteStamp /get

Method:/siteStamp /get
Parameters:
{
"match":
[
["id", "=", 2]
],
"return":["*", "site.id","image.id"],
}
Response:
{
"error":0,
"result":
{
"signature":"my site stamp",
"description":"zzz",
"site.id":siteId,
"image.id":imageId
}
}

/siteStamp /set

Method:/siteStamp /set
Parameters:
{
"id":1,
"attrs":{
"signature":"xyz",
"applications":[ {id:appid1}, id{appid2} ]
}
}
Response:
{
"error":0
}

/siteStamp /delete

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

/siteStamp /search

Method:/siteStamp /search
Parameters:
{
"match":
[
"user.id", "=", null
],
"return":["image.data", "id"],
}
Response:
{
"error":0,
"result":
{
total:2,
rows:
[
{
"image.data":data,
"id":1234,
},
{
"image.data":data,
"id":"1235",
}
]
}
}

  • No labels