This section handle the registry management.

POST /console/RegistryHandler

This method is used to save keys in the registry.

Request parameters:

    • subKey [mandatory]: name of the registry key.
    • value [mandatory]: value of the key.
    • keyPath [mandatory]: path of the key.
    • company [mandatory]: the company Id.
    • session [mandatory]: the Id of the active session.

Response:

    • status: returns "0" on success, and an error code in any other case.
    • data: returns True on succes.
    • message: "success" or a descriptive information of the error in any other case.

Example:

Content-Type: application/json

Request: /console/RegistryHandler?subKey=SrvDefault&keyPath=SOFTWARE\edinn\edinnM2\Supervisor_0000000001&company=0000000001&value=TEST&session=Xl4AAZNHFIYrWAp9YhcpzGKOuM6ZqPAQbKx88It9V5lMrxcMZtVhLCmxwYEY


Reponse (success):

{

"status": "0",

"data": True,

"message": "Success"

}

GET /console/RegistryHandler

This method is used to load a registry value or check if exist.

Request parameters: 

    • subKey [mandatory]: name of the registry key.
    • keyPath [mandatory]: path of the key.
    • company [mandatory]: the company Id.
    • session [mandatory]: the Id of the active session.
    • operation [mandatory]: the operation value: 0-Load, 1-Check.

Response:

    • status: returns "0" on success, and an error code in any other case.
    • data: return the value of the key on the load and a boolean on the check.
    • message: "success" or a descriptive information of the error in any other case.

Example:

Content-Type: application/json

Request: /console/ServiceHandler?operation=0&subKey=RstProcAfter&keyPath=SOFTWARE\edinn\edinnM2\Supervisor_0000000001&company=0000000001&session=Acb9bacCtxGHZXJN6EMyr4wDALkJ1zOOnWEGPDFHRy8P8XoSNOD2Qn3CRe47


Reponse (success):

{

"status": "0",

"data": "TEST",

"message": "Success"

}