Get Uploaded File

get
/api/v1/{entity-type}/{entity-id}/{property}/documents/{document-id}
Parameters
Path
entity-type*
Entity for which file was uploaded
entity-id*
Entity ID of corresponding entity
property*
any String for eg templates for uploading html template
document-id*
ID of document that was uploaded
Header
content-type*
Set to application/octet-stream
authorization*
Set to Bearer {access-token} if roles in schema config is not anonymous else this can be empty
Responses
200: OK
Success response of uploaded file

Usage

cURL

curl --location \
--request GET '{registry-url}/api/v1/{entity-type/{entity-id}/{property}/documents/{document-id}' \
--header 'Authorization: Bearer {access-token}'

HTTPie

http '{registry-url}/api/v1/{entity-type/{entity-id}/{property}/documents/{document-id}' \
Authorization:'Bearer {access-token}'
{registry-url} is usually http://localhost:{port}. The port can be found under the registry section in the docker-compose.yml file and is usually 8081.