Attributes

Attribute

type

values

default

mandate

comment

question

string

 

 

true

 


/question /create

Examples:
Method:/question /create
Parameters:
{
"attrs":
[
"question":xxx
]
}
Response:
{
"error":0,
"result":{"id":1}
}

/question/get

Method:/question/get
Parameters:
{
"match":
[
["id", "=", 2],
],
"return":["question"],
}
Response:
{
"error":0,
"result":
{
"question":"xxx"
}
}

/question /set

Method:/question /set
Parameters:
{
"id":1,
"attrs":{"question":"zzz"}
}
Response:
{
"error":0
}

/question /delete

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

/question /search

Method:/question /search
Parameters:
{
"match":
[
],
"return":["question", "id"],
}
Response:
{
"error":0,
"result":
{
total:2,
rows:
[
{
"question":"xxx",
"id":1234,
},
{
"question":"xxx",
"id":"1235",
}
]
}
}

  • No labels