Introduction:
=============
This web service provides a way to access the logs grouped by the log messages.

Web service call: 
=================
HTTP Request method		POST
Variables		query		JSON input containing the specifications of the user request.

Function:
=========
Based on the JSON query a list of log messages is returned.

Response:
=========
Content					JSON
HTTP Content Type			application/json
Access-Control-Allow-Origin		*

Warning: 
========
To all Cross-Origin Resource Sharing (CORS) the web service has to allow all domains access. Otherwise browsers will not permit to call this web service by a webpage. Therefore the HTTP response header must contain the appropriate Access-Control-Allow-Origin statement.

Note: 
=====
An example JSON is available separately and the JSON data structure is documented in a JSON schema.


General error codes:
====================
{
    "open-connection-failed": "Unable to connect to database."
}


Input error codes:
==================
{
    "invalid-query-json":"Submitted query JSON is not valid"
    ,"missing-query-key-in-query-json":"query property is missing in query JSON"
    ,"unexpected-field-in-query":"Unexpected field in query JSON."
    ,"missing-parameter":"one of the required parameter."
    ,"invalid-parameter-value":"one of the required parameter has invalid value."
    ,"invalid-parameter-value-length":"one of the required parameter value is too long"
}   
        

