response_get.xml
56 lines
| 2.1 KiB
| application/xml
|
XmlLexer
neko259
|
r781 | <?xml version="1.1" encoding="UTF-8" ?> | ||
neko259
|
r778 | <response> | ||
neko259
|
r794 | <!-- | ||
Valid statuses are 'success' and 'error'. | ||||
--> | ||||
neko259
|
r778 | <status>success</status> | ||
<models> | ||||
neko259
|
r794 | <!-- | ||
ref-id is used only to reference the model block in the | ||||
signatures block. It could be any string that is unique throughout | ||||
the file. | ||||
--> | ||||
<model name="post" ref-id="1"> | ||||
neko259
|
r820 | <id key="id1" type="ecdsa" local-id="1" /> | ||
neko259
|
r778 | <title>13</title> | ||
<text>Thirteen</text> | ||||
<thread>id1/12</thread> | ||||
<pub-time>12</pub-time> | ||||
<edit-time>13</edit-time> | ||||
neko259
|
r791 | <!-- | ||
Next and previous are the links to sequential models. | ||||
In the case of an image board, next are replies and previous | ||||
are the posts we replied to. | ||||
--> | ||||
<previous> | ||||
neko259
|
r820 | <id key="id1" type="ecdsa" local-id="3" /> | ||
<id key="id23" type="ecdsa" local-id="5" /> | ||||
neko259
|
r791 | </previous> | ||
<next> | ||||
neko259
|
r820 | <id key="id2" type="ecdsa" local-id="3" /> | ||
<id key="id43" type="ecdsa" local-id="5" /> | ||||
neko259
|
r791 | </next> | ||
neko259
|
r788 | </model> | ||
neko259
|
r794 | <model name="post" ref-id="2"> | ||
neko259
|
r820 | <id key="id1" type="ecdsa" local-id="id2" /> | ||
neko259
|
r778 | <title>13</title> | ||
<text>Thirteen</text> | ||||
<pub-time>12</pub-time> | ||||
<edit-time>13</edit-time> | ||||
<tags> | ||||
<tag>tag1</tag> | ||||
</tags> | ||||
neko259
|
r788 | </model> | ||
neko259
|
r778 | </models> | ||
neko259
|
r794 | |||
<!-- The signature block is separate from the model block because the | ||||
signature value should not be included while getting the block sign. | ||||
When signing a model block, it should be in the canonical XML form. | ||||
See http://www.w3.org/TR/xml-c14n11/ for details. | ||||
--> | ||||
<signatures> | ||||
neko259
|
r808 | <signature model-ref="1" key="id1" type="ecdsa" value="dhefhtreh" /> | ||
<signature model-ref="1" key="id45" type="ecdsa" value="dsgfgdhefhtreh" /> | ||||
<signature model-ref="2" key="id2" type="ecdsa" value="dehdfh" /> | ||||
neko259
|
r794 | </signatures> | ||
neko259
|
r778 | </response> | ||