Table of Contents



1. clientlogin - authenticate client

Request: POST /application/clientlogin

Header Value
Content-Type application/json
Content-Length 42
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body
{"password":"testpass","login":"testuser"}

Response: 200

Header Value
Content-Type text/html
Content-Length 0
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMT
Body

2. clientlogin - login failure

Request: POST /application/clientlogin

Header Value
Content-Type application/json
Content-Length 43
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body
{"password":"wrongpass","login":"testuser"}

Response: 401

Header Value
Content-Type text/html
Content-Length 15
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbjA6CWF1dGgiDmRl%0AbGVnYXRlZA%3D%3D%0A--9789e0aa44c13fcf4eedf7eddeb5de86eb684015; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbjA6CWF1dGgiDmRl%0AbGVnYXRlZA%3D%3D%0A--9789e0aa44c13fcf4eedf7eddeb5de86eb684015; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbjA6CWF1dGgiDmRl%0AbGVnYXRlZA%3D%3D%0A--9789e0aa44c13fcf4eedf7eddeb5de86eb684015; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbjA6CWF1dGgiDmRl%0AbGVnYXRlZA%3D%3D%0A--9789e0aa44c13fcf4eedf7eddeb5de86eb684015; path=/; expires=Sat, 21-May-2011 01:13:25 GMT
Body
login exception

3. clientcreate - create client id

Request: GET /application/clientcreate

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 409
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMT
Body
{"sources":{"FixedSchemaAdapter":{"schema":{"property":[{"name":"string"},{"brand":"string"},{"price":"string"},{"image_url":"blob"}],"unique_index":[{"by_price":"price"}],"version":"1.0","index":[{"by_name_brand":"name,brand"}]},"poll_interval":300},"SampleAdapter":{"poll_interval":300},"SimpleAdapter":{"partition_type":"app","poll_interval":600}},"client":{"client_id":"fced0a4d90c2463c8709286b7da2cf3d"}}

4. clientcreate-and-register - create client id with register params

Request: GET /application/clientcreate?device_port=3333&device_pin=abcd&device_type=iPhone

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 409
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMT
Body
{"sources":{"FixedSchemaAdapter":{"schema":{"property":[{"name":"string"},{"brand":"string"},{"price":"string"},{"image_url":"blob"}],"unique_index":[{"by_price":"price"}],"version":"1.0","index":[{"by_name_brand":"name,brand"}]},"poll_interval":300},"SampleAdapter":{"poll_interval":300},"SimpleAdapter":{"partition_type":"app","poll_interval":600}},"client":{"client_id":"ff6c82425a6e4c43bd3ac18ddc94884c"}}

5. clientregister - register client with params

Request: POST /application/clientregister

Header Value
Content-Type application/json
Content-Length 112
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body
{"device_port":"3333","device_pin":"abcd","device_type":"iPhone","client_id":"bcc581f961fb4406b19936fb69ab1f1c"}

Response: 200

Header Value
Content-Type text/html
Content-Length 351
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMT
Body
{"sources":{"FixedSchemaAdapter":{"schema":{"property":[{"name":"string"},{"brand":"string"},{"price":"string"},{"image_url":"blob"}],"unique_index":[{"by_price":"price"}],"version":"1.0","index":[{"by_name_brand":"name,brand"}]},"poll_interval":300},"SampleAdapter":{"poll_interval":300},"SimpleAdapter":{"partition_type":"app","poll_interval":600}}}

6. clientreset - reset client database

Request: GET /application/clientreset?client_id=f1b31b81c60a400ab79fd2c421e15a19

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body

Response: 200

Header Value
Content-Type text/html
Content-Length 351
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMT
Body
{"sources":{"FixedSchemaAdapter":{"schema":{"property":[{"name":"string"},{"brand":"string"},{"price":"string"},{"image_url":"blob"}],"unique_index":[{"by_price":"price"}],"version":"1.0","index":[{"by_name_brand":"name,brand"}]},"poll_interval":300},"SampleAdapter":{"poll_interval":300},"SimpleAdapter":{"partition_type":"app","poll_interval":600}}}

7. create - create object(s)

Request: POST /application

Header Value
Content-Type application/json
Content-Length 144
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body
{"client_id":"fad7b5b75dce4927b3ca4a3ed7e0d362","create":{"1":{"price":"199.99","brand":"Apple","name":"iPhone"}},"source_name":"SampleAdapter"}

Response: 200

Header Value
Content-Type text/html
Content-Length 0
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMT
Body

8. update - update object(s)

Request: POST /application

Header Value
Content-Type application/json
Content-Length 144
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body
{"client_id":"c9a239b715584157b4b61b08c79f9c99","source_name":"SampleAdapter","update":{"1":{"price":"199.99","brand":"Apple","name":"iPhone"}}}

Response: 200

Header Value
Content-Type text/html
Content-Length 0
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMT
Body

9. delete - delete object(s)

Request: POST /application

Header Value
Content-Type application/json
Content-Length 144
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body
{"client_id":"0351a1909f0e4c27aebe6db8191ff307","delete":{"1":{"price":"199.99","brand":"Apple","name":"iPhone"}},"source_name":"SampleAdapter"}

Response: 200

Header Value
Content-Type text/html
Content-Length 0
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMT
Body

10. create - client creates blobs

Request: POST /application

Header Value
Content-Type multipart/form-data; boundary=----------XnJLe9ZIbbGUYtzPQJ16u1
Content-Length 833
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOglhdXRoIg5kZWxlZ2F0ZWQ6 CmxvZ2luIg10ZXN0dXNlcg== --87659670a0625baf4cdd81bdb9bf829b4567eb35
Body
------------XnJLe9ZIbbGUYtzPQJ16u1
Content-Disposition: form-data; name="txtfile-rhoblob-1"; filename="upload1.txt"
Content-Type: application/octet-stream
Content-Length: 5

hello
------------XnJLe9ZIbbGUYtzPQJ16u1
Content-Disposition: form-data; name="txtfile-rhoblob-2"; filename="upload2.txt"
Content-Type: application/octet-stream
Content-Length: 5

world
------------XnJLe9ZIbbGUYtzPQJ16u1
Content-Disposition: form-data; name="cud"

{"client_id":"278c76a7ab2a4f64ba804c1aa22504f3","source_name":"SampleAdapter","version":3,"create":{"1":{"price":"199.99","brand":"Apple","name":"iPhone","txtfile-rhoblob":"upload1.txt","_id":"tempobj1"},"2":{"price":"99.99","brand":"Android","name":"G2","txtfile-rhoblob":"upload2.txt","_id":"tempobj2"}},"blob_fields":["txtfile-rhoblob"]}
------------XnJLe9ZIbbGUYtzPQJ16u1--

Response: 200

Header Value
Content-Type text/html
Content-Length 0
Set-Cookie rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOg1hcHBfbmFtZSIPcmhvdGVzdGFwcDoJ%0AYXV0aCIOZGVsZWdhdGVk%0A--788449811455529433e658e1c486c622f47ee0d8; path=/; expires=Mon, 04-Apr-2011 19:29:32
Body

11. create-update-delete - create,update,delete object(s)

Request: POST /application

Header Value
Content-Type application/json
Content-Length 269
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body
{"client_id":"407e5d38896d4b42b354f1d58821ee7b","delete":{"3":{"price":"299.99","brand":"HTC","name":"Fuze"}},"create":{"1":{"price":"199.99","brand":"Apple","name":"iPhone"}},"source_name":"SampleAdapter","update":{"2":{"price":"99.99","brand":"Android","name":"G2"}}}

Response: 200

Header Value
Content-Type text/html
Content-Length 0
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMT
Body

12. create-with-link - send link for created object

Request: GET /application?client_id=dc6b23bf02e94b9bb4c4bbbf7d7e975c&version=3&source_name=SampleAdapter

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 223
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMT
Body
[{"version":3},{"token":"43607605891701"},{"count":1},{"progress_count":0},{"total_count":0},{"delete":{"backend_id":{"price":"249.99","brand":"Android","name":"Droid","link":"test link"}},"links":{"4":{"l":"backend_id"}}}]

13. query-error - send query error

Request: GET /application?client_id=6bdb6e19b61d4feba293685589b2e93f&version=3&source_name=SampleAdapter

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 145
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:25 GMT
Body
[{"version":3},{"token":""},{"count":0},{"progress_count":0},{"total_count":0},{"source-error":{"query-error":{"message":"Error during query"}}}]

14. login-error - send login error

Request: GET /application?client_id=b927bd584a1e4f7d8a134e9b171f3e42&version=3&source_name=SampleAdapter

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 168
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMT
Body
[{"version":3},{"token":""},{"count":0},{"progress_count":0},{"total_count":0},{"source-error":{"login-error":{"message":"undefined method `login' for nil:NilClass"}}}]

15. logoff-error - send logoff error

Request: GET /application?client_id=134e4d093d194b87966801f73bbf1763&version=3&source_name=SampleAdapter

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 250
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMT
Body
[{"version":3},{"token":"43607606159643"},{"count":1},{"progress_count":0},{"total_count":1},{"source-error":{"logoff-error":{"message":"Error logging off"}},"insert":{"0_broken_object_id":{"name":"logoff error","an_attribute":"Error logging off"}}}]

16. create-error - send create error

Request: GET /application?client_id=d9b13ff8c7e644daa5376c94dfe2d931&version=3&source_name=SampleAdapter

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 224
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMT
Body
[{"version":3},{"token":""},{"count":0},{"progress_count":0},{"total_count":0},{"create-error":{"0_broken_object_id":{"name":"wrongname","an_attribute":"error create"},"0_broken_object_id-error":{"message":"error create"}}}]

17. update-error - send update error

Request: GET /application?client_id=8deec6cb2bec4bb6896b35af7be55d9b&version=3&source_name=SampleAdapter

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 224
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMT
Body
[{"version":3},{"token":""},{"count":0},{"progress_count":0},{"total_count":0},{"update-error":{"0_broken_object_id":{"name":"wrongname","an_attribute":"error update"},"0_broken_object_id-error":{"message":"error update"}}}]

18. delete-error - send delete error

Request: GET /application?client_id=d79b41a1d211475792dc5f66f87d30d0&version=3&source_name=SampleAdapter

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 231
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMT
Body
[{"version":3},{"token":""},{"count":0},{"progress_count":0},{"total_count":0},{"delete-error":{"0_broken_object_id":{"name":"wrongname","an_attribute":"error delete"},"0_broken_object_id-error":{"message":"Error delete record"}}}]

19. insert objects - send insert objects

Request: GET /application?client_id=47b2192ad9484dacb2ccf6d3a801de7f&version=3&source_name=SampleAdapter

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 213
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMT
Body
[{"version":3},{"token":"43607606618361"},{"count":2},{"progress_count":0},{"total_count":2},{"insert":{"1":{"price":"199.99","brand":"Apple","name":"iPhone"},"2":{"brand":"Android","price":"99.99","name":"G2"}}}]

20. metadata - send metadata

Request: GET /application?client_id=c20cdf3b80184750bcd2a061b17a52d2&version=3&source_name=SampleAdapter

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 295
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMT
Body
[{"version":3},{"token":"43607606691534"},{"count":3},{"progress_count":0},{"total_count":3},{"metadata":"{\"foo\":\"bar\"}","insert":{"1":{"name":"iPhone","brand":"Apple","price":"199.99"},"2":{"name":"G2","brand":"Android","price":"99.99"},"3":{"name":"Fuze","price":"299.99","brand":"HTC"}}}]

21. delete objects - send delete objects

Request: GET /application?client_id=8028dd29902a49eba940cf1cf63b19e8&token=43607606762618&version=3&source_name=SampleAdapter

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 213
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMT
Body
[{"version":3},{"token":"43607606783463"},{"count":2},{"progress_count":0},{"total_count":0},{"delete":{"1":{"price":"199.99","brand":"Apple","name":"iPhone"},"2":{"name":"G2","price":"99.99","brand":"Android"}}}]

22. insert-delete objects - send insert and delete objects

Request: GET /application?client_id=edb59163323745bb8a291132b4eba688&token=43607606917998&version=3&source_name=SampleAdapter

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 220
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:26 GMT
Body
[{"version":3},{"token":"43607606940659"},{"count":2},{"progress_count":1},{"total_count":2},{"delete":{"2":{"name":"G2","brand":"Android","price":"99.99"}},"insert":{"3":{"name":"Fuze","price":"299.99","brand":"HTC"}}}]

23. search result - send search results

Request: GET /application/search?client_id=9473413326dc48329d039aa98e13ff99&search[name]=iPhone&version=3&sources[][name]=SampleAdapter

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 151
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:27 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:27 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:27 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:27 GMT
Body
[[{"version":3},{"token":"43607606998325"},{"source":"SampleAdapter"},{"count":1},{"insert":{"1":{"brand":"Apple","name":"iPhone","price":"199.99"}}}]]

24. search error - send search error

Request: GET /application/search?client_id=23055d29e2f24fab8b9e62716a6fa8c5&search[name]=iPhone&version=3&sources[][name]=SampleAdapter

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 112
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:27 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:27 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:27 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:27 GMT
Body
[[{"version":3},{"source":"SampleAdapter"},{"search-error":{"search-error":{"message":"Error during search"}}}]]

25. multi source search - send multiple sources in search results

Request: GET /application/search?client_id=c34916969228410ea987dc969c9d1a26&search[search]=bar&version=3&sources[][name]=SimpleAdapter&sources[][name]=SampleAdapter

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 266
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:27 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:27 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:27 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:27 GMT
Body
[[{"version":3},{"token":"43607607182260"},{"source":"SimpleAdapter"},{"count":1},{"insert":{"obj":{"foo":"bar"}}}],[{"version":3},{"token":"43607607187479"},{"source":"SampleAdapter"},{"count":1},{"insert":{"1":{"brand":"Apple","name":"iPhone","price":"199.99"}}}]]

26. multi source search ack - acknowledge search result on multiple sources

Request: GET /application/search?client_id=6f124c7546bb4eda8ce379b5b6382511&version=3&sources[][name]=SimpleAdapter&sources[][token]=43607607245790&sources[][name]=SampleAdapter&sources[][token]=43607607250394

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 7
Set-Cookie rhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:27 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:27 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:27 GMTrhosync_session=BAh7CDoNYXBwX25hbWUiEGFwcGxpY2F0aW9uOgpsb2dpbiINdGVzdHVzZXI6%0ACWF1dGgiDmRlbGVnYXRlZA%3D%3D%0A--3b2a7bbe201b89fa23ffd3e1d5b7ee404d173de1; path=/; expires=Sat, 21-May-2011 01:13:27 GMT
Body
[[],[]]