Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

OperationExpected result
GET /userdataGets all the settings of a specified user
GET /userdata/{key}Gets the subsettings of a spefic user for rootElem[key]
PUT /userdataCreates/Updates settings entry of a user
PUT /userdata/{key}Creates/Updates settings entry of a user for rootElem[key]
DELETE /userdataDeletes 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