mirror of https://gitee.com/bigwinds/arangodb
issue #228
This commit is contained in:
parent
b2088507bb
commit
dcaf0ffcae
|
@ -35,8 +35,6 @@
|
|||
/// <li>@ref HttpSystemStatus "GET /_admin/status"</li>
|
||||
/// <li>@ref HttpSystemConnectionStatistics "GET /_admin/connection-statistics"</li>
|
||||
/// <li>@ref HttpSystemRequestStatistics "GET /_admin/request-statistics"</li>
|
||||
/// <li>@ref HttpSystemConfigDescription "GET /_admin/config/description"</li>
|
||||
/// <li>@ref HttpSystemConfigConfiguration "GET /_admin/config/configuration"</li>
|
||||
/// </ul>
|
||||
/// </li>
|
||||
/// </ul>
|
||||
|
@ -61,12 +59,6 @@
|
|||
///
|
||||
/// @anchor HttpSystemRequestStatistics
|
||||
/// @copydetails triagens::arango::RequestStatisticsHandler::compute
|
||||
///
|
||||
/// @anchor HttpSystemConfigDescription
|
||||
/// @copydetails JSF_GET_admin_config_description
|
||||
///
|
||||
/// @anchor HttpSystemConfigConfiguration
|
||||
/// @copydetails JSF_GET_admin_config_configuration
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Local Variables:
|
||||
|
|
|
@ -243,139 +243,6 @@ actions.defineHttp({
|
|||
}
|
||||
});
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @fn JSF_GET_admin_config_description
|
||||
/// @brief returns configuration description
|
||||
///
|
||||
/// @RESTHEADER{GET /_admin/config/description,reads the configuration desciption}
|
||||
///
|
||||
/// @REST{GET /_admin/config/desciption}
|
||||
///
|
||||
/// The call returns an object describing the configuration.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
actions.defineHttp({
|
||||
url : "_admin/config/description",
|
||||
context : "admin",
|
||||
|
||||
callback : function (req, res) {
|
||||
try {
|
||||
result = {
|
||||
database : {
|
||||
name : "Database",
|
||||
type : "section",
|
||||
|
||||
path : {
|
||||
name : "Path",
|
||||
type : "string",
|
||||
readonly : true
|
||||
},
|
||||
|
||||
access : {
|
||||
name : "Combined Access",
|
||||
type : "string",
|
||||
readonly : true
|
||||
}
|
||||
},
|
||||
|
||||
logging : {
|
||||
name : "Logging",
|
||||
type : "section",
|
||||
|
||||
level : {
|
||||
name : "Log Level",
|
||||
type : "pull-down",
|
||||
values : [ "fatal", "error", "warning", "info", "debug", "trace" ]
|
||||
},
|
||||
|
||||
syslog : {
|
||||
name : "Use Syslog",
|
||||
type : "boolean"
|
||||
},
|
||||
|
||||
bufferSize : {
|
||||
name : "Log Buffer Size",
|
||||
type : "integer"
|
||||
},
|
||||
|
||||
output : {
|
||||
name : "Output",
|
||||
type : "section",
|
||||
|
||||
file : {
|
||||
name : "Log File",
|
||||
type : "string",
|
||||
readonly : true
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
actions.resultOk(req, res, actions.HTTP_OK, result);
|
||||
}
|
||||
catch (err) {
|
||||
actions.resultError(req, res, err);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @fn JSF_GET_admin_config_configuration
|
||||
/// @brief returns configuration
|
||||
///
|
||||
/// @RESTHEADER{GET /_admin/config/configuration,reads the configuration}
|
||||
///
|
||||
/// @REST{GET /_admin/config/configuration}
|
||||
///
|
||||
/// The call returns an object containing configuration.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
actions.defineHttp({
|
||||
url : "_admin/config/configuration",
|
||||
context : "admin",
|
||||
|
||||
callback : function (req, res) {
|
||||
try {
|
||||
result = {
|
||||
database : {
|
||||
path : {
|
||||
value : "/tmp/emil/vocbase"
|
||||
},
|
||||
|
||||
access : {
|
||||
value : "localhost:8529"
|
||||
}
|
||||
},
|
||||
|
||||
logging : {
|
||||
level : {
|
||||
value : "info"
|
||||
},
|
||||
|
||||
syslog : {
|
||||
value : true
|
||||
},
|
||||
|
||||
bufferSize : {
|
||||
value : 100
|
||||
},
|
||||
|
||||
output : {
|
||||
file : {
|
||||
value : "/var/log/message/arango.log"
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
actions.resultOk(req, res, actions.HTTP_OK, result);
|
||||
}
|
||||
catch (err) {
|
||||
actions.resultError(req, res, err);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @}
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue