Get Uploaded File

GET /api/v1/{entity-type}/{entity-id}/{property}/documents/{document-id}

Path Parameters

Name
Type
Description

entity-type*

String

Entity for which file was uploaded

entity-id*

String

Entity ID of corresponding entity

property*

String

any String for eg templates for uploading html template

document-id*

String

ID of document that was uploaded

Headers

Name
Type
Description

content-type*

String

Set to application/octet-stream

authorization*

String

Set to Bearer {access-token} if roles in schema config is not anonymous else this can be empty

{file contents that was uploaded}

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.

Last updated