Storage Location List
The location of an item relative to a StorageRoot
.
Writable Fields:
path
: Path from a StorageRoot
uri
to the item location, when appended to a StorageRoot
uri
produces a complete URI.
hash
: If StorageLocation
references a file, this is the calculated SHA1 hash of the file. If StorageLocation
references a directory TODO: can't be git sha for validation (doesn't care about local changes), could be recursive
sha1 of all files in the directory (excluding .git and things referenced in .gitignore), but needs to be OS independent
(order matters) and things like logging output might affect it...
public
(optional): Boolean indicating whether the StorageLocation
is public or not (default is True
)
storage_root
: Reference to the StorageRoot
to append the path
to.
Read-only Fields:
url
: Reference to the instance of the StorageLocation
, final integer is the StorageLocation
id
last_updated
: Datetime that this record was last updated
updated_by
: Reference to the user that updated this record
GET /api/storage_location/?format=api&ordering=-hash
{
"count": 0,
"next": null,
"previous": null,
"results": []
}