获取用户的所有问题
GET /v1/clients/{clientId}/users/{userId}/questions
返回:
{"questions":
[
{
"id": 1,
"title": "What is brown and barks?",
"answered": false
},
{
"id": 1,
"title": "What is brown and makes Moo?",
"answered": false
},
{
"id": 1,
"title": "What is brown and makes Meow?",
"answered": true
}
]
}
只为用户获取未回答的问题
GET /v1/clients/{clientId}/users/{userId}/questions?answered=false
返回:
{"questions":
[
{
"id": 1,
"title": "What is brown and barks?",
"answered": false
},
{
"id": 1,
"title": "What is brown and makes Moo?",
"answered": false
}
]
}
只为用户获取一个未回答的问题
GET /v1/clients/{clientId}/users/{userId}/questions?answered=false&limit=1
返回:
{"questions":
[
{
"id": 1,
"title": "What is brown and barks?",
"answered": false
}
]
}