Hi,

I am just implementing protobuf support in lightwave's HTTP transport.
I wondered what I should return if someone simply tries to get a wavelet.

The current spec says you have to specify which deltas you want

GET http://hosting-server/wave/fed/data/
<wavelet-id>?v1=<start-version>&v1hash=<start-version-hash>&v2=<end-version>&v2hash=<end-version-hash>&limit=<bytes>

and the return type is

message ProtocolWaveletHistory {
    repeated bytes deltas = 1;
    optional int64 truncated = 2;
    optional int64 commit_notice = 3;
}


When just asking for

GET http://hosting-server/wave/fed/data/<wavelet-id>

I would like to simply return a snapshot. I assume the best way of doing
this is to return a constructed delta that mutates the empty wavelet to the
current state. Any other idea?
Furthermore, do we want to have this in the HTTP spec, i.e. a way of quickly
retrieving the snapshot of a wave via HTTP GET?

Torben

-- 
You received this message because you are subscribed to the Google Groups "Wave 
Protocol" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/wave-protocol?hl=en.

Reply via email to