...
Operation | Expected result |
---|---|
GET /userdata | Gets all the settings of a specified user |
GET /userdata/{key} | Gets the subsettings of a spefic user for rootElem[key] |
PUT /userdata | Creates/Updates settings entry of a user |
DELETE /userdata | Deletes settings entry of a user |
DELETE /userdata/{key} | Deletes settings entry of a user for rootElem[key] |
...
Code Block |
---|
{
"networkMap":{
"startupPosition": {"lat": 52.5095, "lon":13.3290, "zoom": 10},
"tileOpacity": 90,
"styling":{
"theme": "light"
}
},
"dashboard":{
"color":"#F00"
}
} |
GET /userdata/networkMap
...
Code Block |
---|
{
"networkMap":{
"startupPosition": {"lat": 52.5095, "lon":13.3290, "zoom": 10},
"tileOpacity": 90,
"styling":{
"theme": "light"
}
},
"dashboard":{
"color":"#F00"
}
} |
Write partial settings data of a user
PUT /userdata/dashboard
Code Block |
---|
{ "dashboard":{ "color":"#F00" } } |
Note: settings data currently subject to change, note will be deleted once finalized