REST API Lookups
Request Method | GET |
Description | Returns information about a referenced entity to an existing UUID. UUIDs can be checked for:
|
URI Syntax | curl -u '<user>:<password>' -X GET 'http://<Datameer-serverIP>:<port-number>/api/filesystem/lookups/<uuid>' |
Example Response | INFO: The response contains the JSON file of the folder or the file. For a Folder: { "hidden": false, "name": "Analytics", "parent": [ "/", "276de5a2-a9d5-47e6-b0aa-227dc77f70e0" ], "permission": { "groups": {}, "owner": "system", "permissionForOthers": { "readable": true, "writable": true } }, "uuid": "99cc1d34-b2fa-4c1d-b688-5eafc346680a", "_links": { "parent": { "href": "/api/filesystem/folders/1" }, "self": { "href": "/api/filesystem/lookups/99cc1d34-b2fa-4c1d-b688-5eafc346680a" }, "permission": { "href": "/api/filesystem/folders/99cc1d34-b2fa-4c1d-b688-5eafc346680a/permission" } }, "_embedded": { "folders": [ { "name": "Workbooks", "_links": { "self": { "href": "/api/filesystem/folders/11" } } } ] } } For a File: { "createdAt": "2020-03-13T08:54:57.749+01:00", "description": "", "extension": "wbk", "folder": [ "/Examples/Workbooks", "18a6e343-5cb9-457d-9cdb-78efb8cc2ee8" ], "modifiedAt": "2020-03-13T08:54:57.836+01:00", "name": "twitter_wb", "permission": { "groups": {}, "owner": "system", "permissionForOthers": { "executable": true, "readable": true, "writable": true }, "publiclyShared": false }, "tags": [], "uuid": "1ab3ba97-79d1-4b2f-98b1-395e2c4d9917", "_links": { "folder": { "href": "/api/filesystem/folders/23" }, "self": { "href": "/api/filesystem/lookups/1ab3ba97-79d1-4b2f-98b1-395e2c4d9917" }, "permission": { "href": "/api/filesystem/files/1ab3ba97-79d1-4b2f-98b1-395e2c4d9917/permission" } } } |