##// END OF EJS Templates
Added XML header to the samples
neko259 -
r761:830857d2 decentral
parent child Browse files
Show More
@@ -1,24 +1,25 b''
1 <?xml version="1.1" encoding="UTF-8" ?>
1 <request>
2 <request>
2 <version>
3 <version>
3 <protocol>1</protocol>
4 <protocol>1</protocol>
4 <models>
5 <models>
5 <post>1</post>
6 <post>1</post>
6 </models>
7 </models>
7 </version>
8 </version>
8 <data>
9 <data>
9 <type>sync</type>
10 <type>sync</type>
10 <timestamp>0</timestamp>
11 <timestamp>0</timestamp>
11 <hosts>
12 <hosts>
12 <allow>
13 <allow>
13 <host>*</host>
14 <host>*</host>
14 </allow>
15 </allow>
15 <deny></deny>
16 <deny></deny>
16 <pools>
17 <pools>
17 <pool>test1</pool>
18 <pool>test1</pool>
18 <pool>test2</pool>
19 <pool>test2</pool>
19 </pools>
20 </pools>
20 </hosts>
21 </hosts>
21 <!-- Get only posts id to load posts later (maybe from several hosts) -->
22 <!-- Get only posts id to load posts later (maybe from several hosts) -->
22 <id-only>true</id-only>
23 <id-only>true</id-only>
23 </data>
24 </data>
24 </request>
25 </request>
@@ -1,22 +1,23 b''
1 <?xml version="1.1" encoding="UTF-8" ?>
1 <response>
2 <response>
2 <status>success</status>
3 <status>success</status>
3 <posts>
4 <posts>
4 <post>
5 <post>
5 <id>id1/1</id>
6 <id>id1/1</id>
6 <title>13</title>
7 <title>13</title>
7 <text>Thirteen</text>
8 <text>Thirteen</text>
8 <thread>id1/12</thread>
9 <thread>id1/12</thread>
9 <pub-time>12</pub-time>
10 <pub-time>12</pub-time>
10 <edit-time>13</edit-time>
11 <edit-time>13</edit-time>
11 </post>
12 </post>
12 <post>
13 <post>
13 <id>id1/2</id>
14 <id>id1/2</id>
14 </post>
15 </post>
15 <post>
16 <post>
16 <id>id2/1</id>
17 <id>id2/1</id>
17 </post>
18 </post>
18 <post>
19 <post>
19 <id>id2/5</id>
20 <id>id2/5</id>
20 </post>
21 </post>
21 </posts>
22 </posts>
22 </response>
23 </response>
General Comments 0
You need to be logged in to leave comments. Login now