-
Notifications
You must be signed in to change notification settings - Fork 30
Configuration API
abmagil edited this page Nov 27, 2012
·
16 revisions
The configuration service is currently an XML backed REST API returning JSON for the configuration values of the TDM.
Set a value via a POST to:
/api/config/(component)/(key)/set
With a json body like:
{"config":{"value":"teeth"}}
Get all stored values:
/api/config/list
Get all stored values by component:
/api/config/(component)/list
Get a stored value by component:
/api/config/(component)/(component)/get
{ "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" }