##// END OF EJS Templates
Changed next and previous models format. Added clarification to the detailed...
neko259 -
r791:75a3948b decentral
parent child Browse files
Show More
@@ -1,26 +1,37 b''
1 1 <?xml version="1.1" encoding="UTF-8" ?>
2 2 <response>
3 3 <status>success</status>
4 4 <models>
5 5 <model name="post">
6 6 <id>id1/1</id>
7 7 <title>13</title>
8 8 <text>Thirteen</text>
9 9 <thread>id1/12</thread>
10 10 <pub-time>12</pub-time>
11 11 <edit-time>13</edit-time>
12 <previous-id>id1/3,id23/5</previous-id>
13 <after-id>id2/3,id43/5</after-id>
12 <!--
13 Next and previous are the links to sequential models.
14 In the case of an image board, next are replies and previous
15 are the posts we replied to.
16 -->
17 <previous>
18 <id>id1/3</id>
19 <id>id23/5</id>
20 </previous>
21 <next>
22 <id>id2/3</id>
23 <id>id43/5</id>
24 </next>
14 25 </model>
15 26 <model name="post">
16 27 <id>id1/2</id>
17 28 <title>13</title>
18 29 <text>Thirteen</text>
19 30 <pub-time>12</pub-time>
20 31 <edit-time>13</edit-time>
21 32 <tags>
22 33 <tag>tag1</tag>
23 34 </tags>
24 35 </model>
25 36 </models>
26 37 </response>
@@ -1,5 +1,11 b''
1 1 <?xml version="1.1" encoding="UTF-8" ?>
2 2 <response>
3 3 <status>error</status>
4 <!--
5 The detail field reply cases are limited. They are optional to
6 check, so the implementation can check the status, see 'error' and
7 just drop the response and not check the details. This is the main
8 reason detail was split to another field.
9 -->
4 10 <status-detail>protocol version mismatch</status-detail>
5 11 </response>
General Comments 0
You need to be logged in to leave comments. Login now