Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 545 Bytes

File metadata and controls

29 lines (22 loc) · 545 Bytes

File Bundle

This bundle contains an upload service for binary files.

Creating a new file

curl -X POST \
     -H 'Content-Type: text/plain' \
     -d "Hello World!" \
     http://localhost/file

Adding metadata to the file

curl -X PUT \
     -H 'Content-Type: application/json' \
     -d '{"id": "<id>", "links": [{"$ref": "http://localhost/core/app/tablet"}]}' \
     http://localhost/file/<id>

Retrieving the file

curl -X PUT \
     -H 'Accept: text/plain' \
     http://localhost/file/<id>