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
_Toc341972507
_Toc341972507
/qna /create


Wiki Markup
+Examples:+
Method:/qna /create
Parameters: 
\{
 "attrs":
\[
 "question":xxx,
 "answer":yyy,
 "user.id":userid
\]
\}
Response: 
\{
 "error":0,
"result":\{"id":1\}
\}
\\


Anchor
_Toc341972508
_Toc341972508
/qna/get


Wiki Markup
Method:/qna/get
Parameters: 
\{
 "match":
\[
 \["id", "=", 2\],
\],
 "return":\["question", "answer"\],
\}
Response: 
\{
 "error":0,
"result":
\{
 "question":"xxx",
 "answer":"yyy",
\}
\}


Anchor
_Toc341972509
_Toc341972509
/qna/set

...

Anchor
_Toc341972511
_Toc341972511
/qna/search


Wiki Markup
Method:/qna/search
Parameters: 
\{
 "match":
\[
 \["user.id", "=", 2\],
\],
 "return":\["question", "answer"\],
\}
Response: 
\{
 "error":0,
"result":
\{
total:2,
rows:
\[
  \{
"question":"xxx",
  "answer":"yyy",
\},
  \{
"question":"xxx",
  "answer":"yyy",
\}
\]
\}
\}
\\


Anchor
_Toc341972512
_Toc341972512
/qna/getPolicy

...