POST api/Question/PostQuestion
Добавить вопрос, требуется авторизация
Request Information
URI Parameters
None.
Body Parameters
Вопрос
QuestionDataName | Description | Type | Additional information |
---|---|---|---|
question |
Вопрос, 1000 символов |
string |
Required String length: inclusive between 0 and 1000 |
category_rid |
Категория вопроса |
integer |
Required |
anonim |
Аноним |
boolean |
None. |
to_user_rid |
Врач |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "question": "sample string 1", "category_rid": 1, "anonim": true, "to_user_rid": "sample string 3" }
text/html
Sample:
{"question":"sample string 1","category_rid":1,"anonim":true,"to_user_rid":"sample string 3"}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseModelAddName | Description | Type | Additional information |
---|---|---|---|
record_id |
Идентификатор |
integer |
None. |
success |
Успешность запроса true, false |
boolean |
None. |
Errors |
Ошибка запроса |
Collection of string |
None. |
result |
Объект |
Object |
None. |
new_level |
Новый уровень |
integer |
None. |
add_bonus |
Добавленный бонус |
decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{ "record_id": 1, "success": true, "Errors": [ "sample string 1", "sample string 2" ], "result": {}, "new_level": 1, "add_bonus": 1.0 }
text/html
Sample:
{"record_id":1,"success":true,"Errors":["sample string 1","sample string 2"],"result":{},"new_level":1,"add_bonus":1.0}