@big-bear
2017-04-26T06:15:44.000000Z
字数 2915
阅读 1129
云宝 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]:74sort[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]:74sort[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]:74sort[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]:74sort[scheme][createTime]:descfilter[scheme][isChose]:1filter[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]:74sort[scheme][createTime]:descfilter[scheme][isChose]:1filter[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"}},...]}