1
0
Fork 0

license attribute in api_version

This commit is contained in:
hkernbach 2016-09-26 16:33:21 +02:00
parent 2ab7010b41
commit 36a8aeb291
1 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,12 @@ RestHandler::status RestVersionHandler::execute() {
result.add("server", VPackValue("arango"));
result.add("version", VPackValue(ARANGODB_VERSION));
#ifdef USE_ENTERPRISE
result.add("license", VPackValue("enterprise"));
#else
result.add("license", VPackValue("community"));
#endif
bool found;
std::string const& detailsStr = _request->value("details", found);