Show More
@@ -6,7 +6,11 b'' | |||
|
6 | 6 | </models> |
|
7 | 7 | </version> |
|
8 | 8 | <data> |
|
9 | <id>id1/1</id> | |
|
10 |
< |
|
|
9 | <type>get</type> | |
|
10 | <model>post</model> | |
|
11 | <options> | |
|
12 | <id>id1/1</id> | |
|
13 | <id>id2/56</id> | |
|
14 | </options> | |
|
11 | 15 | </data> |
|
12 | 16 | </request> |
@@ -7,8 +7,17 b'' | |||
|
7 | 7 | </models> |
|
8 | 8 | </version> |
|
9 | 9 | <data> |
|
10 | <!-- Request type --> | |
|
10 | 11 | <type>pull</type> |
|
11 | <timestamp>0</timestamp> | |
|
12 | <!-- Model which we wish to pull --> | |
|
13 | <model>post</model> | |
|
14 | <options> | |
|
15 | <timestamp_from>0</timestamp_from> | |
|
16 | <timestamp_to>0</timestamp_to> | |
|
17 | <tags> | |
|
18 | <tag>tag1</tag> | |
|
19 | </tags> | |
|
20 | </options> | |
|
12 | 21 | <hosts> |
|
13 | 22 | <allow> |
|
14 | 23 | <host>*</host> |
@@ -18,9 +27,6 b'' | |||
|
18 | 27 | <pool>test1</pool> |
|
19 | 28 | <pool>test2</pool> |
|
20 | 29 | </pools> |
|
21 | <tags> | |
|
22 | <tag>tag1</tag> | |
|
23 | </tags> | |
|
24 | 30 | </hosts> |
|
25 | 31 | </data> |
|
26 | 32 | </request> |
|
1 | NO CONTENT: file renamed from docs/samples/response_post.xml to docs/samples/response_get.xml |
@@ -4,17 +4,6 b' This document discribes the server sync ' | |||
|
4 | 4 | |
|
5 | 5 | # DRAFT PROTOCOL DESCRIPTION # |
|
6 | 6 | |
|
7 | Version: | |
|
8 | * Protocol version | |
|
9 | * Model version | |
|
10 | ||
|
11 | Node data: | |
|
12 | * Public key | |
|
13 | ||
|
14 | Object data: | |
|
15 | * Post | |
|
16 | * Post list (for sync) | |
|
17 | ||
|
18 | 7 | The node requests other node's changes list since some time (since epoch if |
|
19 | 8 | this is the start). The other node sends a list of post ids or posts in the |
|
20 | 9 | XML or JSON format. |
@@ -30,3 +19,11 b' saved from the node (or the node id must' | |||
|
30 | 19 | Each node holds a list of networks it wants to get info from. |
|
31 | 20 | |
|
32 | 21 | Each post has an ID in the unique format: node-id/post-id |
|
22 | ||
|
23 | All requests pass a request type, protocol and model versions and a list of | |
|
24 | optional arguments used for filtering. | |
|
25 | ||
|
26 | # REQUESTS # | |
|
27 | Request types: | |
|
28 | * pull - pull the desired model ids | |
|
29 | * get - get models by ids |
General Comments 0
You need to be logged in to leave comments.
Login now