POST api/Store/PostComment
Добавить комментарий, требуется авторизация
Request Information
URI Parameters
None.
Body Parameters
StoreCommentAddDataName | Description | Type | Additional information |
---|---|---|---|
description |
Текст |
string |
Required |
store_rid |
Пост |
integer |
Required |
rating |
Пост |
integer |
Required Range: inclusive between 1 and 5 |
Request Formats
application/json, text/json
Sample:
{ "description": "sample string 1", "store_rid": 1, "rating": 1 }
text/html
Sample:
{"description":"sample string 1","store_rid":1,"rating":1}
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}