Add a question to an itemDo not pass asker_id
field, it will be automatically set to the user_id
of current user.
Request
Body Params application/json
{
"item_id": 0,
"asker_id": 0,
"question": "string",
"public": false,
"answer": "string"
}
Request Code Samples
curl --location --request POST 'http://localhost:8000/item/question/add' \
--header 'Content-Type: application/json' \
--data-raw '{
"item_id": 0,
"asker_id": 0,
"question": "string",
"public": false,
"answer": "string"
}'
Responses
{
"question_id": 0,
"item_id": 0,
"question": "string",
"created_time": 0,
"answered_time": 0,
"answer": "string",
"public": true
}
Modified at 2024-12-11 01:16:41