1 API Upgrade
Lukas Metzger edited this page 2018-04-29 16:58:30 +02:00

Setup

This API is only used for the upgrading the server.

Check if update is available

GET /update

Response

code result
200 Everything was successful
{
  "updateRequired": true,
  "currentVersion": 4,
  "targetVersion": 6
}

The version numbers represent the internal db version used. They are only present if updateRequired is true.

Update server

POST /update

Response

code result
204 Everything was successful
500 An error occured while upgrading

If an error occurred a message is returned.

{
  "error": "Error message!"
}