Skip to content
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 Configuration Value

Set a value via a POST to:

 /api/config/(component)/(key)/set

With a json body like:

 {"config":{"value":"teeth"}}

Get Configuration Values

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

Returned JSON

 {
 "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"
 }
Clone this wiki locally