Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Result: This will update the configuration setting as per request.

Note: Settings module Module name and property name can be known either by getting all settings of by getting settings of individual moduleto put in request json is available here.

 

Below are the attributes which need to be sent in the request body:

Parameter
Details
moduleName of the module of which property going to be update.
name

Name of the property which user wants to update

valueNew value of the setting.

 

Below is an example of get all settings.

URLhttp[s]:<host>:<port>/openspecimen/rest/ng/config-settings
MethodPUT
Requestapplication/json
Json
{
"module": "common",
"name": "locale",
"value": "en_IN"
}
Response
{
"module": "common",
"name": "locale",
"value": "en_IN",
"type": "STRING",
"allowedValues": [],
"displayNameCode": "common_locale",
"descCode": "common_locale_desc",
"activationDate": 1466070080881,
"secured": false
}