ozone-development/ozp-iwc — pull request #137 by Kevin-K (2014-11-04 20:39:25+00:00)
Title: moved HAL _link & key to root of dataApiValues

refs #135
moved dataApiValue structure from this:

```
{
"watchers": [],
"resource": "/TESTING3",
"entity": {
"entity": "{\"persist\":true,\"far\":\"FOO\"}",
"contentType": "text/plain",
"key": "TESTING3",
"_links": {
"self": {
"href": "https://www.owfgoss.org/ng/dev-alpha/mp/api/profile/2/data/TESTING3"
}
}
},
"contentType": "text/plain",
"permissions": {},
"version": 0,
"persist": true,
"deleted": true,
"children": [],
"dirty": true
}
```

to this:
```
{
"watchers": [],
"resource": "/TESTING3",
"_links": {
"self": {
"href": "https://www.owfgoss.org/ng/dev-alpha/mp/api/profile/2/data/TESTING3"
}
},
"entity": "{\"persist\":true,\"far\":\"FOO\"}",
"key": "TESTING3",
"contentType": "text/plain",
"permissions": {},
"version": 0,
"persist": true,
"deleted": true,
"children": [],
"dirty": true
}
```

This keeps a consistent form between data.api values that are persisted and not persited in the eyes of the user (`entity` will be identical except for persist flag)