##// 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>
9 <type>get</type>
10 <model>post</model>
11 <options>
12 <id>id1/1</id>
13 <id>id2/56</id>
14 </options>
15 </data>
1 <request version="1" type="get">
2 <type>get</type>
3 <model>post</model>
4 <filter>
5 <id>id1/1</id>
6 <id>id2/56</id>
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 -->
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>
21 <hosts>
22 <allow>
23 <host>*</host>
24 </allow>
25 <deny></deny>
26 <pools>
27 <pool>test1</pool>
28 <pool>test2</pool>
29 </pools>
30 </hosts>
31 </data>
2 <request version="3" type="pull">
3 <model>post</model>
4 <filter>
5 <version>3</version>
6 <timestamp_from>0</timestamp_from>
7 <timestamp_to>0</timestamp_to>
8 <tags>
9 <tag>tag1</tag>
10 </tags>
11 </filter>
12 <hosts>
13 <allow>
14 <host>*</host>
15 </allow>
16 <deny></deny>
17 <pools>
18 <pool>test1</pool>
19 <pool>test2</pool>
20 </pools>
21 </hosts>
32 22 </request>
General Comments 0
You need to be logged in to leave comments. Login now