Overview
The storage of files is handle by those categories, we have two services FileStorage and S3Storage
The API exposed is
GET /binary/{store}/{uuid}/{property}/{index}
PUT /binary/upload/{store}/{uuid}/{property}/{index}
DELETE /binary/{store}/{uuid}/{property}/{index}/{hash}
You can reduce the exposition by adding an expose attribute as on Store
As you can only add a binary attached to an object stored on the system, the url reflect this :
- store is the Store of the object you want attached to
- uid is the Object uuid
- property is the field of the Object
- index is the index of the Binary
- hash the hash of the file to delete to ensure, if someone insert another file you don't delete the wrong file by accident