sams.api.public
– Public API¶
sams.api.public.assets
– Assets¶
An Asset Binary API intended for public consumption.
This service provides a single endpoint, to download the binary of an Asset. No metadata will be available to the client, nor will any specific errors be returned.
endpoint name |
‘public_assets’ |
resource title |
‘Asset’ |
item url |
[GET] ‘/assets/ |
The following validation occurs on this endpoint:
set_id
must be a validbson.objectid.ObjectId
asset_id
must be a validbson.objectid.ObjectId
The
Set
with_id == set_id
must existThe
Set
must havestate == 'usable'
The
Asset
with_id == asset_id
must existThe
Asset
must be stored in theSet
The
Asset
must havestate == 'public'
If any of the above conditions are not met, a 404 - Not Found
error is returned.