##// END OF EJS Templates
Simplified request format. Now request type and version are in the root tag,...
neko259 -
r779:be6e741d decentral
parent child Browse files
Show More
@@ -1,16 +1,8 b''
1 <request>
2 <version>
3 <protocol>1</protocol>
4 <models>
5 <post>1</post>
6 </models>
7 </version>
8 <data>
1 <request version="1" type="get">
9 2 <type>get</type>
10 3 <model>post</model>
11 <options>
4 <filter>
12 5 <id>id1/1</id>
13 6 <id>id2/56</id>
14 </options>
15 </data>
7 </filter>
16 8 </request>
@@ -1,32 +1,22 b''
1 1 <?xml version="1.1" encoding="UTF-8" ?>
2 <request>
3 <version>
4 <protocol>1</protocol>
5 <models>
6 <post>1</post>
7 </models>
8 </version>
9 <data>
10 <!-- Request type -->
11 <type>pull</type>
12 <!-- Model which we wish to pull -->
2 <request version="3" type="pull">
13 3 <model>post</model>
14 <options>
4 <filter>
5 <version>3</version>
15 6 <timestamp_from>0</timestamp_from>
16 7 <timestamp_to>0</timestamp_to>
17 8 <tags>
18 9 <tag>tag1</tag>
19 10 </tags>
20 </options>
11 </filter>
21 12 <hosts>
22 13 <allow>
23 14 <host>*</host>
24 15 </allow>
25 16 <deny></deny>
26 17 <pools>
27 18 <pool>test1</pool>
28 19 <pool>test2</pool>
29 20 </pools>
30 21 </hosts>
31 </data>
32 22 </request>
General Comments 0
You need to be logged in to leave comments. Login now