-
Notifications
You must be signed in to change notification settings - Fork 30
Configuration API
abmagil edited this page Nov 28, 2012
·
16 revisions
The configuration service is currently an XML backed REST API returning JSON for the configuration values of the TDM.
Intent | Call | Example |
---|---|---|
Set a Configuration Value |
/api/config/(component)/(key)/set
|
{"config":{"value":"teeth"}} |
Get all stored values |
/api/config/list
|
See Response Section |
Get all stored values by component |
/api/config/(component)/list
|
See Response Section |
Get a stored value by component, key |
/api/config/(component)/(key) /get
|
See Response Section |
For the "Get" calls:
{ "config":[ { "value":"20", "key":"tdm.crewAssignmentRefreshInterval", "description":null, "valueType":"String", "units":"minutes", "component":"tdm", "updated":null }, { "value":"30", "key":"tdm.vehicleAssignmentRefreshInterval", "description":null, "valueType":"String", "units":"minutes", "component":"tdm", "updated":null }, ], "status":"OK" }