CSV

Backup

A GET request will download the database as a ZIP file.

Example request

$ curl -D headers.txt -o skylar_database.zip 'http://skylar.livingfire.de/api/csv/backup'
$ cat headers.txt

Response Header

HTTP/1.1 201
X-Application-Context: core:development
Content-Disposition: attachment; filename="20160401_1706_skylar_database.zip"
Content-Length: 1131
Date: Thu, 01 Apr 2016 17:06:18 GMT

Restore

A POST request will restore the database from a ZIP file.

Example request

$ curl --form 'file=@skylar_database.zip' 'http://skylar.livingfire.de/api/csv/backup'

Example response

HTTP/1.1 201 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 118

{
    "status":201
    ,"code":"003001"
    ,"userMessage":"backup restored"
    ,"developerMessage":"backup restored"
}