##// END OF EJS Templates
Actually added the sync_key model. Added signature block to the 'get' response...
Actually added the sync_key model. Added signature block to the 'get' response sample. Clarified how the message should be signed.

File last commit:

r794:e6c8be6a decentral
r794:e6c8be6a decentral
Show More
response_get.xml
56 lines | 1.9 KiB | application/xml | XmlLexer
<?xml version="1.1" encoding="UTF-8" ?>
<response>
<!--
Valid statuses are 'success' and 'error'.
-->
<status>success</status>
<models>
<!--
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">
<id key="id1" local-id="1" />
<title>13</title>
<text>Thirteen</text>
<thread>id1/12</thread>
<pub-time>12</pub-time>
<edit-time>13</edit-time>
<!--
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>
<id key="id1" local-id="3" />
<id key="id23" local-id="5" />
</previous>
<next>
<id key="id2" local-id="3" />
<id key="id43" local-id="5" />
</next>
</model>
<model name="post" ref-id="2">
<id key="id1" local-id="id2" />
<title>13</title>
<text>Thirteen</text>
<pub-time>12</pub-time>
<edit-time>13</edit-time>
<tags>
<tag>tag1</tag>
</tags>
</model>
</models>
<!-- 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>
<signature model-ref="1" key="id1" value="dhefhtreh" />
<signature model-ref="1" key="id45" value="dsgfgdhefhtreh" />
<signature model-ref="2" key="id2" value="dehdfh" />
</signatures>
</response>