##// END OF EJS Templates
Added request and response for post. Load only id on sync request
neko259 -
r776:04f4519b decentral
parent child Browse files
Show More
@@ -0,0 +1,12 b''
1 <request>
2 <version>
3 <protocol>1</protocol>
4 <models>
5 <post>1</post>
6 </models>
7 </version>
8 <data>
9 <id>id1/1</id>
10 <id>id2/56</id>
11 </data>
12 </request>
@@ -0,0 +1,31 b''
1 <response>
2 <status>success</status>
3 <models>
4 <post>
5 <id>id1/1</id>
6 <title>13</title>
7 <text>Thirteen</text>
8 <thread>id1/12</thread>
9 <pub-time>12</pub-time>
10 <edit-time>13</edit-time>
11 <previous-id>id1/3,id23/5</previous-id>
12 <after-id>id2/3,id43/5</after-id>
13 </post>
14 <post>
15 <id>id1/2</id>
16 <title>13</title>
17 <text>Thirteen</text>
18 <pub-time>12</pub-time>
19 <edit-time>13</edit-time>
20 <tags>
21 <tag>tag1</tag>
22 </tags>
23 </post>
24 <post>
25 <id>id2/1</id>
26 </post>
27 <post>
28 <id>id2/5</id>
29 </post>
30 </models>
31 </response>
@@ -1,28 +1,26 b''
1 1 <?xml version="1.1" encoding="UTF-8" ?>
2 2 <request>
3 3 <version>
4 4 <protocol>1</protocol>
5 5 <models>
6 6 <post>1</post>
7 7 </models>
8 8 </version>
9 9 <data>
10 10 <type>pull</type>
11 11 <timestamp>0</timestamp>
12 12 <hosts>
13 13 <allow>
14 14 <host>*</host>
15 15 </allow>
16 16 <deny></deny>
17 17 <pools>
18 18 <pool>test1</pool>
19 19 <pool>test2</pool>
20 20 </pools>
21 21 <tags>
22 22 <tag>tag1</tag>
23 23 </tags>
24 24 </hosts>
25 <!-- Get only posts id to load posts later (maybe from several hosts) -->
26 <id-only>true</id-only>
27 25 </data>
28 26 </request>
@@ -1,32 +1,18 b''
1 1 <?xml version="1.1" encoding="UTF-8" ?>
2 2 <response>
3 3 <status>success</status>
4 4 <models>
5 5 <post>
6 6 <id>id1/1</id>
7 <title>13</title>
8 <text>Thirteen</text>
9 <thread>id1/12</thread>
10 <pub-time>12</pub-time>
11 <edit-time>13</edit-time>
12 <previous-id>id1/3,id23/5</previous-id>
13 <after-id>id2/3,id43/5</after-id>
14 7 </post>
15 8 <post>
16 9 <id>id1/2</id>
17 <title>13</title>
18 <text>Thirteen</text>
19 <pub-time>12</pub-time>
20 <edit-time>13</edit-time>
21 <tags>
22 <tag>tag1</tag>
23 </tags>
24 10 </post>
25 11 <post>
26 12 <id>id2/1</id>
27 13 </post>
28 14 <post>
29 15 <id>id2/5</id>
30 16 </post>
31 17 </models>
32 18 </response>
General Comments 0
You need to be logged in to leave comments. Login now