Re: Returning the whole data instead of the id.
Immanuel Scholz <immanuel.scholz <at> gmx.de>
2006-02-01 08:53:16 GMT
Hi,
>> To update the intern data representation. If uploading a new node, the
>> offline
>> client has to GET this note after every PUT to update its data. With my
>> suggestion, this GET is implicit ;)
>
> Still, you have to do a GET before you do the PUT to be able to merge
> the tags. So the internal representation should be pretty updated.
Huh?
There are two cases you want to do a PUT:
- uploading new nodes.
- updating existing nodes.
For the first case, you cannot do a prior GET, since it does not exist in
the database, right?
And for the second, you do not need to catch the ID in answer, since you
already know it or else you could not update the node, right? (And I think
the server does not return anything on updates anyway...)
>> > And shouldn't the rounding effect be very small?
>> Hopeful.. yes. But that's not the point, isn't it? A difference is a
>> difference.
> Well if the difference doesn't matter then you do not need to know
> about it. But, OK, I can see a minor advantage to getting the rounded
> values.
(Continue reading)