Path: / {BASE} / logging / modules

List all modules currently available in the system as a JSON list using the JSON format described in the header of this class


Sub-Resources
Resources
NameDescription
{id}Get the configuration of the logging module with the given id, using the JSON format described in the header of this class.

Resource Methods
Method Summary
NameDescription
GET /{BASE}/logging/modulesList all modules currently available in the system as a JSON list using the JSON format described in the header of this class
POST /{BASE}/logging/modulesUpdate all modules passed as JSON list argument to the POST body of the service call.

Method Detail

GET /{BASE}/logging/modules

List all modules currently available in the system as a JSON list using the JSON format described in the header of this class

HTTP Example:
GET /{BASE}/logging/modules
API Example:

LoggingWebService.listModules({});

Output:
Response - JSON list of module descriptions
Produces:
application/json
HTTP return codes:
200 - in case the modules are listed properly

POST /{BASE}/logging/modules

Update all modules passed as JSON list argument to the POST body of the service call. Only the fields "level" and "appenders" can be updated for modules.

HTTP Example:
POST /{BASE}/logging/modules
API Example:

LoggingWebService.updateModules({});

Output:
Response - 200 OK in case modules have been updated successfully
Consumes:
application/json
HTTP return codes:
200 - modules updated successfully
400 - module configuration invalid (e.g. not proper JSON)
404 - module not found