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_idmust be a validbson.objectid.ObjectId
asset_idmust be a validbson.objectid.ObjectIdThe
Setwith_id == set_idmust existThe
Setmust havestate == 'usable'The
Assetwith_id == asset_idmust existThe
Assetmust be stored in theSetThe
Assetmust havestate == 'public'
If any of the above conditions are not met, a 404 - Not Found error is returned.