call code iff user is logged in
call code iff user is logged in
Disable a route without having to comment out the entry in the routes file.
Disable a route without having to comment out the entry in the routes file. Useful for when we want to keep the code around but we don't want users to have access to it.
call code iff user has right permission for resource
call code iff user has right permission for resource
Use when you want to require the user to be logged in on a private server or the server is public.
Use when you want to require the user to be logged in on a private server or the server is public.
call code iff user is a server admin
call code iff user is a server admin
get user if logged in
get user if logged in
Add metadata to file.
Add metadata in JSON-LD format.
REST endpoint: POST: Adds tags to a file.
REST endpoint: POST: Adds tags to a file. Tag's (name, userId, extractor_id) tuple is used as a unique key. In other words, the same tag names but diff userId or extractor_id are considered as diff tags, so will be added.
Add Versus metadata to file: use by Versus Extractor REST enpoint:POST api/files/:id/versus_metadata
Add 3D geometry file to file.
Add preview to file.
Add thumbnail to query file.
Add 3D texture to file.
Add thumbnail to file.
Download file using http://en.
Download file using http://en.wikipedia.org/wiki/Chunked_transfer_encoding
Download query used by Versus
get the hierarchical path from dataset to the given folder.
get the hierarchical path from dataset to the given folder.
a Folder object
a list name of folder/dataset
the list of names on the hierarchical path from dataset to the given folder
Find geometry file for given 3D file and geometry filename.
REST endpoint: GET: gets the tag data associated with this file.
Find texture file for given 3D file and texture filename.
Return user based on request object
Return user based on request object
Return whether a file is currently being processed.
List all files.
Rest endpoint, given a file id, get a list of traversing path from datasets to the parent folder containing this file.
Rest endpoint, given a file id, get a list of traversing path from datasets to the parent folder containing this file.
a file id in dataset.
a list of paths
Reindex a file.
REST endpoint: POST: removes all tags of a file.
REST endpoint: POST: removes all tags of a file. This is a big hammer -- it does not check the userId or extractor_id and forcefully remove all tags for this id. It is mainly intended for testing.
REST endpoint: POST: removes tags.
REST endpoint: POST: removes tags. Tag's (name, userId, extractor_id) tuple is used as a unique key. In other words, the same tag names but diff userId or extractor_id are considered as diff tags. Current implementation enforces the restriction which only allows the tags to be removed by the same user or extractor.
List datasets satisfying a general metadata search tree.
List datasets satisfying a user metadata search tree.
Send job for file preview(s) generation at a later time.
REST endpoint: PUT: update or change the filename args id: the UUID associated with this file data name: String
REST endpoint: POST: update the license data associated with a specific File
REST endpoint: POST: update the license data associated with a specific File
Takes one arg, id:
id, the UUID associated with this file
The data contained in the request body will be containe the following key-value pairs:
licenseType, currently: license1 - corresponds to Limited license2 - corresponds to Creative Commons license3 - corresponds to Public Domain
rightsHolder, currently only required if licenseType is license1. Reflects the specific name of the organization or person that holds the rights
licenseText, currently tied to the licenseType license1 - Free text that a user can enter to describe the license license2 - 1 of 6 options (or their abbreviations) that reflects the specific set of options associated with the Creative Commons license, these are: Attribution-NonCommercial-NoDerivs (by-nc-nd) Attribution-NoDerivs (by-nd) Attribution-NonCommercial (by-nc) Attribution-NonCommercial-ShareAlike (by-nc-sa) Attribution-ShareAlike (by-sa) Attribution (by) license3 - Public Domain Dedication
licenseUrl, free text that a user can enter to go with the licenseText in the case of license1. Fixed URL's for the other 2 cases.
allowDownload, true or false, whether the file or dataset can be downloaded. Only relevant for license1 type.
Update technical metadata of a file.
Upload intermediate file of extraction chain using multipart form enconding and continue chaining.
Upload a file to a specific dataset
(Since version 2.2.0) Use Action.async to build async actions instead
Upload file using multipart form enconding.
Upload file using multipart form enconding.
Json API for files.