POST api/Question/AnswerRating
Комментарий к ответу
Request Information
URI Parameters
None.
Body Parameters
рейтинг
RatingAnswerName | Description | Type | Additional information |
---|---|---|---|
answer_rid |
Ответ |
integer |
Required |
rating |
Чипс |
decimal number |
Required |
chips |
Чипс |
Collection of integer |
None. |
comment |
Комментарий |
string |
Required String length: inclusive between 0 and 200 |
Request Formats
application/json, text/json
Sample:
{ "answer_rid": 1, "rating": 2.0, "chips": [ 1, 2 ], "comment": "sample string 3" }
text/html
Sample:
{"answer_rid":1,"rating":2.0,"chips":[1,2],"comment":"sample string 3"}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseModelName | Description | Type | Additional information |
---|---|---|---|
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:
{ "success": true, "Errors": [ "sample string 1", "sample string 2" ], "result": {}, "new_level": 1, "add_bonus": 1.0 }
text/html
Sample:
{"success":true,"Errors":["sample string 1","sample string 2"],"result":{},"new_level":1,"add_bonus":1.0}