Update Default Value Follow
This document introduces the API for updating default value of a specific input parameter, across all existing services in the ServiceManager.
API
(Replace 'http://localhost:8080' with your hostname)
Request body:
{"action":"SET_DEFAULT_VALUE","paramName":"MAIN_PASSWORD_0","newValue":"myNewPassword"}
- (Replace 'MAIN_PASSWORD_0' with name of the input parameter you like to update, and 'myNewPassword' with the value to set)
- Action should always be SET_DEFAULT_VALUE.
- Parameter is always identified by name (regardless of useLabelsAsKeys setting).
Return value
The returned response will contain the count of services affected, in the 'data' field:
{"success":true,"objectName":"java.lang.Integer","data":3}
ServiceManager UI
The same API is exposed also from the ServiceManager's user interface at:
http://localhost:8080/ServiceManager/www/auraplayer/index.html#/apis
(Replace 'http://localhost:8080' with your hostname)
The above page is available only by direct URL, to prevent access from basic users.
Comments
0 comments
Please sign in to leave a comment.