Hi,
I have gone through the updated document and found "resources/{resourceId}/_rev" and "resources/{resourceId}/_id" would return the revision and id respectively for that resources. Here comes few doubts and the following are those,
1. Same like above,is it applicable to get _rev and _id via bookmark also ? i.e. bookmarks/irrigation/machines/_rev or bookmark/irrigation/machines/_id should also return revision and id respectively, where machine is resource and it has an unique id ?
2. Is it applicable to get _rev and _id for the sub document as well, for ex. resources/abc123 responds with,
{
_id : abc123,
_rev : 2-qwrert,
_meta : { metaId : abc123, _rev : 2-qwrert },
device :
{
_id : xyz123, _rev : 4-ertwd
},
name : pivot,
status : running
}
and resources/abc123/_rev would return "2-qwrert" . In the same way is it applicable to get the _rev of device via resources/abc123/device/_rev which should return "4-ertwd" ?
3. Also in the above example response, there are name and status property. Do we need to get those properties also exposed ?
i.e. via resources/abc123/name and resources/abc123/status which would return "pivot" and "running" respectively.
Thanks,
Jiaudheen A