@big-bear
2017-04-26T06:15:44.000000Z
字数 2915
阅读 1090
云宝
api
String title; //标题
String contents; //内容
String picPath; //图片地址
Integer createTime;//开始时间
//新增字段
Customer customer;
Integer createTime; //创建时间
String title; //名称
String content; //内容
Integer checkScore; //签到分数
Integer mealScore; //膳食分数
Integer sportScore; //运动分数
Integer medicationScore; //用药分数
Integer recoveryScore; //康复分数
//新增字段
Customer customer
Customer customer;
Scheme scheme;
url
/api/physicalReport
参数
{
filter[customer][id]:74
sort[createTime]:desc
}
{
"data": [
{
"type": "physicalReport",
"id": "4",
"attributes": {
"contents": "123131",
"createTime": 1493049600,
"delStatus": 0,
"title": "111"
},
"relationships": {
...
},
"links": {
"self": "http://localhost:9080/api/physicalReport/4"
}
},
...
],
"included": []
}
url
/api/evaluateresult
参数
{
filter[customer][id]:74
sort[createDateTime]:desc
}
{
"data": [
{
"type": "evaluateresult",
"id": "41",
"attributes": {
"lastUpdateDateTime": 1491903947,
"score": "15",
"contents": "永恒岛开香炉的小盗贼",
"delStatus": 0,
"batch": 0,
"createDateTime": 1491903947
},
"relationships": {
...
},
"links": {
"self": "http://localhost:9080/api/evaluateresult/41"
}
},
...
],
"included": [
...
]
}
url
/api/executionReport
参数
{
filter[customer][id]:74
sort[createTime]:desc
}
{
"data": [
{
"type": "executionReport",
"id": "1",
"attributes": {
"checkScore": 1,
"medicationScore": 4,
"recoveryScore": 5,
"sportScore": 3,
"delStatus": 0,
"title": "asdf",
"mealScore": 2,
"content": "5456"
},
"relationships": {
...
},
"links": {
"self": "http://localhost:9080/api/executionReport/1"
}
},
...
],
"included": []
}
url
/api/relCustomerScheme
参数
{
filter[customer][id]:74
sort[scheme][createTime]:desc
filter[scheme][isChose]:1
filter[scheme][type][typecode]:schemeType1
}
获取当前膳食方案时候有带上参数 filter[scheme][isChose]:1
如果获取列表,把这个参数去掉
- 返回值
{
"data": [
{
"type": "relCustomerScheme",
"id": "1",
"attributes": {
"delStatus": 0
},
"relationships": {
...
},
"links": {
"self": "http://localhost:9080/api/relCustomerScheme/1"
}
},
...
],
"included": [
{
"type": "scheme",
"id": "3",
"attributes": {
"picPath": "2017-04-16/1491469072_3c109932ea9d1fce5e339f077b8bfc21.jpg",
"contents": "333",
"delStatus": 0,
"title": "333",
"url": "333",
"isChose": 0
},
"relationships": {
...
},
"links": {
"self": "http://localhost:9080/api/scheme/3"
}
},
...
]
}
url
/api/relCustomerScheme
参数
{
filter[customer][id]:74
sort[scheme][createTime]:desc
filter[scheme][isChose]:1
filter[scheme][type][typecode]:schemeType2
}
获取当前运动方案时候有带上参数 filter[scheme][isChose]:1
如果获取列表,把这个参数去掉
- 返回值
{
"data": [
{
"type": "relCustomerScheme",
"id": "1",
"attributes": {
"delStatus": 0
},
"relationships": {
...
},
"links": {
"self": "http://localhost:9080/api/relCustomerScheme/1"
}
},
...
],
"included": [
{
"type": "scheme",
"id": "3",
"attributes": {
"picPath": "2017-04-16/1491469072_3c109932ea9d1fce5e339f077b8bfc21.jpg",
"contents": "333",
"delStatus": 0,
"title": "333",
"url": "333",
"isChose": 0
},
"relationships": {
...
},
"links": {
"self": "http://localhost:9080/api/scheme/3"
}
},
...
]
}