...
Expand |
---|
|
Code Block |
---|
| {
"paging": {
"previous": "/repo/v1/storageDetails?offset=1&limit=100"
},
"results": [
{
"contentMd5": "2f1f4348a5452110ad9490609dd4dcb8",
"contentSize": 29129,
"contentType": "image/png",
"id": "134053",
"isAttachment": true,
"location": "/1439206/1439207/Austria.png",
"nodeId": "syn1439206",
"storageProvider": "awss3",
"userId": "1439205"
},
{
"contentMd5": "27faaf994136363f2885bd9acb1a4472",
"contentSize": 26169,
"contentType": "image/png",
"id": "134054",
"isAttachment": true,
"location": "/1439206/1439209/Switzerland.png",
"nodeId": "syn1439206",
"storageProvider": "awss3",
"userId": "1439205"
},
{
"contentMd5": "7d96b9ebe9bb283b33bf6ff143cd4ab7",
"contentSize": 14330,
"contentType": "application/pdf",
"id": "134055",
"isAttachment": true,
"location": "/1439206/1439214/Trees-In-MangoDB.pdf",
"nodeId": "syn1439206",
"storageProvider": "awss3",
"userId": "1439205"
},
],
"totalNumberOfResults": 3
}
|
|
...
Get the descendants of an entity
Note that the query for descendants is based on secondary indices which are eventually consistent. You may not be able to see the complete list of descendants immediately.
Get all the descendants of an entity
Get all the descendants of an entity. The results are paginated. To fetch the next page, find the last entity (descendant) on the current page and use its ID to set the query parameter lastEntityId. Here is an example:
Code Block |
---|
language | bash |
---|
title | Request for getting the first page |
---|
|
# To be written |
Code Block |
---|
language | bash |
---|
title | Response for getting the first page |
---|
collapse | true |
---|
|
# To be written |
Code Block |
---|
language | bash |
---|
title | Request for getting the second page |
---|
|
# To be written |
Code Block |
---|
language | bash |
---|
title | Response for getting the second page |
---|
collapse | true |
---|
|
# To be written |
Get the descendants of a specific generation
Get all the descendants that are exactly n generations away. The children is generation 1. Children's children are generation 2. So on and so forth. The results are paginated. To fetch the next page, find the last entity (descendant) on the current page and use its ID to set the query parameter lastEntityId. Here is an example:
Code Block |
---|
language | bash |
---|
title | Request for getting the first page |
---|
|
# To be written |
Code Block |
---|
language | bash |
---|
title | Response for getting the first page |
---|
collapse | true |
---|
|
# To be written |
Code Block |
---|
language | bash |
---|
title | Request for getting the second page |
---|
|
# To be written |
Code Block |
---|
language | bash |
---|
title | Response for getting the second page |
---|
collapse | true |
---|
|
# To be written |
References
Find reference to any version of an entity
...