Table of Contents



1. clientlogin - authenticate client

Request: POST /application/clientlogin

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

Response: 200

Header Value
Content-Type text/html
Content-Length 0
Set-Cookie rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:17 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:17 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:17 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:17 GMT
Body

2. clientlogin - login failure

Request: POST /application/clientlogin

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

Response: 401

Header Value
Content-Type text/html
Content-Length 15
Set-Cookie rhosync_session=BAh7CDoKbG9naW4wOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9uYW1lIhBhcHBs%0AaWNhdGlvbg%3D%3D%0A--b8bda815ee9066b6d6589a39a9c1700edba590ca; path=/; expires=Sat, 08-Oct-2011 17:55:17 GMT rhosync_session=BAh7CDoKbG9naW4wOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9uYW1lIhBhcHBs%0AaWNhdGlvbg%3D%3D%0A--b8bda815ee9066b6d6589a39a9c1700edba590ca; path=/; expires=Sat, 08-Oct-2011 17:55:17 GMT rhosync_session=BAh7CDoKbG9naW4wOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9uYW1lIhBhcHBs%0AaWNhdGlvbg%3D%3D%0A--b8bda815ee9066b6d6589a39a9c1700edba590ca; path=/; expires=Sat, 08-Oct-2011 17:55:17 GMT rhosync_session=BAh7CDoKbG9naW4wOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9uYW1lIhBhcHBs%0AaWNhdGlvbg%3D%3D%0A--b8bda815ee9066b6d6589a39a9c1700edba590ca; path=/; expires=Sat, 08-Oct-2011 17:55:17 GMT
Body
login exception

3. clientcreate - create client id

Request: GET /application/clientcreate

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 501
Set-Cookie rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT
Body
{"sources":{"FixedSchemaAdapter":{"schema":{"property":{"image_url_cropped":"blob,overwrite","price":"string","brand":"string","name":"string","image_url":"blob"},"unique_index":{"by_price":"price"},"version":"1.0","index":{"by_name_brand":"name,brand"}},"poll_interval":300,"sync_type":"incremental","belongs_to":[{"brand":"SampleAdapter"}]},"SampleAdapter":{"poll_interval":300},"SimpleAdapter":{"partition_type":"app","poll_interval":600}},"client":{"client_id":"60f42f230af74632a2c1ffa072e713cf"}}

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=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 501
Set-Cookie rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT
Body
{"sources":{"FixedSchemaAdapter":{"schema":{"property":{"image_url_cropped":"blob,overwrite","price":"string","brand":"string","name":"string","image_url":"blob"},"unique_index":{"by_price":"price"},"version":"1.0","index":{"by_name_brand":"name,brand"}},"poll_interval":300,"sync_type":"incremental","belongs_to":[{"brand":"SampleAdapter"}]},"SampleAdapter":{"poll_interval":300},"SimpleAdapter":{"partition_type":"app","poll_interval":600}},"client":{"client_id":"0adadd2db5a74b00960d831ac46cbb4c"}}

5. clientregister - register client with params

Request: POST /application/clientregister

Header Value
Content-Type application/json
Content-Length 112
Cookie rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73
Body
{"device_port":"3333","device_pin":"abcd","device_type":"iPhone","client_id":"8107ce05b18a475d87650947536805ab"}

Response: 200

Header Value
Content-Type text/html
Content-Length 443
Set-Cookie rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT
Body
{"sources":{"FixedSchemaAdapter":{"schema":{"property":{"image_url_cropped":"blob,overwrite","price":"string","brand":"string","name":"string","image_url":"blob"},"unique_index":{"by_price":"price"},"version":"1.0","index":{"by_name_brand":"name,brand"}},"poll_interval":300,"sync_type":"incremental","belongs_to":[{"brand":"SampleAdapter"}]},"SampleAdapter":{"poll_interval":300},"SimpleAdapter":{"partition_type":"app","poll_interval":600}}}

6. clientreset - reset client database

Request: GET /application/clientreset?client_id=fe94bc497b9046ee98defb768c65f9c0

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73
Body

Response: 200

Header Value
Content-Type text/html
Content-Length 443
Set-Cookie rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT
Body
{"sources":{"FixedSchemaAdapter":{"schema":{"property":{"image_url_cropped":"blob,overwrite","price":"string","brand":"string","name":"string","image_url":"blob"},"unique_index":{"by_price":"price"},"version":"1.0","index":{"by_name_brand":"name,brand"}},"poll_interval":300,"sync_type":"incremental","belongs_to":[{"brand":"SampleAdapter"}]},"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=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73
Body
{"client_id":"846fa332468347c2b6d849f95bd4af9f","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=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT
Body

8. update - update object(s)

Request: POST /application

Header Value
Content-Type application/json
Content-Length 144
Cookie rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73
Body
{"client_id":"38cfd75cf66d4a8d8192b90890acc83c","update":{"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=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT
Body

9. delete - delete object(s)

Request: POST /application

Header Value
Content-Type application/json
Content-Length 144
Cookie rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73
Body
{"delete":{"1":{"price":"199.99","brand":"Apple","name":"iPhone"}},"client_id":"ad7c0556f0b240ba828f98aee2b8db19","source_name":"SampleAdapter"}

Response: 200

Header Value
Content-Type text/html
Content-Length 0
Set-Cookie rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:18 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=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73
Body
{"delete":{"3":{"price":"299.99","brand":"HTC","name":"Fuze"}},"client_id":"e0d2fa170f5049e592b22b704718cba3","create":{"1":{"price":"199.99","brand":"Apple","name":"iPhone"}},"update":{"2":{"price":"99.99","brand":"Android","name":"G2"}},"source_name":"SampleAdapter"}

Response: 200

Header Value
Content-Type text/html
Content-Length 0
Set-Cookie rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:19 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:19 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:19 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:19 GMT
Body

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

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

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 223
Set-Cookie rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73; path=/; expires=Sat, 08-Oct-2011 17:55:19 GMT rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73; path=/; expires=Sat, 08-Oct-2011 17:55:19 GMT rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73; path=/; expires=Sat, 08-Oct-2011 17:55:19 GMT rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73; path=/; expires=Sat, 08-Oct-2011 17:55:19 GMT
Body
[{"version":3},{"token":"55763719265453"},{"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?version=3&client_id=874ae728d1e845e8957edba7a5c81ba4&source_name=SampleAdapter

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 145
Set-Cookie rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:19 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:19 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:19 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:19 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?version=3&client_id=7cc82cae11604d1c89e35d28ba04e1d0&source_name=SampleAdapter

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 168
Set-Cookie rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:19 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:19 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:19 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:19 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?version=3&client_id=316be66001d44fd0b805ccee89eb4e10&source_name=SampleAdapter

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 250
Set-Cookie rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:19 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:19 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:19 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:19 GMT
Body
[{"version":3},{"token":"55763719745428"},{"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?version=3&client_id=00145cb0690643eb8f4c30d0c0b766dc&source_name=SampleAdapter

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 224
Set-Cookie rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73; path=/; expires=Sat, 08-Oct-2011 17:55:19 GMT rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73; path=/; expires=Sat, 08-Oct-2011 17:55:19 GMT rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73; path=/; expires=Sat, 08-Oct-2011 17:55:19 GMT rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73; path=/; expires=Sat, 08-Oct-2011 17:55:19 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?version=3&client_id=c4ccc18a5abd40268c3fff6fca6fc669&source_name=SampleAdapter

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 224
Set-Cookie rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73; path=/; expires=Sat, 08-Oct-2011 17:55:20 GMT rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73; path=/; expires=Sat, 08-Oct-2011 17:55:20 GMT rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73; path=/; expires=Sat, 08-Oct-2011 17:55:20 GMT rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73; path=/; expires=Sat, 08-Oct-2011 17:55:20 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?version=3&client_id=4a85766dfe2242a9806c2ffff723d127&source_name=SampleAdapter

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 231
Set-Cookie rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73; path=/; expires=Sat, 08-Oct-2011 17:55:20 GMT rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73; path=/; expires=Sat, 08-Oct-2011 17:55:20 GMT rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73; path=/; expires=Sat, 08-Oct-2011 17:55:20 GMT rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73; path=/; expires=Sat, 08-Oct-2011 17:55:20 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?version=3&client_id=91bc6aa0056d4333ba3550be535d837d&source_name=SampleAdapter

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 213
Set-Cookie rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:20 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:20 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:20 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:20 GMT
Body
[{"version":3},{"token":"55763720428963"},{"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?version=3&client_id=058bfdbf35df45d2b34aeb505ab8cc6c&source_name=SampleAdapter

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 295
Set-Cookie rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:20 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:20 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:20 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:20 GMT
Body
[{"version":3},{"token":"55763720594407"},{"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?version=3&token=55763720758472&client_id=7fa42413bf28472cad8a89f199e71da5&source_name=SampleAdapter

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 213
Set-Cookie rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73; path=/; expires=Sat, 08-Oct-2011 17:55:20 GMT rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73; path=/; expires=Sat, 08-Oct-2011 17:55:20 GMT rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73; path=/; expires=Sat, 08-Oct-2011 17:55:20 GMT rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73; path=/; expires=Sat, 08-Oct-2011 17:55:20 GMT
Body
[{"version":3},{"token":"55763720844809"},{"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?version=3&token=55763721007384&client_id=80a1e76c205a418486db159c43135561&source_name=SampleAdapter

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 220
Set-Cookie rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73; path=/; expires=Sat, 08-Oct-2011 17:55:21 GMT rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73; path=/; expires=Sat, 08-Oct-2011 17:55:21 GMT rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73; path=/; expires=Sat, 08-Oct-2011 17:55:21 GMT rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73; path=/; expires=Sat, 08-Oct-2011 17:55:21 GMT
Body
[{"version":3},{"token":"55763721031977"},{"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?search[name]=iPhone&version=3&sources[][name]=SampleAdapter&client_id=baef6bdf0d544b749bc271cd43e0672f

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 151
Set-Cookie rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:21 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:21 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:21 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:21 GMT
Body
[[{"version":3},{"token":"55763721183672"},{"source":"SampleAdapter"},{"count":1},{"insert":{"1":{"brand":"Apple","name":"iPhone","price":"199.99"}}}]]

24. search error - send search error

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

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 112
Set-Cookie rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:21 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:21 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:21 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:21 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?search[search]=bar&version=3&sources[][name]=SimpleAdapter&sources[][name]=SampleAdapter&client_id=24808f7439584583b4abaa1c8dceff96

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 266
Set-Cookie rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:21 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:21 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:21 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:21 GMT
Body
[[{"version":3},{"token":"55763721433644"},{"source":"SimpleAdapter"},{"count":1},{"insert":{"obj":{"foo":"bar"}}}],[{"version":3},{"token":"55763721441500"},{"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?version=3&sources[][name]=SimpleAdapter&sources[][token]=55763721597080&sources[][name]=SampleAdapter&sources[][token]=55763721604628&client_id=89d855531f6f48f49c01559d838fa0ea

Header Value
Content-Type  
Content-Length 0
Cookie rhosync_session=BAh7CDoJYXV0aCIOZGVsZWdhdGVkOgpsb2dpbiINdGVzdHVzZXI6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--f3dee010e07afee08de30a7f6d2a7afc3b28ca73
Body

Response: 200

Header Value
Content-Type application/json
Content-Length 7
Set-Cookie rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:21 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:21 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:21 GMT rhosync_session=BAh7CDoKbG9naW4iDXRlc3R1c2VyOglhdXRoIg5kZWxlZ2F0ZWQ6DWFwcF9u%0AYW1lIhBhcHBsaWNhdGlvbg%3D%3D%0A--20e7eced1d218d3d793295c9fd16835224570e24; path=/; expires=Sat, 08-Oct-2011 17:55:21 GMT
Body
[[],[]]