Properties REST API

Considering 8090 as the AppNode port, this section describes the following Properties REST APIs:

http://localhost:8090/monitor/systemproperties/enableSmartEngine?bw.smartengine.appStatistics.enabled=true

 
Method GET
Description Enable smart engine
Path Parameters None
Query Parameters
  • Parameter: bw.smartengine.appStatistics.enabled
  • Type: Boolean (Optional)

  • Description: Whether to enable application statistics. Default value is false.

Header Parameters None
Output
  • Code = 200

    Message = "System property is set with old value and new value."

  • Code = 503

    Message = "Internal Server Error".

Sample Output {

"code": "200",

"message": "Smart engine is enabled.",

"status": "success"

}

{

"code": "200",

"message": "Smart engine (with application statistics) is enabled.",

"status": "success"

}

http://localhost:8090/monitor/systemproperties/disableSmartEngine

 
Method GET
Description Disable smart engine
Path Parameters None
Query Parameters None
Header Parameters None
Output
  • Code = 200

    Message = "System property is set with old value and new value."

  • Code = 503

    Message = "Internal Server Error".

Sample Output {

"code": "200",

"message": "Smart engine is disabled.",

"status": "success"

}