##// 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 <?xml version="1.1" encoding="UTF-8" ?>
1 <?xml version="1.1" encoding="UTF-8" ?>
2 <response>
2 <response>
3 <status>success</status>
3 <status>success</status>
4 <models>
4 <models>
5 <model name="post">
5 <model name="post">
6 <id>id1/1</id>
6 <id>id1/1</id>
7 <title>13</title>
7 <title>13</title>
8 <text>Thirteen</text>
8 <text>Thirteen</text>
9 <thread>id1/12</thread>
9 <thread>id1/12</thread>
10 <pub-time>12</pub-time>
10 <pub-time>12</pub-time>
11 <edit-time>13</edit-time>
11 <edit-time>13</edit-time>
12 <previous-id>id1/3,id23/5</previous-id>
12 <!--
13 <after-id>id2/3,id43/5</after-id>
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 </model>
25 </model>
15 <model name="post">
26 <model name="post">
16 <id>id1/2</id>
27 <id>id1/2</id>
17 <title>13</title>
28 <title>13</title>
18 <text>Thirteen</text>
29 <text>Thirteen</text>
19 <pub-time>12</pub-time>
30 <pub-time>12</pub-time>
20 <edit-time>13</edit-time>
31 <edit-time>13</edit-time>
21 <tags>
32 <tags>
22 <tag>tag1</tag>
33 <tag>tag1</tag>
23 </tags>
34 </tags>
24 </model>
35 </model>
25 </models>
36 </models>
26 </response>
37 </response>
@@ -1,5 +1,11 b''
1 <?xml version="1.1" encoding="UTF-8" ?>
1 <?xml version="1.1" encoding="UTF-8" ?>
2 <response>
2 <response>
3 <status>error</status>
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 <status-detail>protocol version mismatch</status-detail>
10 <status-detail>protocol version mismatch</status-detail>
5 </response>
11 </response>
General Comments 0
You need to be logged in to leave comments. Login now