POST api/Evaluate/EvaluatePro
取得商品平均評價
Request Information
URI Parameters
None.
Body Parameters
EvaluatePro_Input| Name | Description | Type | Additional information |
|---|---|---|---|
| productNumber |
商品代號 |
string |
Required |
Request Formats
application/json, text/json
Sample:
{
"productNumber": "sample string 1"
}
text/html
Sample:
{"productNumber":"sample string 1"}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
取得商品平均評價
EvaluatePro_Output| Name | Description | Type | Additional information |
|---|---|---|---|
| evaluationsCount |
總評價數 |
integer |
None. |
| average |
平均評價 |
decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{
"evaluationsCount": 1,
"average": 2.1
}
text/html
Sample:
{"evaluationsCount":1,"average":2.1}