Retrieving a File

Retrieving file

To retrieve any file you need, add the name to the end of the URL, and use a GET request:

https://api.appery.io/rest/1/db/files/<fileName>

Use encoded parameter with base64 value to return the result as base64:

curl -X GET 
 -H "Content-Type: text/xml"
 -H "X-Appery-Database-Id: 526fdbd8e4b07c3286b537f1"
 -H "X-Appery-Session-Token: 6fb9515d-82fd-43b3-9124-f0534dceca8e"
 https://api.appery.io/rest/1/db/files/31bb3831-a18e-4a3a-b720-0747a0901481.config.xml?encoded=base64

File content will be presented as field of base64data parameter.

Example

cURL:

curl -X GET 
 -H "Content-Type: application/octet-stream"
 -H "X-Appery-Database-Id: 544a5cdfe4b03d005b6233b9"
 -H "X-Appery-Session-Token: 6fb9515d-82fd-43b3-9124-f0534dceca8e"
 https://api.appery.io/rest/1/db/files/3f612c86-2beb-4064-bdbe-14a3d2bf0457.cta.kml