GET api/HealthyData/GetHealthy_ByYear?UserID={UserID}&DataDesc={DataDesc}&Year={Year}
获取用户数据(月统计数据)
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| UserID |
用户ID |
string |
Required |
| DataDesc |
数据描述,可以为BloodSugar、BloodOxygen、Pulse、Hemoglobin、BloodFat,BloodPressure血压数据不可用 |
string |
Required |
| Year |
年份,格式为“2018” |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
JResultOfListOfHealthDataByYear| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | integer |
None. |
|
| Error | string |
None. |
|
| Result | Collection of HealthDataByYear |
None. |
|
| Success | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"Code": 1,
"Error": "sample string 2",
"Result": [
{
"AVG": 1.1,
"Month": 2
},
{
"AVG": 1.1,
"Month": 2
}
],
"Success": true
}