]> git.mxchange.org Git - flightgear.git/commit
JsonUriHandler: allow POST updates without child
authorTorsten Dreyer <torsten@ŧ3r.de>
Fri, 27 Feb 2015 10:07:25 +0000 (11:07 +0100)
committerTorsten Dreyer <torsten@ŧ3r.de>
Fri, 27 Feb 2015 10:07:25 +0000 (11:07 +0100)
commit146efcafa4a3af6f260917124f351ab1c3d2d1a8
tree80ee1037b1924ab8ed13051a75e2373a3824a263
parent4b5dec2cae49da0fcfc0d0fe12e0b605748a4ae2
JsonUriHandler: allow POST updates without child

updates to properties used to be
POST /json/some/property/path
{
  name: 'somechild',
  value: 'somevalue'
}

which required some ugly path hacking when directly updating a node.
now, this works too (and in a probably more intuitive way)
POST /json/some/property/path/somechild
{
  value: 'somevalue'
}
src/Network/http/jsonprops.cxx