/download
GET /eas/download/{fileId}/{hash}/{version}
GET /eas/download/{fileId}/{hash}/{version}Access token in the Authorization header:
Authorization: Bearer <token>.
The signature to omit file permission checks. It will be added to the URL when retrieved through /api/db, /api/search or other endpoints which deliver fylr URLs. The signature will be taken from the query parameter first and if not found, from the request header.
The _uuid of the object the file is linked into. This is used for the permission check.
Name of recipe in the form of <cookbook>:<recipe>. If not given, the
system recipe _produce:produce is used. In that case, the other url
parameters are used as parameters for the recipe.
JSON formatted object which sets the parameters for the recipe. The parameter name is the <key> in the object.
The target format of the produced file. Defaults to the extension of the file parent.
set the target size
set the target width
set the target height
- "max": "size" is the maximum side
- "min": "size" is the minimum side
- "width": "size" is the width * "height"
- "size" is the height.
If "width" and "height" are given, `resize_mode`` can either be "cover" or "force". "cover" will cut of overflowing pixels, "contain" will not cut off any pixels and "force" will not preserve the aspect ratio. "max" is the default for "size" and "cover" for "width" and "height".
Quality is used to set the JPEG quality. maximum is 100, medium is 75, small and low are 50.
DPI of the target image. Values <= 0 are ignored. This sets XResolution, YResolution and ResolutionUnit.
The signature to omit file permission checks. It will be added to the URL when
retrieved through /api/db, /api/search or other endpoints which deliver
fylr URLs. The signature will be taken from the query parameter first and if
not found, from the request header.
The response will use the proper mimetype for the file.
The binary data of the file.
Access to the file is denied (code InsufficientRights):
the caller holds neither RIGHT_ASSET_SHOW nor
RIGHT_ASSET_DOWNLOAD (and no deep_link access applies), or
the request hash / version does not match the stored file,
or the x-fylr-signature is invalid or expired. This endpoint
returns no 401; a missing or invalid token is treated as an
anonymous request.
The addressed file id does not exist. A wrong hash, wrong
version, or an invalid / expired signature is a 403, not
a 404.
HEAD /eas/download/{fileId}/{hash}/{version}
HEAD /eas/download/{fileId}/{hash}/{version}Access token in the Authorization header:
Authorization: Bearer <token>.
The signature to omit file permission checks. It will be added to the URL when retrieved through /api/db, /api/search or other endpoints which deliver fylr URLs. The signature will be taken from the query parameter first and if not found, from the request header.
The _uuid of the object the file is linked into. This is used for the permission check.
The signature to omit file permission checks. It will be added to the URL when
retrieved through /api/db, /api/search or other endpoints which deliver
fylr URLs. The signature will be taken from the query parameter first and if
not found, from the request header.
The response will use the proper mimetype for the file.
Access to the file is denied (code InsufficientRights):
the caller holds neither RIGHT_ASSET_SHOW nor
RIGHT_ASSET_DOWNLOAD (and no deep_link access applies), or
the request hash / version does not match the stored file,
or the x-fylr-signature is invalid or expired. This endpoint
returns no 401; a missing or invalid token is treated as an
anonymous request.
The addressed file id does not exist. A wrong hash, wrong
version, or an invalid / expired signature is a 403, not
a 404.
No content
GET /eas/download/{fileId}/{hash}/{version}/{zippath}
GET /eas/download/{fileId}/{hash}/{version}/{zippath}Access token in the Authorization header:
Authorization: Bearer <token>.
The signature to omit file permission checks. It will be added to the URL when retrieved through /api/db, /api/search or other endpoints which deliver fylr URLs. The signature will be taken from the query parameter first and if not found, from the request header.
The _uuid of the object the file is linked into. This is used for the permission check.
The signature to omit file permission checks. It will be added to the URL when
retrieved through /api/db, /api/search or other endpoints which deliver
fylr URLs. The signature will be taken from the query parameter first and if
not found, from the request header.
The response will use the proper mimetype for the file. In case of a directory, the response will be JSON.
The name of the file or directory.
The full zippath of the file or directory.
The size of the file in bytes, omitted for directories.
The modification time of the file, omitted for directories.
Indicates if the entry is a file or directory.
Access to the file is denied (code InsufficientRights):
the caller holds neither RIGHT_ASSET_SHOW nor
RIGHT_ASSET_DOWNLOAD (and no deep_link access applies), or
the request hash / version does not match the stored file,
or the x-fylr-signature is invalid or expired. This endpoint
returns no 401; a missing or invalid token is treated as an
anonymous request.
The addressed file id does not exist. A wrong hash, wrong
version, or an invalid / expired signature is a 403, not
a 404. A missing sub-path inside the ZIP surfaces as a
generic 400 error, not this 404.
HEAD /eas/download/{fileId}/{hash}/{version}/{zippath}
HEAD /eas/download/{fileId}/{hash}/{version}/{zippath}Access token in the Authorization header:
Authorization: Bearer <token>.
The signature to omit file permission checks. It will be added to the URL when retrieved through /api/db, /api/search or other endpoints which deliver fylr URLs. The signature will be taken from the query parameter first and if not found, from the request header.
The _uuid of the object the file is linked into. This is used for the permission check.
The signature to omit file permission checks. It will be added to the URL when
retrieved through /api/db, /api/search or other endpoints which deliver
fylr URLs. The signature will be taken from the query parameter first and if
not found, from the request header.
The response will use the proper mimetype for the file.
No content
Access to the file is denied (code InsufficientRights):
the caller holds neither RIGHT_ASSET_SHOW nor
RIGHT_ASSET_DOWNLOAD (and no deep_link access applies), or
the request hash / version does not match the stored file,
or the x-fylr-signature is invalid or expired. This endpoint
returns no 401; a missing or invalid token is treated as an
anonymous request.
The addressed file id does not exist. A wrong hash, wrong
version, or an invalid / expired signature is a 403, not
a 404. A missing sub-path inside the ZIP surfaces as a
generic 400 error, not this 404.
No content
Last updated