Show More
@@ -6,7 +6,11 b'' | |||||
6 | </models> |
|
6 | </models> | |
7 | </version> |
|
7 | </version> | |
8 | <data> |
|
8 | <data> | |
9 | <id>id1/1</id> |
|
9 | <type>get</type> | |
10 |
< |
|
10 | <model>post</model> | |
|
11 | <options> | |||
|
12 | <id>id1/1</id> | |||
|
13 | <id>id2/56</id> | |||
|
14 | </options> | |||
11 | </data> |
|
15 | </data> | |
12 | </request> |
|
16 | </request> |
@@ -7,8 +7,17 b'' | |||||
7 | </models> |
|
7 | </models> | |
8 | </version> |
|
8 | </version> | |
9 | <data> |
|
9 | <data> | |
|
10 | <!-- Request type --> | |||
10 | <type>pull</type> |
|
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 | <hosts> |
|
21 | <hosts> | |
13 | <allow> |
|
22 | <allow> | |
14 | <host>*</host> |
|
23 | <host>*</host> | |
@@ -18,9 +27,6 b'' | |||||
18 | <pool>test1</pool> |
|
27 | <pool>test1</pool> | |
19 | <pool>test2</pool> |
|
28 | <pool>test2</pool> | |
20 | </pools> |
|
29 | </pools> | |
21 | <tags> |
|
|||
22 | <tag>tag1</tag> |
|
|||
23 | </tags> |
|
|||
24 | </hosts> |
|
30 | </hosts> | |
25 | </data> |
|
31 | </data> | |
26 | </request> |
|
32 | </request> |
1 | NO CONTENT: file renamed from docs/samples/response_post.xml to docs/samples/response_get.xml |
|
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 | # DRAFT PROTOCOL DESCRIPTION # |
|
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 | The node requests other node's changes list since some time (since epoch if |
|
7 | The node requests other node's changes list since some time (since epoch if | |
19 | this is the start). The other node sends a list of post ids or posts in the |
|
8 | this is the start). The other node sends a list of post ids or posts in the | |
20 | XML or JSON format. |
|
9 | XML or JSON format. | |
@@ -30,3 +19,11 b' saved from the node (or the node id must' | |||||
30 | Each node holds a list of networks it wants to get info from. |
|
19 | Each node holds a list of networks it wants to get info from. | |
31 |
|
20 | |||
32 | Each post has an ID in the unique format: node-id/post-id |
|
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