diff --git a/docs/samples/request_post.xml b/docs/samples/request_get.xml
rename from docs/samples/request_post.xml
rename to docs/samples/request_get.xml
--- a/docs/samples/request_post.xml
+++ b/docs/samples/request_get.xml
@@ -6,7 +6,11 @@
- id1/1
- id2/56
+ get
+ post
+
+ id1/1
+ id2/56
+
diff --git a/docs/samples/request_pull.xml b/docs/samples/request_pull.xml
--- a/docs/samples/request_pull.xml
+++ b/docs/samples/request_pull.xml
@@ -7,8 +7,17 @@
+
pull
- 0
+
+ post
+
+ 0
+ 0
+
+ tag1
+
+
*
@@ -18,9 +27,6 @@
test1
test2
-
- tag1
-
diff --git a/docs/samples/response_post.xml b/docs/samples/response_get.xml
rename from docs/samples/response_post.xml
rename to docs/samples/response_get.xml
diff --git a/docs/sync.markdown b/docs/sync.markdown
--- a/docs/sync.markdown
+++ b/docs/sync.markdown
@@ -4,17 +4,6 @@ This document discribes the server sync
# DRAFT PROTOCOL DESCRIPTION #
-Version:
-* Protocol version
-* Model version
-
-Node data:
-* Public key
-
-Object data:
-* Post
-* Post list (for sync)
-
The node requests other node's changes list since some time (since epoch if
this is the start). The other node sends a list of post ids or posts in the
XML or JSON format.
@@ -30,3 +19,11 @@ saved from the node (or the node id must
Each node holds a list of networks it wants to get info from.
Each post has an ID in the unique format: node-id/post-id
+
+All requests pass a request type, protocol and model versions and a list of
+optional arguments used for filtering.
+
+# REQUESTS #
+Request types:
+* pull - pull the desired model ids
+* get - get models by ids