WebUI: Assign a version to the Web API and allow to get it

New GET methods:
 * version/api: current API version
 * version/api_min: min API version supported

The API version is an integer and it's returned as plain text.

Whenever the API is changed, the api version is increased.

Whenever the API is changed in a way that is not backward compatible,
api_min is increased.
This commit is contained in:
Gabriele
2014-11-22 20:32:04 +01:00
parent 1154ea3873
commit 8b5512c244
2 changed files with 19 additions and 1 deletions

View File

@@ -81,6 +81,8 @@ private:
void action_command_topPrio();
void action_command_bottomPrio();
void action_command_recheck();
void action_version_api();
void action_version_api_min();
typedef void (RequestHandler::*Action)();