...
Parameter | Details |
---|---|
module | Name of the module for which you are updating the configurations. Currently there are 2 modules:
|
name | Name of the property for which you want to update/add the value
|
value | The actual value of the above specified property names. |
http[s]:<host>:<port>/openspecimen/rest/ng/config-settings
Use this URL to configure/update the properties
Result:
The response of this request will contains the details of the added/updated property.
Below is the example of the register authentication domain:
- Sets email server host
URL | /openspecimen/rest/ng/config-settings |
Method | PUT |
Request | application/json |
json | { "module": "email", "name": "server_host", "value": "localhost" } |
Response | { "module": "email", "name": "server_host", "value": "localhost" } |
2. Sets email server port
URL | /openspecimen/rest/ng/config-settings |
Method | PUT |
Request | application/json |
json | { "module": "email", "name": "server_port", "value": "25" } |
Response | { "module": "email", "name": "server_port", "value": "25" } |
3. Sets email account id
URL | /openspecimen/rest/ng/config-settings |
Method | PUT |
Request | application/json |
json | { "module": "email", "name": "account_id", "value": "test@gmail.com" } |
Response | { "module": "email", "name": "account_id", "value": "test@gmail.com" } |
4. Set admin email id
URL | /openspecimen/rest/ng/config-settings |
Method | PUT |
Request | application/json |
json | { } |
Response | { |
5. Sets application url (this belongs to common module)
URL | /openspecimen/rest/ng/config-settings |
Method | PUT |
Request | application/json |
json | { "module": "common", "name": "app_url", "value": "http://localhost:9000" } |
Response | { "module": "common", "name": "app_url", "value": "http://localhost:9000" } |
...